SNMP 2c with 64 bit works on one host, and not in another

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
laedrus
Posts: 27
Joined: Fri Mar 07, 2008 10:28 am

SNMP 2c with 64 bit works on one host, and not in another

Post by laedrus »

Hello there,

i'm having this issue, i configured a host as a mirror for the other machines i will poll.

now that i get it configured, i can poll 64 bits as well 32:

[root@darkstar ~]# snmpget -c mycomm -v 2c localhost .1.3.6.1.2.1.31.1.1.1.6.3
IF-MIB::ifHCInOctets.3 = Counter64: 1289148815

[root@darkstar ~]# snmpget -c mycomm -v 2c localhost .1.3.6.1.2.1.2.2.1.16.3
IF-MIB::ifOutOctets.3 = Counter32: 1139264416


but on another host, i JUST COPIED THE CONF FILE (any problem doing that? i don't think so)


and here's what i got:

[root@darkstar user]# snmpget -c mycomm -v 2c localhost .1.3.6.1.2.1.2.2.1.16.3
IF-MIB::ifOutOctets.3 = Counter32: 3810332526


[root@darkstar user]# snmpget -c mycomm -v 2c localhost .1.3.6.1.2.1.31.1.1.1.6.3
IF-MIB::ifHCInOctets.3 = No Such Object available on this agent at this OID


The only thing i can suppose is that the OID's of SNMP are bound with the hardware in a way that is unknown to me.

is that true? the only difference between the 2 hosts is it's hardware.

they have the same version of the same distribution installed.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please omit the last tupel ".3" on your snmpget statement or use snmpwalk and retry
Reinhard
laedrus
Posts: 27
Joined: Fri Mar 07, 2008 10:28 am

Post by laedrus »

The asnwer changes from this

IF-MIB::ifHCInOctets.3 = No Such Object available on this agent at this OID

to this

IF-MIB::ifHCInOctets = No Such Object available on this agent at this OID

ok, but i got one thing:

the host that works is Fedora 7 and have net-snmp-5.4

the one that not works is CentOS 4.4 and have net-snmp-5.1

could be this??
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I've not used 5.1 since ages. And please remember that HC counters are NOT mandatory. If omitting .3 (the interface index; it may vary from target to target) does not show anything, I bet that HC counter support is not implemented for that target
Reinhard
laedrus
Posts: 27
Joined: Fri Mar 07, 2008 10:28 am

Post by laedrus »

so, the problem is my hardware? or i can solve this by software?

remember, the host that works (with the very same query) is fedora 7 with NET-SNMP 5.4

and the one that doesn't works is CentOS 4 with NET-SNMP 5.1

by the way, what means HC ??

and what you means with target? the interface or the host?

thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

laedrus wrote:by the way, what means HC ??
High Counters aka 64bit counters
and what you means with target? the interface or the host?
the target host (remote host)
Reinhard
laedrus
Posts: 27
Joined: Fri Mar 07, 2008 10:28 am

Post by laedrus »

just to be sure, i'm testing from localhost to localhost

any ideas?

could net-snmp implement HC counters on version 5.4 and not in the 5.1?

do you wanna see the conf file?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That's a net-snmp question. And it will depend how the net-snmp package was built. Find some help at the first link of my sig, else post to net-snmp mailing list to get an authoritative answer
Reinhard
laedrus
Posts: 27
Joined: Fri Mar 07, 2008 10:28 am

Post by laedrus »

ok, Thanks a lot, when i get an answer i post here, if someone else gets the same trouble, maybe google guide it heheheh
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest