Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telnetlib
- HOST = "route-server.he.net"
- tn = telnetlib.Telnet(HOST)
- tn.read_until("route-server>")
- tn.write("terminal length 0\n")
- tn.write("show ip bgp 138.122.226.0\n")
- tn.write("exit\n")
- print tn.read_all()
Advertisement
Add Comment
Please, Sign In to add comment