RE: TCL Script on 3500 switches

From: Banks, Ethan (Ethan.Banks@ChasePaymentech.com)
Date: Fri Jan 11 2008 - 10:56:21 ARST


When you define an interface range, you can call it like this...

"interface range macro <macroname>"

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#define interface-range MYPORTS Gi1/0/1 - 2
Switch(config)#do show run inter Gi1/0/1
Building configuration...

Current configuration : 48 bytes
!
interface GigabitEthernet1/0/1
 shutdown
end

Switch(config)#do show run inter Gi1/0/2
Building configuration...

Current configuration : 48 bytes
!
interface GigabitEthernet1/0/2
 shutdown
end

Switch(config)#interface range macro MYPORTS
Switch(config-if-range)#des Interface macro demonstration.
Switch(config-if-range)#exit
Switch(config)#do show run inter Gi1/0/1
Building configuration...

Current configuration : 92 bytes
!
interface GigabitEthernet1/0/1
 description Interface macro demonstration.
 shutdown
end

Switch(config)#do show run inter Gi1/0/2
Building configuration...

Current configuration : 92 bytes
!
interface GigabitEthernet1/0/2
 description Interface macro demonstration.
 shutdown
end

/Ethan - CCIE Candidate Blog
http://www.ethanbanks.net

|-----Original Message-----
|From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
|Behalf Of Gupta, Gopal (NWCC)
|Sent: Thursday, January 10, 2008 4:05 AM
|To: Erik Nixon; Cisco certification
|Subject: RE: TCL Script on 3500 switches
|
|Just one more query
|
|when we issue "Define interface-range" command, how to invoke this
|Macro???
|"macro global aaply" doesn't take this command.
|
|SW2(config)#define interface-range RANGE f0/11 - 12
|SW2(config)#macro glo
|SW2(config)#macro global app
|SW2(config)#macro global apply RANGE
|% Macro 'RANGE' does not exist.
|SW2(config)#
|
| Thanks,
|Gops
|________________________________
|
|From: Erik Nixon [mailto:sneaky_nx@hotmail.com]
|Sent: Thursday, January 10, 2008 07:55
|To: Gupta, Gopal (NWCC); Cisco certification
|Subject: RE: TCL Script on 3500 switches
|
|
|You can use a macro with switches. I supplied a sample of one below:
|
|(config) macro name test
|do ping 144.1.17.1
|do ping 144.1.15.1
|do ping 150.1.1.1
|do ping 144.1.27.2
|do ping 144.1.24.2
|do ping 150.1.2.2
|do ping 144.1.34.3
|do ping 204.12.1.3
|do ping 150.1.3.3
|do ping 144.1.46.4
|do ping 144.1.34.4
|do ping 144.1.24.4
|do ping 150.1.4.4
|do ping 144.1.5.5
|do ping 144.1.15.5
|do ping 150.1.5.5
|do ping 144.1.46.6
|do ping 54.1.10.6
|do ping 150.1.6.6
|do ping 144.1.17.7
|do ping 144.1.27.7
|do ping 144.1.78.7
|do ping 150.1.7.7
|do ping 192.10.1.8
|do ping 144.1.78.8
|do ping 150.1.8.8
|do ping 144.1.5.10
|do ping 150.1.10.10
|@
|(Config)macro global apply test (starts pinging after you enter this
|command
|
|
|
|
|Thanks
|
|
|
|
|> Subject: TCL Script on 3500 switches
|> Date: Wed, 9 Jan 2008 20:28:53 +0530
|> From: gopal.gupta@hp.com
|> To: ccielab@groupstudy.com
|>
|> Hi Experts,
|>
|> Is there any way we can run TCLSH on Switches for checking
|reachabiliy
|> or we have to ping each n every address manually on the switches??
|>
|> Thanks
|> Gops
|>
|>
|_______________________________________________________________________
|> Subscription information may be found at:
|> http://www.groupstudy.com/list/CCIELab.html
|
|
|________________________________
|
|Share life as it happens with the new Windows Live. Share now!
|<http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sha
|relife_12
|2007>
|
|_______________________________________________________________________
|Subscription information may be found at:
|http://www.groupstudy.com/list/CCIELab.html
|
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at www.chasepaymentech.com.

THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.



This archive was generated by hypermail 2.1.4 : Fri Feb 01 2008 - 10:37:59 ARST