[AGENT++] snmpTraps and Programming for an Agent

Nurhuda Ismail nurhuda at ecava.com
Mon Apr 2 12:35:19 CEST 2012


Hi,
I tried to run the snmpTraps.cpp example. The following was the output that
I got.

20120402.18:23:56: 4916: (1)DEBUG  : Initialized request_id to 1041.
20120402.18:23:56: 4916: (6)INFO   : AuthPriv: Added auth protocol (id): (3)
20120402.18:23:56: 4916: (6)INFO   : AuthPriv: Added auth protocol (id): (2)
20120402.18:23:56: 4916: (6)INFO   : AuthPriv: Added priv protocol (id): (2)
20120402.18:23:56: 4916: (3)INFO   : AuthPriv: Added default Auth and Priv
protocols.
SNMP++ Trap to 127.0.0.1/128 SNMPV2 Community=public
20120402.18:23:56: 4916: (1)DEBUG  : ++ SNMP++, Send a Trap
20120402.18:23:56: 4916: (1)DEBUG  : snmp::trap called with CTarget
20120402.18:23:56: 4916: (4)DEBUG  : SNMPMessage: return value for build
message: (0)
20120402.18:23:56: 4916: (1)DEBUG  : ++ SNMP++: sending to 127.0.0.1/162:
20120402.18:23:56: 4916: (3)DEBUG  : 30 67 02 01  01 04 06 70  75 62 6C 69
63 A7 5A 02
20120402.18:23:56: 4916: (3)DEBUG  : 02 04 12 02  01 00 02 01  00 30 4E 30
10 06 08 2B
20120402.18:23:56: 4916: (3)DEBUG  : 06 01 02 01  01 03 00 43  04 58 89 35
BE 30 16 06
20120402.18:23:56: 4916: (3)DEBUG  : 0A 2B 06 01  06 03 01 01  04 01 00 06
08 2B 06 01
20120402.18:23:56: 4916: (3)DEBUG  : 02 01 01 01  00 30 22 06  09 2B 06 01
04 01 0B 02
20120402.18:23:56: 4916: (3)DEBUG  : 10 02 04 15  53 4E 4D 50  2B 2B 20 54
72 61 70 20
20120402.18:23:56: 4916: (3)DEBUG  : 53 65 6E 64  20 54 65 73  74
SNMP++ Trap Send Status = Success

My question is, what do the highlighted numbers mean?
Another thing that I do not really understand is that how does the
agent/manager uses MIB to get information for the traps?
If I want to program for an agent using AGENT++, starting with sending
traps, how/where should I start? And to test if it works, I would need to
program for the manager too, is that so? Sorry, I've been reading materials
related to SNMP but still am not clear about this.

Any help would be much appreciated. Thanks.


More information about the AGENTPP mailing list