我正在尝试远程登录到 altusen 电源 KVM 并重新启动计算机。使用 Windows telnet 执行此操作时效果很好。但是当我使用 python 的 telnetlib 时,所有读取命令都会失败(不是立即失败,而是超时)在使用 windows telnet 时一切正常,我可以看到登录消息
以下是我使用的代码:[在 python 2.7.3 上]
import telnetlib
tn = telnetlib.Telnet("11.11.11.11")
print tn.read_all()//timeout fail,windows telnet does get a response
可以清除:
python No user input get nothing read_all() timeout normal windows telnet client No user input get nothing read_all () timeout normal windows telnet client No user input get nothing
** ALTUSEN -- PN9108 通过 Telnet 配置 **
登录: