12-05-2008
123,
3
Join Date: Nov 2008
Last Activity: 13 December 2011, 4:30 PM EST
Location: Germany
Posts: 123
Thanks Given: 3
Thanked 3 Times in 3 Posts
Cisco TCL script write stdout to tftpboot
I want to log the following stdout:
router(config)#scripting tcl init tftp://192.168.1.1/remote-ping.tcl
=====================================
tclsh
proc rping {} {
foreach address {
192.168.1.1
192.168.2.1
} { ping $address re 50 si 1500
}
=====================================
router(tcl)#rping
Type escape sequence to abort.
Sending 50, 1500-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sending 50, 1500-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This script will be executed remotly via cron job, and I want to log all the ICMP-replies.
Any suggestion !!