Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm developing a snmp agent for linux and I wonder if there is a directory or file proper protocol statistics snmp OIDs to develop snmpInPkts, snmpOutPkts, snmpInBadVersions, snmpInBadCommunityNames.

I ask because I found in the /proc/net/snmp all statistics for protocols like IP, ICMP, TCP and UDP.

Thank you.

share|improve this question
You're looking for MIBs, I think... and there are A LOT of them. – Michael Hampton Aug 25 '13 at 22:41
You should search for RFC MIBs of the topic. – EhevuTov Aug 26 '13 at 19:44
I know which are the object identifiers, I want to know is how to get their values ​​from the operating system when provided. – fechidal89 Aug 29 '13 at 12:46

On Linux?

You might be able to find some in /usr/share/snmp/ or /usr/local/share/snmp.

You will probably need to install the snmp packages though. On Ubuntu, apt-get install snmp. On RPM based Os, I think you need to install net-snmp-utils.

Hope that helps.

share|improve this answer
Thank you. The idea is not install anything and I can get the values. I'll have to parse the packets and get the statistics. – fechidal89 Aug 29 '13 at 12:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.