08-15-2019 01:13 PM
Solved! Go to Solution.
08-16-2019 07:45 PM
varDeviceIP = "10.8.255.15"
varQuery = '''query{network{device(ip:"%s"){name,nickName}}}''' %varDeviceIP
varResult = emc_nbi.query(varQuery)
varName = varResult['network']['device']['name']
varNickName = varResult['network']['device']['nickName']
08-16-2019 07:45 PM
varDeviceIP = "10.8.255.15"
varQuery = '''query{network{device(ip:"%s"){name,nickName}}}''' %varDeviceIP
varResult = emc_nbi.query(varQuery)
varName = varResult['network']['device']['name']
varNickName = varResult['network']['device']['nickName']
08-16-2019 08:56 AM
08-16-2019 07:21 AM