pysnmp icon indicating copy to clipboard operation
pysnmp copied to clipboard

Question: send crafted TRAP PDU in SNMPv1

Open jeffd-dev opened this issue 7 years ago • 1 comments

Hi,

Example available in documentation is for v2.

My problem is I didn't find example to send Trap with EnterpriseOID so I do: pdu.setComponentByName('enterprise', mytrap.getEnterpriseOid())

As read in #78 : "when you are sending v1 TRAPs you still need to pass v2 TRAPs to pysnmp"

So I don't know if I should:

  • do a v2TrapPDU, convert it to v1, setEnterpriseOid and use sendPdu()
  • do a v1TrapPDU, setEnterpriseOid and convert it tov2 (and use sendPdu())

Or there is a way to set EnterpriseOid using sendNotification? Thank you

jeffd-dev avatar Jan 29 '18 14:01 jeffd-dev