Hi
I am trying to get the engine id from a swql query using python but my output is blank.
Running query in swql direct and i get the required result
My code is:
session = requests.Session()
session.timeout = 30
swis = orionsdk.SwisClient(npm_server, username, password, session = session)
results = swis.query("SELECT EngineID FROM Orion.Nodes WHERE NodeName = 'xxxxxxxxx'")
for row in results['results']:
print("{EngineID}".format)
I have tried different print statements but either give me error or is blank.
#print(results["{EngineID}"].format)
#print("{NodeID} [{NodeName}] : {InterfaceID} [{InterfaceName}]".format(**row))
#engineID = results['results']
#print("{EngineID}".format)
Could someone where i am going wrong or if i am missing something.
Thanks