agentx comms problem
Thomas Andrews <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am trying to get a working agentx module by following the tutorial at
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent
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
For debugging, I am starting snmpd so:
snmpd -Le -f -Dagentx
When I run up the subagent 'mysubagent', the output from snmpd looks so:
8<----------8<----------8<----------8<----------8<----------8<----------
agentx/master: unexpected callback op 4
agentx/master: handle pdu (req=0x1a8d7bd2,trans=0x0,sess=0x0)
agentx/master: open 0x814ced8
agentx/master: opened 0x815da00 = 5 with flags = a0
agentx/master: send response, stat 0 (req=0x1a8d7bd2,trans=0x0,sess=0x0)
agentx_build: packet built okay
agentx/master: handle pdu (req=0x1a8d7bd3,trans=0x0,sess=0x5)
agentx/master: in register_agentx_list
agentx/master: registered ok
agentx/master: send response, stat 0 (req=0x1a8d7bd3,trans=0x0,sess=0x5)
agentx_build: packet built okay
8<----------8<----------8<----------8<----------8<----------8<----------
It looks to me like mysubagent is registering okay, but what's that error
'unexpected callback op 4' ? Is that perhaps the problem?
When I run the command snmpget -v1 -c public localhost nstAgentSubagentObject.0
the snmpd daemon only prints one line:
Connection from UDP: [127.0.0.1]:58692
In fact if I kill mysubagent, the error I get from the 'snmpget' is no
different, which makes me think that snmpd and mysubagent are not talking
happily, but /var/agentx/master exists, and when mysubagent is running
snmpd appears to get a 'ping' packet every 15 seconds or so.
Here are my config files:
~/.snmp/snmp.conf contains:
mibs +NET-SNMP-EXAMPLES-MIB
mibs +NET-SNMP-MIB
mibs +NET-SNMP-TUTORIAL-MIB
~/.snmp/mibs/ contains these files:
NET-SNMP-EXAMPLES-MIB
NET-SNMP-MIB
NET-SNMP-TUTORIAL-MIB
/etc/snmp/snmpd.conf looks like so:
com2sec paranoid default public
com2sec readwrite 10.0.0.0/8 private
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
master agentx
Many thanks,
Thomas
------------------------------------------------------------------------------
Download Intel® 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