From: Bob Sinclair (bsin@cox.net)
Date: Tue Feb 01 2005 - 09:34:16 GMT-3
Lee,
Here is the syntax I use:
foreach address {
172.16.101.1
172.16.102.1
} {ping $address}
Note space between close and open brace.
HTH,
Bob Sinclair
CCIE #10427, CCSI 30427, CISSP
www.netmasterclass.net
----- Original Message -----
From: "Lee Donald" <Lee.Donald@t-systems.co.uk>
To: <ccielab@groupstudy.com>
Sent: Tuesday, February 01, 2005 7:18 AM
Subject: tclsh ping script
> Can anybody remember the above testing script?
>
>
>
> I think it went something like this,
>
>
>
> Router#> tclsh> foreach {i ping}
>
> 123.123.123.254
>
>
>
> Is anyone using this? Can they correct my syntax?
>
>
>
> Thanks
>
>
>
>
>
>
>
> Regards
>
>
>
> Lee Donald.
>
> Technical Design Architect
>
> CCIE w /CCNP/ CCDP/MCSE/MCNE.
>
>
>
> T-Systems Ltd
>
> Turnberry House, Caldecotte Lake Drive,
>
> Milton Keynes. MK7 8LE
>
> Direct Line: + 44 (0) 1908 279648
>
> Switchboard: + 44 (0) 1908 279500
>
> Mobile: + 44 (0) 7903 407601
>
> E-mail: Lee.Donald@t-systems.co.uk
>
> Internet: www.t-systems.co.uk
>
> [GroupStudy removed an attachment of type image/gif which had a name of
> image001.gif]
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Thu Mar 03 2005 - 08:51:15 GMT-3