From: Victor Cappuccio (cvictor@protokolgroup.com)
Date: Sun Sep 10 2006 - 01:34:26 ART
Hello you can use macros at the switch as well
Sw1(config)#macro name ping
Enter macro commands one per line. End with the character '@'.
do ping 154.1.6.6
do ping 154.1.3.3
@
Sw1(config)#
Sw1(config)#macro global apply ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 154.1.6.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/124/124 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 154.1.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/61/64 ms
Sw1(config)#
Saludos,
Victor.-
-----Mensaje original-----
De: nobody@groupstudy.com [mailto:nobody@groupstudy.com] En nombre de
sabrina pittarel
Enviado el: Domingo, 10 de Septiembre de 2006 12:27 a.m.
Para: ismail el-shalh; ccielab
Asunto: Re: How to use the TCL Script for verifying connectivity
Hi,
Rack1R2#tclsh
Rack1R2(tcl)#foreach i {
+>130.1.124.1
+>130.1.124.4
+>} { ping $i }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 130.1.124.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/40/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 130.1.124.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/80/80 ms
Rack1R2(tcl)#
This archive was generated by hypermail 2.1.4 : Sun Oct 01 2006 - 16:55:40 ART