Weird SNMP Trap

Kevin J. Schmidt kschmidt____mindspring.com
Wed Mar 5 23:53:00 CET 2003


Yes, that's right. I just wanted to make sure that the vendor wasn't
doing something strange. 

So is my code to get the trap id correct? If so, then should I contact
the vendor and ask what's going on or is setting the id optional?

Thanks,

On Wed, 2003-03-05 at 18:02, Frank Fock wrote:
> 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,
> 
> 
-- 
Kevin J. Schmidt <kschmidt at mindspring.com>




More information about the AGENTPP mailing list