RE: Ping from 3550 switches sames as TCL script but using Macro

From: Antonio Soares (amsoares@netcabo.pt)
Date: Fri Mar 16 2007 - 14:54:56 ART


Very nice tip !!! I usually test reachability from the 3550/3560's using
rsh. From now on I will use this technique.

Thanks.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
kuldip singh
Sent: quinta-feira, 15 de Margo de 2007 23:38
To: ccielab@groupstudy.com
Subject: Ping from 3550 switches sames as TCL script but using Macro

Hi guys,

Some of you guys might already know this, but you can ping all the networks
from 3550 switches by creating macro as shown below.

Switch_2(config)#macro name ping
Enter macro commands one per line. End with the character '@'.
do ping 147.1.156.1
do ping 140.1.1.1
do ping 147.1.11.1
do ping 147.1.14.1
do ping 183.1.111.1
do ping 147.1.236.2
@
Switch_2(config)#
Switch_2(config)#int fa0/14
Switch_2(config-if)#macro apply ping

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 147.1.156.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms Type
escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 140.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms Type
escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 147.1.11.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms Type
escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 147.1.14.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/30/32 ms Type
escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 183.1.111.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms Type
escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 147.1.236.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/60/68 ms
Switch_2(config-if)#

 regards.../dipa



This archive was generated by hypermail 2.1.4 : Sun Apr 01 2007 - 06:35:51 ART