Weird SNMP Trap

Frank Fock Frank.Fock____t-online.de
Thu Mar 6 00:02:50 CET 2003


Hi Kevin,

SNMPv2c and SNMPv3 traps do not have an enterprise
field, that's why it is empty. "id" will hold the
trap's notification OID.

Best regards,
Frank

Kevin J. Schmidt wrote:
> I have a device that does not seem to be sending an enterprise id in its
> V2 trap. For example, the following code prints nothing:
> 
> //in the callback
> Oid enterprise, id;
> ...
> pdu.get_notify_id(id); // Get the specific Trap ID
> pdu.get_notify_enterprise(enterprise); // Get the Enterprise 
> cout << enterprise.get_printable() << endl;
> cout << id.get_printable() << endl;
> ...
> 
> I assume this is a foo-bar on the vendor's part, right? Are there any
> other methods I should be calling on the pdu object to get this
> information?
> 
> I'm using SNMP++ version 3.2.2 on Linux.
> 
> Thanks,







More information about the AGENTPP mailing list