[c-nsp] TCLsh + Ping TOS

.....::::[Gardener] ::::..... elmonomario69 at gmail.com
Mon Jul 20 12:58:53 EDT 2009


Hi to everyone.

Please i need some advice to create a little script to make Ping with TOS

i found on several webpages, things like this.

R1#tclsh
R1(tcl)#foreach address {
+>(tcl)#172.12.23.2
+>(tcl)#172.12.23.3
+>(tcl)#172.12.23.4
+>(tcl)#172.12.23.6
+>(tcl)#172.12.23.7
+>(tcl)#} { ping $address re 10 si 1500
+>(tcl)#}

This is my problem, i can not make the complete command on ONE line (becouse
i don't have TOS ).
 I need to create script to execute things like this.

R1#ping
Protocol [ip]:
Target IP address: 172.16.123.1
Repeat count [5]: 1000
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: loopback0
Type of service [0]: 96
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:



The other impossibility that i have i can not create or bring from other
place the file.tcl, all this script has to be applied on-line on the router.

Thank you.
 Andres P. Spano


More information about the cisco-nsp mailing list