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 am trying to use snmpwalk to get the MIB list and I couldn't get anything related to CPU, Load, Memory.

On further digging in I found that the UCD-SNMP-MIBs are the one which will return the information I require. But, I couldn't find anything on the snmpwalk output.

How to enable this in snmp configuration ? or any additional modules has to be configured ?

I am running smpwalk on CentOS box and my target host is a linux xen server. I have installed net-snmp, net-snmp-utils on my CentOS server.

share|improve this question
    
Have you verified your SNMPD is running? –  RobW Jan 24 '12 at 17:42

1 Answer 1

up vote 0 down vote accepted

When you snmpwalk a device using the net-snmp snmpwalk tool, it will not by default return anything in the enterprise MIBs, such as UCD-SNMP.

Enterprise MIBs are all the OIDs that start with .1.3.6.1.4.1.

You can work around this by specifying where on the OID tree to start walking, instead of returning the default parts of the tree

  snmpwalk -v2c -cpublic 10.8.0.1 .1.3.6.1.4.1

would walk the tree starting with 'enterprises.', which would return the UCD-SNMP-MIB with all that good information that you want.

You can also do

  snmpwalk -v2c -cpublic 10.8.0.1 .1

which says "start at .1" which is the top of the OID tree, and will return everything.

Now, many of the OIDs won't be translated into names. You have to ask snmpwalk to turn OIDs into names by parsing all of the non-default MIBs, you do that by adding '-mALL' to the command line

  snmpwalk -v2c -cpublic -mALL 10.8.0.1 .1

will return everything, with OIDs turned to names (where you have a copy of the MIB file in one of the default MIB directories).

HTH

share|improve this answer

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.