Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/expect --
- spawn telnet 10.6.0.250
- expect "Username:"
- send "watchdog\r"
- expect "Password:"
- send "AAAAAAAAAA\r"
- expect "#"
- send "conf t\r"
- expect "(config)#"
- send "int eth1/0/25\r"
- expect "(config-if)#"
- send "shutdown\r"
- sleep 5
- expect "(config-if)#"
- send "no shutdown\r"
- expect "(config-if)#"
- send "exit\r"
- expect "(config)#"
- send "exit\r"
- expect "#"
- send "exit\r"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement