pysnmp
pysnmp copied to clipboard
Question: send crafted TRAP PDU in SNMPv1
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