RE: Error: OID not increasing: with proxy

This is a discussion on RE: Error: OID not increasing: with proxy within the SNMP Users forums, part of the Networking and Network Related category; >>>>First, your alias for the list address has a trailing '.', which = causes my >>>&...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-09-2005
MAUGER Fabien ext ROSI/DPS
 
Posts: n/a
Default RE: Error: OID not increasing: with proxy



>>>>First, your alias for the list address has a trailing '.', which =

causes my
>>>>mailserver to reject my replies to you. Please remove it.


i ve removed the '.' in the list adress it would be better now.


>>>>On Fri, 4 Mar 2005 14:32:35 +0100 MAUGER wrote:
>>>>MFER> I've got an agent which is configure in order to forward snmp =

request
>>>>MFER> thanks to the "proxy" command in snmpd.conf it can be resume =

at this:
>>>>MFER>=20
>>>>MFER> |agent1|-------|agent2(the proxy)|--------|management =

station|
>>>>MFER>=20
>>>>MFER> I want my management station to query the agent1 using the =

proxy.
>>>>MFER> it works well but i've got a problem when i make an "snmpwalk" =

from the
>>>>MFER> management station to the agent 1 using the proxy. At the end =

of the
>>>>MFER> result i've got the follwing error:
>>>>MFER>=20
>>>>MFER> SNMPv2-MIB::sysLocation.0 =3D STRING: seoul
>>>>MFER> SNMPv2-MIB::sysServices.0 =3D INTEGER: 2
>>>>MFER> SNMPv2-MIB::sysServices.0 =3D INTEGER: 34
>>>>MFER> Error: OID not increasing: SNMPv2-MIB::sysServices.0
>>>>MFER>=20
>>>>MFER> my snmpwalk is construct as follow:
>>>>MFER> =09
>>>>MFER> snmpwalk -v 3 -u "snmpV3_user_agent2" -A "my_pwd" -a MD5 -l =

authNoPriv
>>>>MFER> -n seoul "ip_agent2" system
>>>>MFER>=20
>>>>MFER> my proxy line on the agent2 is:
>>>>MFER>=20
>>>>MFER> proxy -Cn seoul -v 1 -c "agent1_community" "ip_agent1" system
>>>>MFER>=20
>>>>MFER> the problem seams to come from the proxy cause when i make the =

request
>>>>MFER> directly from the agent2 to the agent1 using:
>>>>MFER>=20
>>>>MFER> snmpwalk -v 1 -c "agent1_community" "ip_agent1" system
>>>>MFER>=20
>>>>MFER> i've got a correct result as this:
>>>>MFER> =09
>>>>MFER> SNMPv2-MIB::sysLocation.0 =3D STRING: seoul
>>>>MFER> SNMPv2-MIB::sysServices.0 =3D INTEGER: 2


>>>>What about if you query agent2 without the context? Like so:
>>>>
>>>> snmpwalk -v 3 -u "snmpV3_user_agent2" -A "my_pwd" -a MD5 -l =

authNoPriv
>>>>"ip_agent2" system
>>>>
>>>>Does it have a sysServices.0 of 34? If so, it looks like the agent =

is getting
>>>>confused and mixing the default (local) context with the remote =

(proxied)
>>>>context.


i don't have a sysServices.0 instance on the agent2:
when i do an snmpget on it

snmpget -v 3 -u "snmpV3_user_agent2" -A "my_pwd" -a MD5 -l authNoPriv =
"ip_agent2" system.sysServices.0

i've got the following reply:

SNMPv2-MIB::sysServices.0 =3D No Such Instance currently exists at this =
OID

the snmpwalk for system on the agent2 from the management station give:

SNMPv2-MIB::sysDescr.0 =3D STRING: Linux fidji.localdomain =
2.4.21-9.0.3.ELsmp #1 SMP Tue Apr 20 19:49:13 EDT 2004 i686
SNMPv2-MIB::sysObjectID.0 =3D OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (6222811) 17:17:08.11
SNMPv2-MIB::sysContact.0 =3D STRING: fidji <root@localhost>
SNMPv2-MIB::sysName.0 =3D STRING: fidji.localdomain
SNMPv2-MIB::sysLocation.0 =3D STRING: fidji
SNMPv2-MIB::sysORLastChange.0 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 =3D OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 =3D OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 =3D OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 =3D OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 =3D OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 =3D OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 =3D OID: =
SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 =3D OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 =3D OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 =3D STRING: The MIB module to describe generic =
objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 =3D STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 =3D STRING: The MIB module for managing TCP =
implementations
SNMPv2-MIB::sysORDescr.4 =3D STRING: The MIB module for managing IP and =
ICMP implementations
SNMPv2-MIB::sysORDescr.5 =3D STRING: The MIB module for managing UDP =
implementations
SNMPv2-MIB::sysORDescr.6 =3D STRING: View-based Access Control Model =
for SNMP.
SNMPv2-MIB::sysORDescr.7 =3D STRING: The SNMP Management Architecture =
MIB.
SNMPv2-MIB::sysORDescr.8 =3D STRING: The MIB for Message Processing and =
Dispatching.
SNMPv2-MIB::sysORDescr.9 =3D STRING: The management information =
definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 =3D Timeticks: (0) 0:00:00.00=09

but another thing is strange, when i do an snmpgetnext on =
system.sysServices.0 i get:

snmpgetnext -v 1 -c "agent1_community" "agent1_ip" system.sysServices.0

IF-MIB::ifNumber.0 =3D INTEGER: 34

it seams that the 34 come from there but i don't understand why it's =
associated at the system.sysServices.0 object!

>>>>
>>>>You also don't say, for agent 2, what release you are running, and =

what
>>>>platform you are running on.
>>>>


i'm using net-snmp 5.0.9 on a linux red hat AS3 on the agent2.
and the agent1 is a 3com superstack3 switch.

and i've just add a second agent let's call it agent3.=20

|agent1|-------|agent2(the proxy)|--------|management station|
|
|agent3|-----------------

this agent agent is also a net-snmp 5.0.9 and the error is again the =
same.
when i do an snmpwalk on it passing through the proxy i get the =
following message:

the request:
=09
snmpwalk -v 3 -u "snmpV3_user_agent2" -A "my_pwd" -a MD5 -l authNoPriv =
"ip_agent2" system -n mali_v1

the proxy line in snmpd.conf is:
=09
proxy -Cn mali_v1 -v 1 -c "agent3_community" "ip_agent3" system

the response:

SNMPv2-MIB::sysDescr.0 =3D STRING: Linux mali 2.4.21-9.0.3.ELsmp #1 =
SMP Tue Apr 20 19:49:13 EDT 2004 i686
SNMPv2-MIB::sysObjectID.0 =3D OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (68610267) 7 days, 22:35:02.67
SNMPv2-MIB::sysContact.0 =3D STRING: fabien mauger
SNMPv2-MIB::sysName.0 =3D STRING: mali
SNMPv2-MIB::sysLocation.0 =3D STRING: mali
SNMPv2-MIB::sysORLastChange.0 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 =3D OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 =3D OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 =3D OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 =3D OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 =3D OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 =3D OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 =3D OID: =
SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 =3D OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 =3D OID: =
SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 =3D STRING: The MIB module to describe =
generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 =3D STRING: The MIB module for SNMPv2 =
entities
SNMPv2-MIB::sysORDescr.3 =3D STRING: The MIB module for managing TCP =
implementations
SNMPv2-MIB::sysORDescr.4 =3D STRING: The MIB module for managing IP =
and ICMP implementations
SNMPv2-MIB::sysORDescr.5 =3D STRING: The MIB module for managing UDP =
implementations
SNMPv2-MIB::sysORDescr.6 =3D STRING: View-based Access Control Model =
for SNMP.
SNMPv2-MIB::sysORDescr.7 =3D STRING: The SNMP Management Architecture =
MIB.
SNMPv2-MIB::sysORDescr.8 =3D STRING: The MIB for Message Processing =
and Dispatching.
SNMPv2-MIB::sysORDescr.9 =3D STRING: The management information =
definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 =3D Wrong Type (should be Timeticks): =
INTEGER: 8
Error: OID not increasing: SNMPv2-MIB::sysORUpTime.9
>=3D SNMPv2-MIB::sysORUpTime.9=09


it seams that it appends always on the last OID viewed by the =
snmpwalk!!!

and when i do this snmpwalk directly from the agent2 to agent3 (without =
proxy):

request:
=09
snmpwalk -v 1 -c "agent3_community" "agent3_ip" system

i get:

SNMPv2-MIB::sysDescr.0 =3D STRING: Linux mali 2.4.21-9.0.3.ELsmp #1 =
SMP Tue Apr 20 19:49:13 EDT 2004 i686
SNMPv2-MIB::sysObjectID.0 =3D OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (68665524) 7 days, 22:44:15.24
SNMPv2-MIB::sysContact.0 =3D STRING: fabien mauger
SNMPv2-MIB::sysName.0 =3D STRING: mali
SNMPv2-MIB::sysLocation.0 =3D STRING: mali
SNMPv2-MIB::sysORLastChange.0 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 =3D OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 =3D OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 =3D OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 =3D OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 =3D OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 =3D OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 =3D OID: =
SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 =3D OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 =3D OID: =
SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 =3D STRING: The MIB module to describe =
generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 =3D STRING: The MIB module for SNMPv2 =
entities
SNMPv2-MIB::sysORDescr.3 =3D STRING: The MIB module for managing TCP =
implementations
SNMPv2-MIB::sysORDescr.4 =3D STRING: The MIB module for managing IP =
and ICMP implementations
SNMPv2-MIB::sysORDescr.5 =3D STRING: The MIB module for managing UDP =
implementations
SNMPv2-MIB::sysORDescr.6 =3D STRING: View-based Access Control Model =
for SNMP.
SNMPv2-MIB::sysORDescr.7 =3D STRING: The SNMP Management Architecture =
MIB.
SNMPv2-MIB::sysORDescr.8 =3D STRING: The MIB for Message Processing =
and Dispatching.
SNMPv2-MIB::sysORDescr.9 =3D STRING: The management information =
definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 =3D Timeticks: (0) 0:00:00.00



>>>>--=20
>>>>Robert Story; NET-SNMP Junkie
>>>>Support: <http://www.net-snmp.org/> =

<irc://irc.freenode.net/#net-snmp> =20
>>>>Archive: =

<http://sourceforge.net/mailarchive/forum.php?forum=3Dnet-snmp-users>
>>>>
>>>>You are lost in a twisty maze of little standards, all different.=20



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0