Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!usr/bin/python
- import telnetlib
- HOST = "MY IP ADDRESS"
- PORT=23
- TIMEOUT=10
- user = "LV5333"
- password = "LV5333"
- tn = telnetlib.Telnet(HOST)
- tn.read_until("login: ")
- tn.write(user+"\n")
- tn.read_until("Password: ")
- tn.write(password+"\n")
- tn.write("WAVEFORM\n") # <-- Put your command here DO NOT FORGET Newline \n
- tn.write("bye\n")
- print tn.read_all()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement