You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from Exscript.protocols import Telnet
conn = Telnet()
conn.connect('192.168.200.10', 9000)
a = conn.send('$SYS,INFO') # Execute the "uname -a" command
print(a)
But I get None. So not sure how to send a command, if I am connected, how to get the "welcome" message. I had a thorough read through the telnet documentation here:
I can use telnet to telnet to a device as follows
so I can run a command like
$SYS,INFO
.I am trying to use exscript to do the same:
But I get
None
. So not sure how to send a command, if I am connected, how to get the "welcome" message. I had a thorough read through the telnet documentation here:https://exscript.readthedocs.io/en/latest/Exscript.protocols.telnet.html
Really, I read that page in great detail! But it did not help to solve my problem.
I also tried the
telnetlib
example as follows:but this seems to be stuck at the "read_all" step ...
The text was updated successfully, but these errors were encountered: