Re: [pysnmp-users] How do I get the SNMP version from a incoming trap
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2016-05-19 06:59:39
|
In general, SNMP version is carried inside SNMP message envelope. You could also distinguish v1 from v2c&v3 by TRAP PDU type. With high-level pysnmp API message and PDU details are hidden but SNMP version still could be determined from configuration entry being in use. What pysnmp API you use? > On 19 May 2016, at 08:49, Johan Geldenhuys <joh...@gm...> wrote: > > Hi all, > > I used the examples and can get SNMPv2 and SNMPv3 traps in the same receiver. > I would like to print the SNMP version from the trap, but don't know how to get it. > > pysnmp.proto.api.verdec does this, but it needs the whole message and I don't know how to send it the whole message. > > Thank you, > J |