cancel
Showing results for 
Search instead for 
Did you mean: 

NBI query returns inaccurate data

NBI query returns inaccurate data

MaxHibbin
New Contributor

Hi I am using this query in a script:

'getSLPPStatus': {
'json': '''
{
network {
device(ip: "<IP>") {
deviceData {
ports {
fabricEnable
portName
portSlppGuardEnable
}
}
}
}
}
''',
'key': 'deviceData'

However portSlppGuardEnable is returning false, when it should definitely be returning true. I have checked the running config on a several test switches and they do indeed have "slpp-guard enable" on their ports. Why is the NBI data incorrect? Switch is online etc. It's not 100% inaccurate all the time, sometimes it will be correct but just often isn't.
Thanks so much.

1 ACCEPTED SOLUTION

Zdeněk_Pala
Extreme Employee

Hi,

I DeviceData contains the desired/cached configuration you have in Site Engine.
if you want data from device I suggest first Read data from Switch to Site Engine and then you can use DeviceData NBI.

mutation{network{readDevices(input:{devices:[{ipAddress:"X.X.X.X"}]}){results {
message
status
}}}}

 

Regards Zdeněk Pala

View solution in original post

1 REPLY 1

Zdeněk_Pala
Extreme Employee

Hi,

I DeviceData contains the desired/cached configuration you have in Site Engine.
if you want data from device I suggest first Read data from Switch to Site Engine and then you can use DeviceData NBI.

mutation{network{readDevices(input:{devices:[{ipAddress:"X.X.X.X"}]}){results {
message
status
}}}}

 

Regards Zdeněk Pala
GTM-P2G8KFN