Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (29 sloc) 0.676 kb
#!/usr/bin/expect -f
#set timeout -1
spawn $env(SHELL)
#match_max 100000
send -- "ssh admin@172.29.251.12\r"
expect -exact "ssh admin@172.29.251.12\r
Password: "
send -- "Y1nj1%vip\r"
expect "YJ-DDC2-LB1000-1-Active>"
send -- "en\r"
expect -exact "en\r
Password:"
send -- "\r"
expect "YJ-DDC2-LB1000-1-Active#"
send -- "debug packet count 10000 l3-protocol ip all\r"
send -- " debug monitor\r"
sleep 5
send -- ""
expect -exact "YJ-DDC2-LB1000-1-Active#"
send -- "exit\r"
expect -exact "exit\r
YJ-DDC2-LB1000-1-Active>"
send -- "exit\r"
expect -exact "exit\r
Are you sure to quit (N/Y)?: "
send -- "y"
expect "Connection to 172.29.251.12 closed."
send -- "exit\r"
expect eof
Jump to Line
Something went wrong with that request. Please try again.