Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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. –  fechidal Aug 29 '13 at 12:46

1 Answer 1

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. –  fechidal Aug 29 '13 at 12:52

Your Answer

 
discard

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.