is it possible to out put this to cisco router logs or sending to file in the router flash only option?
no need to send out to other syslog server but just router itself
for {set i 1} {$i<4} {incr i} {
set var 1.1.1
append var "." $i
puts $var
set mybuffer [exec "ping $var"]
puts $mybuffer
}
1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
1.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
1.1.1.3