On 2008/11/03 21:08, Helmut Schneider wrote: > Hi, > > I installed net-snmp from ports. As (probably almost) all OIDs work > fine IF-MIB does not: > > [EMAIL PROTECTED] ~]# snmpwalk -v2c -cpublic obsd44vm SNMPv2-MIB::sysDescr > SNMPv2-MIB::sysDescr.0 = STRING: OpenBSD OBSD44VM 4.4 GENERIC#1021 i386 > [EMAIL PROTECTED] ~]# snmpwalk -v2c -cpublic obsd44vm IF-MIB::ifDescr > IF-MIB::ifDescr = No Such Instance currently exists at this OID > [EMAIL PROTECTED] ~]# snmpwalk -v2c -cpublic obsd44vm IF-MIB::ifNumber > IF-MIB::ifNumber.0 = INTEGER: 0 > [EMAIL PROTECTED] ~]# > > > Using net-snmp-5.4.1p0 on 4.3 ís fine: > > [EMAIL PROTECTED] ~]# snmpwalk -v2c -cpublic mx1 SNMPv2-MIB::sysDescr > SNMPv2-MIB::sysDescr.0 = STRING: OpenBSD mx1 4.3 GENERIC.MP#2 i386 > [EMAIL PROTECTED] ~]# snmpwalk -v2c -cpublic mx1 IF-MIB::ifDescr > IF-MIB::ifDescr.1 = STRING: lo0 > IF-MIB::ifDescr.2 = STRING: bge0 > IF-MIB::ifDescr.3 = STRING: bge1 > IF-MIB::ifDescr.4 = STRING: enc0 > IF-MIB::ifDescr.5 = STRING: pflog0 > > Local problem, or broken port?
lots of strange problems on various arch led to kmem being disabled, which resulted in if-mib not being available. 5.4.2 with a patch in -current seems a bit happier, but historically this software has been a bit hit-and-miss (worse on non-i386 but we definitely had problems with i386 too). if you're mainly interested in network interface stats, the snmpd in the base OS is a great choice...
