CiscoTool_v1/netmiko_Api/utils/check_mode.sh

15 lines
193 B
Bash

#!/usr/bin/expect
spawn telnet [lindex $argv 0] [lindex $argv 1]
sleep 3
expect ">"
send "\r"
send "show abc"
expect ":"
send "\r"
send "show abc"
expect "#"
send "\r"
send "show abc"
sleep 2