From: network freek (network.freek@gmail.com)
Date: Thu Mar 15 2007 - 22:33:03 ART
And how do you do such thing in TCL script?
Is it doable using TCL script also?
thanks.
2007/3/16, kuldip singh <dipa.singh@gmail.com>:
> 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