Page 2 of 3

Re: cannot import MIBS

Posted: Mon Feb 18, 2013 11:17 am
by scottwilkerson
shakra2005 wrote:when i run snmpwalk -v1 -c public localhost

i cannot see the mib
You won't see them by running this against localhost, you would need to do the snmpwalk against a device that uses these mibs, ie. an APC

Code: Select all

snmpwalk -v1 -c public <YOUR_APC_IP_ADDRESS>

Re: cannot import MIBS

Posted: Tue Feb 19, 2013 1:28 am
by shakra2005
It runs but only with the following MIBS

UDP-MIB
SNMPv2-MIB
IF-MIB

It should run with the powernet405.mib

Re: cannot import MIBS

Posted: Tue Feb 19, 2013 2:08 pm
by lmiltchev
What happens when you run the command like this?

Code: Select all

snmpwalk -v1 -c public <YOUR_APC_IP_ADDRESS> -m all
Are you positive that your device actually uses "powernet405.mib"? It's seems like this is a MIB used for SNMP traps, so you are not going to be able to snmpwalk it.

Re: cannot import MIBS

Posted: Wed Feb 20, 2013 1:59 am
by shakra2005
Did not find 'enterprises' in module RFC1155-SMI (/usr/share/snmp/mibs/nsascsi.mib)
Unlinked OID in HPNSASCSI-MIB: hp ::= { enterprises 11 }

Unlinked OID in CPQIODRV-MIB: compaq# ::= { compaq 0 }

Did not find 'compaq' in module CPQHOST-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'ifIndex' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'ifDescr' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'sysName' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'sysDescr' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'sysContact' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)
Did not find 'sysLocation' in module RFC1213-MIB (/usr/share/snmp/mibs/cpqdceeo.mib)

Re: cannot import MIBS

Posted: Wed Feb 20, 2013 11:48 am
by sreinhardt
Based on the error, it looks like you may be using a mib that requires non-free mibs that are no longer packaged with snmp rpms. The other option appears to be adding a -M /usr/share/snmp/mibs/ to the snmpwalk command. This forces the directory and with the -m all command will include all mibs located there.

Re: cannot import MIBS

Posted: Thu Feb 21, 2013 1:55 am
by shakra2005
Same Error with the APC

when i check a Cisco Switch it runs with more MIBS

Re: cannot import MIBS

Posted: Thu Feb 21, 2013 7:21 pm
by scottwilkerson
Is there a specific value you are looking for from this device?

Re: cannot import MIBS

Posted: Fri Feb 22, 2013 6:18 am
by shakra2005
no,

i want to receive all crtical Traps from the Device

Re: cannot import MIBS

Posted: Fri Feb 22, 2013 11:43 am
by scottwilkerson
You cannot view traps by doing an SNMP walk.

Have you setup this device to send traps to your XI server IP Address?

Re: cannot import MIBS

Posted: Fri Feb 22, 2013 6:53 pm
by shakra2005
for traps i must configure snmptt right ?

What must i do to monitor the hardware status