Last week I have faced challenge in responding to HP support (ITRC) thread regarding collecting Network utilization for Operation Manger to evaluate it against threshold.
Infrastructure SPI contain some policies for Monitoring network utilization but it is quite complicated (but efficient) as it has various mathematical calculations.
Any way the script I have provided was just for calculating the utilization based on two factors total bytes transferred per second and the bandwidth.
We can get this data using WMI through “Win32_PerfFormattedData_TCPIP_NetworkInterface” class located on namespace “rootCIMV2”
We can use the attributes below to match factors stated above:
Network utilization calculation:
BytesTotalPerSec / CurrentBandwidth * 100
Screenshot of the output.