Hi - Ever since the snmp package stopped shipping MIBs due to licensing problems, I've been unable to get snmpwalk and friends to correctly resolve OIDs to names (and vice versa), at all. I've used the snmp-mibs-downloader package to download the iana and ietf mibs, as well as modified the configuration file to grab the junos and screenos MIBs (seems handy). Unfortunately I've yet to get snmpwalk and friends to actually use these MIBs. Here's a simple test that I've always been able to do before MIBs stopped shipping with snmp: % snmpwalk -v2c -c <something> ra system|cut -b -72 SNMPv2-MIB::sysDescr.0 = STRING: Juniper Networks, Inc. srx210h internet SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.2636.1.1.1.2.36 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (17231643) 1 day, 23:51 SNMPv2-MIB::sysContact.0 = STRING: Mark Kamichoff <prox@prolixium.com> SNMPv2-MIB::sysName.0 = STRING: orb SNMPv2-MIB::sysLocation.0 = STRING: Charlotte, NC SNMPv2-MIB::sysServices.0 = INTEGER: 4 Now, obviously, it's not working right: % snmpwalk -v2c -c <something> ra system|cut -b -72 system: Unknown Object Identifier (Sub-id not found: (top) -> system) If I plug in an OID to start walking, I get output, but none of the OIDs are resolved to names: % snmpwalk -v2c -c <something> ra 1.3.6.1.2.1|cut -b -72|head iso.3.6.1.2.1.1.1.0 = STRING: "Juniper Networks, Inc. srx210h internet r iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.2636.1.1.1.2.36 iso.3.6.1.2.1.1.3.0 = Timeticks: (17262853) 1 day, 23:57:08.53 iso.3.6.1.2.1.1.4.0 = STRING: "Mark Kamichoff <prox@prolixium.com>" iso.3.6.1.2.1.1.5.0 = STRING: "orb" iso.3.6.1.2.1.1.6.0 = STRING: "Charlotte, NC" iso.3.6.1.2.1.1.7.0 = INTEGER: 4 iso.3.6.1.2.1.2.1.0 = INTEGER: 73 iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1 iso.3.6.1.2.1.2.2.1.1.2 = INTEGER: 2 It should look like the following: % snmpwalk -v2c -c <something> ra 1.3.6.1.2.1|cut -b -72|head SNMPv2-MIB::sysDescr.0 = STRING: Juniper Networks, Inc. srx210h internet SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.2636.1.1.1.2.36 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (17264297) 1 day, 23:57 SNMPv2-MIB::sysContact.0 = STRING: Mark Kamichoff <prox@prolixium.com> SNMPv2-MIB::sysName.0 = STRING: orb SNMPv2-MIB::sysLocation.0 = STRING: Charlotte, NC SNMPv2-MIB::sysServices.0 = INTEGER: 4 IF-MIB::ifNumber.0 = INTEGER: 73 IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifIndex.2 = INTEGER: 2 I've got the following in my snmp.conf, which I believe adds the downloaded and included MIBs to the search path: % grep -v ^# /etc/snmp/snmp.conf mibs ALL mibdirs /var/lib/mibs /usr/share/mibs I don't get tons of MIB errors from snmpwalk like I did before I modified /etc/snmp/snmp.conf, but apparently something is still not right. Any ideas? Here are the versions of the packages I've got installed: snmp 5.4.3~dfsg-1 snmp-mibs-downloader 1.1 snmpd 5.4.3~dfsg-1 This is a Debian 'testing' installation on amd64. Thanks! - Mark -- Mark Kamichoff prox@prolixium.com http://www.prolixium.com/
Attachment:
signature.asc
Description: Digital signature