Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tn = telnetlib.Telnet(line)
- tn.read_until("Username: ")
- tn.write(user + "n")
- tn.read_until("Password: ")
- tn.write(password + "n")
- tn.write("enable n")
- tn.write(password + "n")
- ## GET VOIP INTERFACE
- tn.write("sh int desc | i VOIP n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement