telnet 登录参数
[ host | alias=None | port=23 | timeout=None | newline=None | prompt=None | prompt_is_regexp=False | encoding=None | encoding_errors=None | default_log_level=None | window_size=None | environ_user=None | terminal_emulation=None | terminal_type=None | telnetlib_log_level=None | connection_timeout=None ]
1、telnet 关闭所有连接
Telnet.Close All Connections
2、打开telnet
Telnet.Open Connection 192.168.1.202 timeout=15
sleep 10
Telnet.Read Until login:
3、写入
Telnet.Write
4、读取
Telnet.Write netsh WLAN show interface
sleep 5
${wifi_linkssid} Telnet.Read
5、Telnet.Close Connection