[Fwd: Table query problems]

Kirk Jubeck kjubeck____signalsoftcorp.com
Tue Apr 25 18:39:37 CEST 2000



-------- Original Message --------
Subject: Table query problems
Date: Tue, 25 Apr 2000 10:18:34 -0600
From: Kirk Jubeck <kjubeck____signalsoftcorp.com>
To: dlmanager____fock.de
References: <39026574.A8C01D4A at signalsoftcorp.com>
<3903A114.66F394DA at fock.de>

subscribe agentpp-dl

Using Agent++v3.3e, SNMP++2.8

Frank,
Thanks for the response on the last problem.  In the last note, I
mentioned a problem where the get_next_request method for one table
(statistics table) was getting called when another table (process table)
was queried.  The two tables are in the same MIB but different branches
of the tree.  We didn't think it was much of a problem until we started
testing our subagent running under the Sun Solstice Enterprise Agents
Master Agent.  For some odd reason, when we run as the standalone
subagent for the system and I query the process table, methods are
getting called out of the statistic table but we still get all of the
request for the process table.  However, running under the Solstice
master agent, when I query the process table, the
StatsTable::get_next_request method is getting called.  It returns an
NULL answer and the SNMP manager says that the OID does not exist.  I
don't understand why they behave differently under the different
configuratation, but more basically, why is the StatsTable methods
getting called in the first place.  Is there a know problem with the
search order for tables?  I was looking around in the Mib::find_next()
method thinking there might be a problem but I'd thought I'd ask you
first since you understand the algorithm.

I have attached the output for the two different configurations below.
snmpdx.out is when running under the master agent, ssmon.out is when
running as the standalone subagent.  The snmpdx.out also contains output
from the master agent do see the progression of the SNMP message.




--
Kirk E. Jubeck
Software Engineer
Signal Soft Corp., Boulder
voice: (303)381-3033
email: kjubeck____signalsoftcorp.com
-------------- next part --------------
<< received 44 bytes from england.35869

PACKET:
-------
30 2A 02 01 00 04 06 70 75 62 6C 69 63 A1 1D 02 
02 10 16 02 01 00 02 01 00 30 11 30 0F 06 0B 2B 
06 01 04 01 AA 23 01 04 01 02 05 00 

PDU:
----
version:      0
community:    public
type:         GETNEXT_REQ_MSG (0xa1)
request id:   4118
error status: noError(0)
error index:  0
--------------------------------------------------
name:    1.3.6.1.4.1.5411.1.4.1.2
type:    NULL (0x5)
length:  0
value:    ( )
--------------------------------------------------

## Open session 256

subtree_match() returned 1.3.6.1.4.1.5411 supported by SignalSoft Subagent

        address:        england.35869
        n_variables:    1
        o_flags:        0x0
        i_flags:        0x0
        request 0:
                session:     256
                subtree:     1.3.6.1.4.1.5411
                visited agents:
                        SignalSoft Subagent
                agent:       SignalSoft Subagent (localhost.43551)
                flags:       0x1
                state:       0
                variables:
                        1.3.6.1.4.1.5411.1.4.1.2
                time:        956613293 sec 380914 usec
                expire:      956614193 sec 279288 usec

PDU:
----
version:      0
community:    public
type:         GETNEXT_REQ_MSG (0xa1)
request id:   256
error status: noError(0)
error index:  0
--------------------------------------------------
name:    1.3.6.1.4.1.5411.1.4.1.2
type:    NULL (0x5)
length:  0
value:    ( )
--------------------------------------------------

PACKET:
-------
30 2A 02 01 00 04 06 70 75 62 6C 69 63 A1 1D 02 
02 01 00 02 01 00 02 01 00 30 11 30 0F 06 0B 2B 
06 01 04 01 AA 23 01 04 01 02 05 00 

>> sent 44 bytes to localhost.43551

SESSIONS:
---------
session 256:
        address:        england.35869
        n_variables:    1
        o_flags:        0x1
        i_flags:        0x0
        request 0:
                session:     256
                subtree:     1.3.6.1.4.1.5411
                visited agents:
                        SignalSoft Subagent
                agent:       SignalSoft Subagent (localhost.43551)
                flags:       0x1
                state:       1
                variables:
                        1.3.6.1.4.1.5411.1.4.1.2
                time:        956613306 sec 255583 usec
                expire:      956613308 sec 255583 usec
NUMBER OF SESSIONS: 1

20000424.15:55:06: 11799: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (256), (1), (127.0.0.1/43553), (SNMPv1), (public).
20000424.15:55:06: 11799: (2)EVENT  : Agent: starting thread execution.
20000424.15:55:06: 11799: (2)EVENT  : Mib: process request: getnext request, oid: (0), (1.3.6.1.4.1.5411.1.4.1.2).
20000424.15:55:06: 11799: (3)EVENT  : Mib: process subrequest: getnext request, oid: (0), (1.3.6.1.4.1.5411.1.4.1.2).
1>StatsTable::get_next_request
1>reqOid : 2.1.1.1
1>Querying stats day 0, fa 6, regnum 2, groupID 1
20000424.15:55:06: 11799: (3)EVENT  : RequestList: finished subrequest:: (0), (2.1.1.1), ().
20000424.15:55:06: 11799: (2)EVENT  : RequestList: answer request: (0).
20000424.15:55:06: 11799: (4)EVENT  : RequestList: request answered: (256), (0), (127.0.0.1/43553), (2), (0).
20000424.15:55:06: 11799: (2)EVENT  : Agent: finished thread execution.
<< received 40 bytes from localhost.43551

PACKET:
-------
30 82 00 24 02 01 00 04 06 70 75 62 6C 69 63 A2 
17 02 02 01 00 02 01 02 02 01 01 30 0B 30 82 00 
07 06 03 51 01 01 05 00 

PDU:
----
version:      0
community:    public
type:         GET_RSP_MSG (0xa2)
request id:   256
error status: noSuchName(2)
error index:  1
--------------------------------------------------
name:    2.1.1.1
type:    NULL (0x5)
length:  0
value:    ( )
--------------------------------------------------

!! session 256 - request 0: the Get-Next returned No Such Name

PDU:
----
version:      0
community:    public
type:         GET_RSP_MSG (0xa2)
request id:   4118
error status: noSuchName(2)
error index:  1
--------------------------------------------------
name:    1.3.6.1.4.1.5411.1.4.1.2
type:    NULL (0x5)
length:  0
value:    ( )
--------------------------------------------------

PACKET:
-------
30 2A 02 01 00 04 06 70 75 62 6C 69 63 A2 1D 02 
02 10 16 02 01 02 02 01 01 30 11 30 0F 06 0B 2B 
06 01 04 01 AA 23 01 04 01 02 05 00 

>> sent 44 bytes to england.35869

## Close session 256

SESSIONS:
---------
NUMBER OF SESSIONS: 0

-------------- next part --------------
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4119), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (0), (1.3.6.1.4.1.5411.1.4.1.2).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (0), (1.3.6.1.4.1.5411.1.4.1.2).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.1.1.1), (0).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (0).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4119), (0), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4120), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (1), (1.3.6.1.4.1.5411.1.4.1.2.1.1.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (1), (1.3.6.1.4.1.5411.1.4.1.2.1.1.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.2.1.1), (testproc1).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (1).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4120), (1), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4121), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (2), (1.3.6.1.4.1.5411.1.4.1.2.1.2.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (2), (1.3.6.1.4.1.5411.1.4.1.2.1.2.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.3.1.1), (0:00:08.15).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (2).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4121), (2), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4122), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (3), (1.3.6.1.4.1.5411.1.4.1.2.1.3.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (3), (1.3.6.1.4.1.5411.1.4.1.2.1.3.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.4.1.1), (1).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (3).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4122), (3), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4123), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (4), (1.3.6.1.4.1.5411.1.4.1.2.1.4.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (4), (1.3.6.1.4.1.5411.1.4.1.2.1.4.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.5.1.1), (11806).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (4).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4123), (4), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4124), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (5), (1.3.6.1.4.1.5411.1.4.1.2.1.5.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (5), (1.3.6.1.4.1.5411.1.4.1.2.1.5.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.6.1.1), (0).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (5).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4124), (5), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4125), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (6), (1.3.6.1.4.1.5411.1.4.1.2.1.6.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (6), (1.3.6.1.4.1.5411.1.4.1.2.1.6.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.7.1.1), (Not Set).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (6).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4125), (6), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4126), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (7), (1.3.6.1.4.1.5411.1.4.1.2.1.7.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (7), (1.3.6.1.4.1.5411.1.4.1.2.1.7.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.8.1.1), (/home/kjubeck/dev/WAF/ssmon/Lib/uscp/sunos5.7_dbg/testproc1).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (7).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4126), (7), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4127), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (8), (1.3.6.1.4.1.5411.1.4.1.2.1.8.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (8), (1.3.6.1.4.1.5411.1.4.1.2.1.8.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.9.1.1), (Not Set).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (8).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4127), (8), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4128), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (9), (1.3.6.1.4.1.5411.1.4.1.2.1.9.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (9), (1.3.6.1.4.1.5411.1.4.1.2.1.9.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.10.1.1), (Not Set).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (9).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4128), (9), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4129), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (10), (1.3.6.1.4.1.5411.1.4.1.2.1.10.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (10), (1.3.6.1.4.1.5411.1.4.1.2.1.10.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.11.1.1), (Not Set).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (10).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4129), (10), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4130), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (11), (1.3.6.1.4.1.5411.1.4.1.2.1.11.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (11), (1.3.6.1.4.1.5411.1.4.1.2.1.11.1.1).
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (1.3.6.1.4.1.5411.1.4.1.2.1.12.1.1), (Not Set).
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (11).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4130), (11), (63.67.206.41/35942), (0), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.
20000424.15:58:09: 11805: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com): (4131), (1), (63.67.206.41/35942), (SNMPv1), (public).
20000424.15:58:09: 11805: (2)EVENT  : Agent: starting thread execution.
20000424.15:58:09: 11805: (2)EVENT  : Mib: process request: getnext request, oid: (12), (1.3.6.1.4.1.5411.1.4.1.2.1.12.1.1).
20000424.15:58:09: 11805: (3)EVENT  : Mib: process subrequest: getnext request, oid: (12), (1.3.6.1.4.1.5411.1.4.1.2.1.12.1.1).
1>StatsTable::get_next_request
1>reqOid : 2.1.1.1
1>Querying stats day 0, fa 6, regnum 2, groupID 1
20000424.15:58:09: 11805: (3)EVENT  : RequestList: finished subrequest:: (0), (2.1.1.1), ().
20000424.15:58:09: 11805: (2)EVENT  : RequestList: answer request: (12).
20000424.15:58:09: 11805: (4)EVENT  : RequestList: request answered: (4131), (12), (63.67.206.41/35942), (2), (0).
20000424.15:58:09: 11805: (2)EVENT  : Agent: finished thread execution.




More information about the AGENTPP mailing list