Hello,
I tried some ways to avoid the `select' error mentioned in the last letter. I merely removed
the default mibs defined in net-snmp-config.h:
#define DEFAULT_MIBS ""
And this worked. But I still cannot get response from the subagent(It says: "No response from ..."). Then I turned on the debug options with snmpd:
#./snmpd -f -Le -d &
#./myagent &
(assuming these agent/subagnet run on 192.168.50.16)and formed a request using snmpgetnext:
#snmpgetnext -v 1 -c public 192.168.50.16 MYAGENT-MIB::myagent
Here comes the logged messages:
(just ignore the oid `iso.3.6.1.4.1.30.1.1.6' I defined here.)
... ...
Encryption support not enabled.
Turning on AgentX master support.
NET-SNMP version 5.1.2
... ...
Received 44 bytes from 192.168.50.101
0000: 30 2A 02 01 00 04 06 70 75 62 6C 69 63 A1 1D 02 0*.....public...
0016: 04 0B 0B 7B 12 02 01 00 02 01 00 30 0F 30 0D 06 ...{.......0.0..
0032: 09 2B 06 01 04 01 1E 01 01 06 05 00 .+..........
Received SNMP packet(s) from 192.168.50.101 GETNEXT message -- iso.3.6.1.4.1.30.1.1.6
Sending 76 bytes to Local IPC: abstract
0000: 01 06 00 00 06 00 00 00 08 00 00 00 09 00 00 00 ................
0016: 38 00 00 00 06 04 01 00 01 00 00 00 1E 00 00 00 8...............
0032: 01 00 00 00 01 00 00 00 06 00 00 00 01 00 00 00 ................
0048: 06 04 00 00 01 00 00 00 1E 00 00 00 01 00 00 00 ................
0064: 01 00 00 00 06 00 00 00 02 00 00 00 ............
Resending 28 bytes to Local IPC: abstract
0000: 01 06 00 00 06 00 00 00 06 00 00 00 07 00 00 00 ................
0016: 08 00 00 00 00 00 00 00 00 00 00 00 ............
Resending 66624 bytes to Local IPC: abstract 0000: 01 06 00 00 06 00 00 00 04 00 00 00 05 00 00 00 ................ 0016: 2C 04 01 00 08 00 00 00 00 30 E7 31 03 88 00 30 ,........0.1...0 0032: 4E 69 6F 73 F0 31 30 1C 00 98 F0 3D 00 98 11 34 Nios.10....=...4 0048: 00 98 11 6C 30 12 E3 7E 01 00 00 00 51 12 E6 7E ...l0..~....Q..~ 0064: F9 87 00 30 01 98 D1 34 00 98 11 6C D1 7F 00 30 ...0...4...l...0 0080: 02 98 21 7F 21 24 0F 98 01 3A 30 9C 00 34 20 40 ..!.!$...:0..4 @ 0096: 00 7F 00 30 00 30 00 30 00 30 00 30 45 98 01 34 ...0.0.0.0.0E..4 ... ... ... ...
I am amazing. What hell is the agentx doing here?
Please note that all applications here are linked with static libraries created by
nios-elf-ar.
Any suggestions?
Cheers.
Yi
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
