From: Dan C (cdan2154@gmail.com)
Date: Fri Mar 16 2007 - 02:33:18 ART
Hello there,
Here is tcl example
tcls
foreach ip {
4.4.1.1
4.4.2.2
4.4.3.3
4.4.4.4
4.4.5.5
4.4.6.6
4.4.7.7
4.4.8.8
} {ping $ip}
tclq
Cheers
Dan
tcls
On 3/16/07, network freek <network.freek@gmail.com> wrote:
>
> 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
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Sun Apr 01 2007 - 06:35:51 ART