add support for connecting to another host with cmdmgr
This commit is contained in:
parent
be90f47f63
commit
9d9b228b88
@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user