Avatar of Deeteees

asked on 

How to poll a switch for flow statistics using SNMP


I need to poll a number of switches for port flow statistics (e.g. Peak Tx Byte/sec, Tx Byte Count, etc.) from a local server.

I have no issues telnetting any of the switches and directly querying for this data using 'show port utilization' OR 'show port stats'.

This is not very good for keeping accurate statistics however, so what I want to do is use SNMP to poll those switches every hour and query for this information. I then want this information sent to my server where I can just parse it using awk to get it into the format I require.

Can you provide me with a sample of the SNMP code that would allow me to do this please.

Switches / HubsNetwork AnalysisRouters

Avatar of undefined
Last Comment
Kamran Arshad

8/22/2022 - Mon