Re: agentx comms problem

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 25 March 2010 08:11, Thomas Andrews <[email protected]> wrote:
>> Problem: when I do this:
>>
>>   snmpget -v1 -c public localhost nstAgentSubagentObject.0
>>
>> I get:
>>
>>   Error in packet
>>   Reason: (noSuchName) There is no such variable name in this MIB.
>>   Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0

Two questions:
  a)  What do the access control settings look like for the master agent?
       Can you see other parts of the OID tree?

  b)  What does the code for registering this module in the subagent look like?


Comparing the packet dumps, it feels as if the AgentX registration

> 0000: 01 12 01 00  0D 00 00 00  00 00 00 00  57 E4 DE 21    ............WäÞ!
> 0016: 30 00 00 00  60 6C 02 00  00 00 00 00  05 00 00 00    0...`l..........
> 0032: 08 04 00 00  01 00 00 00  88 1F 00 00  02 00 00 00    ................
> 0048: 04 00 00 00  01 00 00 00  01 00 00 00  02 00 00 00    ................
> 0064: 00 00 00 00                                           ....

is registering one OID  (1.3.6.1.4.1.34847.2.4.1.1.2.0)

while the SNMP request:

> 0000: 30 2C 02 01  00 04 06 70  75 62 6C 69  63 A0 1F 02    0,.....public ..
> 0016: 02 34 89 02  01 00 02 01  00 30 13 30  11 06 0D 2B    .4.......0.0...+
> 0032: 06 01 04 01  BF 08 02 04  01 01 02 00  05 00          ....¿.........

is asking for a different OID  (1.3.6.1.4.1.8072.2.4.1.1.2.0)


Now I could well have got that decoding wrong - it's probably worth
running the master agent using -Ddump, and check the contents of
the agentx-Register-PDU.   See exactly what the master agent thinks
is being registered.

But if that doesn't match the OID being asked for, then of course the
master agent won't ever call your subagent.

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.