RE: script to ping all routers/switches

From: csica (csica@liweb.net)
Date: Tue Aug 29 2006 - 19:07:23 ART


You can remove them once you are done, however I do not think it will be a
problem if you leave them in. I think I left mine in and did not have a
problem, but be sure to ask the proctor. As long as it does not violate any
requirements of your lab, anything goes.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Moin, Imran
Sent: Monday, August 28, 2006 10:50 PM
To: csica; CharlesB; Noor Yousuf; Cisco certification
Subject: RE: script to ping all routers/switches

On a separate note, do you remove these macro commands eventually from
the configs? Will Cisco penalize you for additional configuration work?

- Imran.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
csica
Sent: Monday, August 28, 2006 7: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



This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:59 ART