mismatch output net-snmp -current

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

mismatch output net-snmp -current

Agung T. Apriyanto-2
i found mismatch output from snmpwalk in -current net-snmp, sample bellow

root@Cadangan[patches]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.4.20.1.2
IP-MIB::ipAdEntIfIndex.10.100.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.10.100.66.1 = INTEGER: 5
IP-MIB::ipAdEntIfIndex.10.100.67.1 = INTEGER: 6
IP-MIB::ipAdEntIfIndex.10.100.68.1 = INTEGER: 7
IP-MIB::ipAdEntIfIndex.10.100.69.1 = INTEGER: 8
IP-MIB::ipAdEntIfIndex.58.145.172.241 = INTEGER: 2
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 4

root@Cadangan[patches]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.3
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: 244
IF-MIB::ifType.5 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.6 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.7 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.9 = INTEGER: 245

interface index 5,6,7,8 have the right ip, but there's a mismatch at
index 1, 2 and 4 of IP-MIB.

any of you have the same problems ?

regards,
-Agung

Reply | Threaded
Open this post in threaded view
|

Re: mismatch output net-snmp -current

uno83
Agung T. Apriyanto-2 wrote
i found mismatch output from snmpwalk in -current net-snmp, sample bellow

root@Cadangan[patches]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.4.20.1.2
IP-MIB::ipAdEntIfIndex.10.100.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.10.100.66.1 = INTEGER: 5
IP-MIB::ipAdEntIfIndex.10.100.67.1 = INTEGER: 6
IP-MIB::ipAdEntIfIndex.10.100.68.1 = INTEGER: 7
IP-MIB::ipAdEntIfIndex.10.100.69.1 = INTEGER: 8
IP-MIB::ipAdEntIfIndex.58.145.172.241 = INTEGER: 2
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 4

root@Cadangan[patches]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.3
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: 244
IF-MIB::ifType.5 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.6 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.7 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.9 = INTEGER: 245

interface index 5,6,7,8 have the right ip, but there's a mismatch at
index 1, 2 and 4 of IP-MIB.

any of you have the same problems ?

regards,
-Agung
Hi.

We are seeing the same problem.

This is what I get:
mon01:~# snmpwalk -v 2c -c public xxx .1.3.6.1.2.1.2.2.1.2
IF-MIB::ifDescr.1 = STRING: lo0
IF-MIB::ifDescr.2 = STRING: em0
IF-MIB::ifDescr.3 = STRING: em1
IF-MIB::ifDescr.4 = STRING: em2
IF-MIB::ifDescr.5 = STRING: em3
IF-MIB::ifDescr.6 = STRING: enc0
IF-MIB::ifDescr.7 = STRING: bnx1
IF-MIB::ifDescr.8 = STRING: bnx0
mon01:~# snmpwalk -v 2c -c public xxx .1.3.6.1.2.1.4.20.1.2
IP-MIB::ipAdEntIfIndex.xxx.xxx.240.147 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.xxx.xxx.240.162 = INTEGER: 2
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 6
IP-MIB::ipAdEntIfIndex.xxx.xxx.168.54 = INTEGER: 3

It should be:
IP-MIB::ipAdEntIfIndex.xxx.xxx.240.147 = INTEGER: 2
IP-MIB::ipAdEntIfIndex.xxx.xxx.240.162 = INTEGER: 3
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.xxx.xxx.168.54 = INTEGER: 4

/Johan
Reply | Threaded
Open this post in threaded view
|

Re: mismatch output net-snmp -current

Cameron Simpson
On 17Apr2009 07:48, uno83 <[hidden email]> wrote:
| Agung T. Apriyanto-2 wrote:
| > i found mismatch output from snmpwalk in -current net-snmp, sample bellow
| >
| > root@Cadangan[patches]# snmpwalk -v 1 -c public localhost
| > .1.3.6.1.2.1.4.20.1.2
| > IP-MIB::ipAdEntIfIndex.10.100.0.1 = INTEGER: 1
| > IP-MIB::ipAdEntIfIndex.10.100.66.1 = INTEGER: 5
| > IP-MIB::ipAdEntIfIndex.10.100.67.1 = INTEGER: 6
| > IP-MIB::ipAdEntIfIndex.10.100.68.1 = INTEGER: 7
| > IP-MIB::ipAdEntIfIndex.10.100.69.1 = INTEGER: 8
| > IP-MIB::ipAdEntIfIndex.58.145.172.241 = INTEGER: 2
| > IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 4
| >
| > root@Cadangan[patches]# snmpwalk -v 1 -c public localhost
| > .1.3.6.1.2.1.2.2.1.3
| > IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
| > IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
| > IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
| > IF-MIB::ifType.4 = INTEGER: 244
| > IF-MIB::ifType.5 = INTEGER: ethernetCsmacd(6)
| > IF-MIB::ifType.6 = INTEGER: ethernetCsmacd(6)
| > IF-MIB::ifType.7 = INTEGER: ethernetCsmacd(6)
| > IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6)
| > IF-MIB::ifType.9 = INTEGER: 245
| >
| > interface index 5,6,7,8 have the right ip, but there's a mismatch at
| > index 1, 2 and 4 of IP-MIB.
| >
| > any of you have the same problems ?
|
| We are seeing the same problem.

Me too, using net-snmp on OpenBSD 4.5.

How is the base OS snmpd in 4.5? It was insufficient back on 4.3 and I
ended up using net-snmp, but we recently added another NIC to the box
and now net-snmp reports no interfaces at all:-(

Am trying today to upgrade (or re-install) to 4.5 on this box to match our
working equivalent box (redundant pair of machine with staggered install
times, hence the mismatch), but of course the AMD64 install CD doesn't boot
:-(

Cheers,
--
Cameron Simpson <[hidden email]> DoD#743