Advertisement
Guest User

Untitled

a guest
Sep 7th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. tn = telnetlib.Telnet(line)
  2.  
  3. tn.read_until("Username: ")
  4. tn.write(user + "n")
  5. tn.read_until("Password: ")
  6. tn.write(password + "n")
  7. tn.write("enable n")
  8. tn.write(password + "n")
  9. ## GET VOIP INTERFACE
  10. tn.write("sh int desc | i VOIP n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement