NetworkGhost
IS-IT--Management
I have a line in my expect script:
expect "Success*ms" {set ICMPLINE [string trimright $expect_out(0,string)] ; send_log "$ICMPLINE\n"}
It is getting printed rwice in the log like so:
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/91/92 ms
Ciscorouter#Success rate is 100 percent (5/5), round-trip min/avg/max = 88/91/92 ms
I would like to Only print this line:
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/91/92 ms
Any help would be appreciated. Not sure why it puts the line out twice.
Free Firewall/Network/Systems Support-
expect "Success*ms" {set ICMPLINE [string trimright $expect_out(0,string)] ; send_log "$ICMPLINE\n"}
It is getting printed rwice in the log like so:
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/91/92 ms
Ciscorouter#Success rate is 100 percent (5/5), round-trip min/avg/max = 88/91/92 ms
I would like to Only print this line:
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/91/92 ms
Any help would be appreciated. Not sure why it puts the line out twice.
Free Firewall/Network/Systems Support-