1838105 Members
3661 Online
110124 Solutions
New Discussion

SNMP sub-tree's missing?

 
Linda Calderon
Occasional Contributor

SNMP sub-tree's missing?

I'd like to use SNMP to monitor my system utilization (Free Memory, CPU utilization, etc) on several servers. During my testing, I've gotten the HP MIB installed correctly (or it appears so), but when I do an snmpwalk, I seem to be missing everything under the nm tree except snmp. Here's the output:

$ snmpwalk public hp
enterprises.hp.nm.snmp.snmpdConf.snmpdConfRespond.0 = true(1)
enterprises.hp.nm.snmp.snmpdConf.snmpdReConfigure.0 = reset(1)
enterprises.hp.nm.snmp.snmpdConf.snmpdFlag.0 = removetrap(1)
enterprises.hp.nm.snmp.snmpdConf.snmpdLogMask.0 = 0
enterprises.hp.nm.snmp.snmpdConf.snmpdVersion.0 = 10
enterprises.hp.nm.snmp.snmpdConf.snmpdStatus.0 = up(1)
enterprises.hp.nm.snmp.snmpdConf.snmpdSize.0 = 766616
enterprises.hp.nm.snmp.snmpdConf.snmpdWhatString.0 = "@(#) HP OpenView Emanate SNMP Agent. sys HPUX 10.X, rel 3.1"

It's my understanding that there should be a system subtree here that contains the scalars I'm looking for. Am I missing a patch?

Any ideas would be appreciated.
Drew Myers
3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor

Re: SNMP sub-tree's missing?

Hi,

Try using the OIDs instead:

CPU Load: 1.3.6.1.4.1.11.2.3.1.1.3.0
Free Memory: 1.3.6.1.4.1.11.2.3.1.1.7.0
Free Swap: 1.3.6.1.4.1.11.2.3.1.1.12.0
No. of Current Processes: 1.3.6.1.4.1.11.2.3.1.4.1.0

Hope this helps. Regards.

Steven Sim Kok Leong
Linda Calderon
Occasional Contributor

Re: SNMP sub-tree's missing?


Thanks for the suggestion Steven. Unfortunately, I get the same error with the OIDs. Here's the output:

$ snmpget systemname public 1.3.6.1.4.1.11.2.3.1.1.3.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: system.sysUpTime.6.1.4.1.11.2.3.1.1.3.0

Maybe I don't have the MIB installed correctly? Or maybe I have the agent configured incorrectly? Here's the contents of my /etc/SnmpAgent.d/snmpd.conf:

get-community-name: public
#set-community-name: # enter community name
contact: Unix Administration # enter contact person for agent
location: FLDC # enter location of agent
#max-trap-dest: # enter max no. of trap-dest entries to be maintained.
#trap-dest: # enter trap destination

I'm a bit new at this whole snmp thing, so I apologize if I'm overlooking something simple.
Steven Sim Kok Leong
Honored Contributor

Re: SNMP sub-tree's missing?

Hi,

Try adding a dot before the OID:

# snmpget systemname public .1.3.6.1.4.1.11.2.3.1.1.3.0

If you are still unable to access the OID, you probably haven't loaded your MIB yet. Ensure that your startup configuration files contain the proper configuration line:

1) /etc/rc.config.d/SnmpMaster
2) /etc/rc.config.d/SnmpMib2
3) /etc/rc.config.d/SnmpHPUnix

Restart the respective daemons:
# /sbin/init.d/SnmpHpunix stop
# /sbin/init.d/SnmpMib2 stop
# /sbin/init.d/SnmpMaster stop
# /sbin/init.d/SnmpMaster start
# /sbin/init.d/SnmpMib2 start
# /sbin/init.d/SnmpHpunix start

Here's a document to guide you on accessing the HP-UX MIBs:

http://www.infotech.tu-chemnitz.de/~knoll/HP/Dokumente/j1136-90005.pdf

Hope this helps. Regards.

Steven Sim Kok Leong