GroupStudy.com GroupStudy.com - A virtual community of network engineers
 Home  BookStore  StudyNotes  Links  Archives  StudyRooms  HelpWanted  Discounts  Login
RE: CAT script to test reachability posted 01/27/2007
[Chronological Index] [Thread Index] [Top] [Date Prev][Date Next] [Thread Prev][Thread Next]


switch2(config)#do sh run | inc rcmd                        
ip rcmd rsh-enable
ip rcmd remote-host script 162.1.38.3 R3

R3#tclsh
R3(tcl)#foreach var {
+>(tcl)#150.1.1.1
+>(tcl)#150.1.2.2
+>(tcl)#150.1.3.3
+>(tcl)#150.1.4.4} { rsh 150.1.8.8 /user script ping $var }

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/36 ms

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/8 ms

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/36 ms

where:
162.1.38.3 is R3's "closest" ip interface to the switch, 
150.1.8.8 - switch Lo0 or any other reachable ip interface.

HTH 

Alex


-----Original Message-----
From: nobody@xxxxxxxxxxxxxx [mailto:nobody@xxxxxxxxxxxxxx] On Behalf Of Raj
Bansal
Sent: Saturday, January 27, 2007 1:41 PM
To: ccielab@xxxxxxxxxxxxxx
Subject: CAT script to test reachability

Folks,
   
  I understand there is a script to test IGP reachability from the CAT
switches. Is this correct?
   
  Thanks.
   
  Raj
   

 
---------------------------------
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.

_______________________________________________________________________
Subscription information may be found at: 
http://www.groupstudy.com/list/CCIELab.html