From: Victor Cappuccio (cvictor@protokolgroup.com)
Date: Wed Aug 23 2006 - 20:21:43 ART
Chris, the RSH could be a pain below the arm, but one you get it if easy
The only important part of the scrip is this
exec rsh $ip "sho run | include hostname"
That means connect to the IP Address ($IP) and do a show run and only show
me the hostname of the device I'm queering
Is the same as rsh 1.1.1.1 show run | in hostname
While the other part of the script the Brians had done over there, is not so
important to remember
You can still use macros at the switches to accomplish a ping test
Something like
conf t
macro name ping
do ping 1.1.1.1
do ping 2.2.2.2
@
macro global apply ping
or at the routers the same principle as the page but not so Formatted, and
more easier to remember :D
tclsh
foreach i {
1.1.1.1 <-- this addresses can be taken using show ip alias or show
2.2.2.2 ip int brief
} { ping $i rep 1 }
If you have the IEWB they at WB Vol 2 Ver 3 they use this test in every of
their lab (Great Work BTW), And I just saw the new validation and
Verification from Vol 1 and they are pretty good doing the same.
HTH
Victor.-
-----Mensaje original-----
De: nobody@groupstudy.com [mailto:nobody@groupstudy.com] En nombre de chris
Enviado el: Miircoles, 23 de Agosto de 2006 07:09 p.m.
Para: ccielab@groupstudy.com
Asunto: Tcl scripting
COuld someone preferably the auther of the following tcl script
please provide a fully commented version
http://www.internetworkexpert.com/resources/tclshrsh.htm
how does it work i dont understand what every line does - is their a
good book on tcl i should pick up ?
This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:58 ART