add support for connecting to another host with cmdmgr

This commit is contained in:
Michael Zanetti 2014-06-22 22:02:26 +02:00
parent be90f47f63
commit 9d9b228b88

View File

@ -283,6 +283,12 @@ def list_device_states():
print "%s: %s" % (deviceClass['stateTypes'][i]['name'], response['params']['value'])
print "=== States ==="
import sys
if len(sys.argv) > 1:
HOST=sys.argv[1]
tn = telnetlib.Telnet(HOST, PORT)
packet = tn.read_until("\n}\n")