I am trying to use pyControl to retrieve Failover.UnitId,
db = pyControl.BIGIP(
hostname = host,
username = username,
password = password,
wsdl_files = [‘Management.DBVariable’]
)
unitid = db.Management_DBVariable.query([‘Failover.UnitId’])[‘return’]
But it crashed with following error msg
File “C:\view\LB\vcc\sw\java-modules\da\lb\bigip\src\inventory.py”, line 64, in get_failover
unitid = db.Management_DBVariable.query([‘Failover.UnitId’])[‘return’]
File “C:\Python25\lib\site-packages\zsi-2.1_a1-py2.5.egg\ZSI\ServiceProxy.py”, line 324, in __call__
File “C:\Python25\lib\site-packages\zsi-2.1_a1-py2.5.egg\ZSI\ServiceProxy.py”, line 204, in call_closure
TypeError: Not supporting SOAPENC:Arrays or XSD:List
According to the published soap API,
VariableNameValue [] query(
in String [] variables
);
My syntax was correct. Could someone share what I did wrong here?
Linda