[AGENT++] snmpWalk stuck on sysDescr

Salman Qamar salman at glimmerglass.com
Thu Jun 5 20:54:27 CEST 2008


I'm using the latest downloads for agent++, snmp++ and agentpro on linux
and testing the agentpro generated code as is, using NO_SNMPv3 and
multi-threaded feature for my agent. 

snmpWalk from 1.3.6.1.2.1.1 ( system ) gets stuck on sysDescr and goes
on and on.
The same is true if I start from 1.3.6.1.2.1.1.1.0 ( sysDescr ) itself.

snmpWalk works fine, if I start from sysObjectID (1.3.6.1.2.1.1.2.0 )
and completes and stops.

The problem seems to rest with agentpro generated code on the agent
side.
I am new to this library and still learning its control flow.

On a side note, the other problem with sysDescr is that a GET on
sysDescr returns but with a NULL value.
The agentpro generated agent.cpp file seems to actually initializes this
value during init with "AGENT++v......" string but it's not being
reported.

% ./snmpGet 192.168.1.16 1.3.6.1.2.1.1.1.0 -P4700
SNMP++ Get to 192.168.1.16 SNMPV1 Retries=1 Timeout=1000ms
Community=public
20080605.11:51:33: 20134: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
Oid = 1.3.6.1.2.1.1.1.0
Value =

Thanks for your help.
Regards
Sal

Please advise what to fix here. I am using generated agentpro code with
MY-MIB + SNMPv2-MIB, SNMPv2-TC, SNMPv2-SMI, and SNMPv2-CONF.


% ./snmpWalk 192.168.1.16 1.3.6.1.2.1.1 -P4700
SNMP++ snmpWalk to 192.168.1.16 SNMPV1 Retries=1 Timeout=1000ms
Community=public
20080605.11:02:54: 20103: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.1.0 = 
20080605.11:02:54: 20103: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.1.0 = 
20080605.11:02:54: 20103: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.1.0 = 
20080605.11:02:54: 20103: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.1.0 = 
20080605.11:02:54: 20103: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.1.0 = 
20080605.11:02:54: 20103: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.1.0 = 
20080605.11:02:54: 20103: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.1.0 =
...

snmpWalk works fine, if I start from sysObjectID (1.3.6.1.2.1.1.2.0 )
and completes and stops.

{qamar at pleiades:151} ./snmpWalk 192.168.1.16 1.3.6.1.2.1.1.2.0 -P4700
SNMP++ snmpWalk to 192.168.1.16 SNMPV1 Retries=1 Timeout=1000ms
Community=public
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.3.0 = 0:00:00.00
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.4.0 = 
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.5.0 = 
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.6.0 = 
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.7.0 = 0
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.1.8.0 = 0:00:00.00
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.11.1.0 = 0
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.11.2.0 = 0
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.11.3.0 = 0
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.11.4.0 = 0
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.11.5.0 = 0
20080605.11:21:25: 20111: (4)DEBUG  : SNMPMessage: return value for
build message: (0)
1.3.6.1.2.1.11.6.0 = 0
....
..... // removed some output here




More information about the AGENTPP mailing list