I am trying to get an NQE scheduled to run every 5 mins. and fetch if an interface has any errors and/or if the interface utilization is high ( >90%).
With the below NQE i get an error as below - Any fields with bytes is not recognized..
ERROR: Record does not have field: "bytesOut".
interfaceUtilization(iface) = 100 * (sum(iface.bytesOut) - sum(iface.bytesIn)) / (sum(iface.bytesOut) + sum(iface.bytesIn));
foreach device in network.devices
foreach interface in device.interfaces
where interface.adminStatus == AdminStatus.UP
select {
deviceName: device.name,
interfaceName: interface.name,
utilization: interfaceUtilization(interface)
}
- Not sure why “bytes” is not recognized by the NQE
- How to have this scheduled to run every 5 mins ?