thank you very much guys, I will try to create this script and will give you.
See ya ---------------------- NO STREES ECO ATTITUD :D On Tue, Jul 21, 2009 at 7:39 AM, Ivan Pepelnjak <[email protected]> wrote: > Tcl doesn't have "expect" but it does have "typeahead" which you can > probably use to feed the input to Ping command. > > http://wiki.nil.com/Insert_responses_to_command_prompts_in_Tclsh > http://wiki.nil.com/Tclsh_on_Cisco_IOS_tutorial > > Ivan > > http://www.ioshints.info/about > http://blog.ioshints.info/ > > > -----Original Message----- > > From: Ziv Leyes [mailto:[email protected]] > > Sent: Tuesday, July 21, 2009 8:51 AM > > To: .....::::[Gardener] ::::.....; [email protected] > > Subject: Re: [c-nsp] TCLsh + Ping TOS > > > > That's interesting indeed, the one line ping command seems to > > not be able to include the extended commands, so I wonder, > > does the tcsh support "expect" > > Because that could be a solution for this kind of need. > > > > Regarding the command running from other place you could use > > an alias exec, e.g. > > alias exec multiping tclsh disk2:file.tcl > > > > Hope this helps > > Ziv > > > > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of > > .....::::[Gardener] ::::..... > > Sent: Monday, July 20, 2009 7:59 PM > > To: [email protected] > > Subject: [c-nsp] TCLsh + Ping TOS > > > > 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 > > _______________________________________________ > > cisco-nsp mailing list [email protected] > > https://puck.nether.net/mailman/listinfo/cisco-nsp > > archive at http://puck.nether.net/pipermail/cisco-nsp/ > > > > > > > > ************************************************************** > > ********************** > > This footnote confirms that this email message has been > > scanned by PineApp Mail-SeCure for the presence of malicious > > code, vandals & computer viruses. > > ************************************************************** > > ********************** > > > > > > > > > > > > > > ************************************************************** > > ********************** > > This footnote confirms that this email message has been > > scanned by PineApp Mail-SeCure for the presence of malicious > > code, vandals & computer viruses. > > ************************************************************** > > ********************** > > > > > > > > > > > > _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
