From: Sean C (Upp_and_Upp@hotmail.com)
Date: Fri Sep 01 2006 - 12:09:12 ART
Per the DocCD - macro global wasn't available to 12.1(20)
http://www.cisco.com/univercd/cc/td/doc/product/lan/c3550/12225see/cr/cli1.htm#wp2343719
12.1(20)EA2
This command was introduced.
----- Original Message -----
From: "Noor Yousuf" <nyousuf@cciint.com>
To: "csica" <csica@liweb.net>; "CharlesB" <cbalik@adelphia.net>; "Cisco
certification" <ccielab@groupstudy.com>
Sent: Friday, September 01, 2006 10:58 AM
Subject: RE: script to ping all routers/switches
> I cannot run this command after creating a macro
>
> sw1(config)#macro global apply PING
> ^
> % Invalid input detected at '^' marker.
>
> My IOS version is IOS (tm) C3550 Software (C3550-I5K2L2Q3-M), Version
> 12.1(19)EA1a,
>
> Any thoughts?
>
> -----Original Message-----
> From: csica [mailto:csica@liweb.net]
> Sent: Monday, August 28, 2006 9:32 PM
> To: 'CharlesB'; Noor Yousuf; 'Cisco certification'
> Subject: RE: script to ping all routers/switches
>
> Unfortunately TCL is not supported on the 3500's. You can, however,
> create
> a macro and apply it globally. You could configure RSH and use your TCL
> script, however I find this to be much easier.
>
> For example:
>
> Rack1SW1(config)#
> Rack1SW1(config)#macro name PING
> Enter macro commands one per line. End with the character '@'.
> do ping 1.1.1.1
> do ping 2.2.2.2
> do ping 3.3.3.3
> do ping 4.4.4.4
> @
> Rack1SW1(config)#macro global apply PING
>
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
> Rack1SW1(config)#
>
> HTH,
> Christian
>
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> CharlesB
> Sent: Monday, August 28, 2006 11:50 AM
> To: Noor Yousuf; Cisco certification
> Subject: RE: script to ping all routers/switches
>
> I just post this yesterday too, here it is,
> This is from IE workbooks.
>
>
> First, get in the tcl level
>
> r5#tcl
> r5#tcl?
> tclquit tclsh
>
> r5#tclsh
> r5(tcl)#
>
>
> Then, paste your script.
>
>
> r5#tclsh
> r5(tcl)#foreach i {
> +>(tcl)#150.3.1.1
> +>(tcl)#150.3.2.2
> +>(tcl)#150.3.3.3
> +>(tcl)#150.3.4.4
> +>(tcl)#150.3.5.5
> +>(tcl)#150.3.6.6
> +>(tcl)#150.3.7.7
> +>(tcl)#150.3.8.8
> +>(tcl)#192.10.3.6
> +>(tcl)#204.12.3.4
> +>(tcl)#54.3.2.6
> +>(tcl)#} { puts [ exec "ping $i" ] }
>
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 150.3.1.1, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 84/85/88 ms
>
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 150.3.2.2, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 112/114/116
> ms
>
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 150.3.3.3, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
>
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 150.3.4.4, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 28/30/32 ms
>
>
>
>
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
> Noor Yousuf
> Sent: Monday, August 28, 2006 8:43 AM
> To: Cisco certification
> Subject: script to ping all routers/switches
>
>
> Hi,
>
>
>
> Can any one tell me how to create a script to ping all the
> routers/switches in the lab exam and how to use it?
>
>
>
> Thanks,
>
> Noor
>
>
>
> Noor Yousuf
> Senior Network Engineer
> Connections Canada Inc.
>
> 5466 Timberlea Blvd, Unit A
> Mississauga, ON L4W 2T7
> Office: 905.890.0777 x 7171 Fax: 905.206.0777
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Sun Oct 01 2006 - 16:55:39 ART