High-level API to SNMP v.1 TrapPdu objects

The rfc1157.TrapMixIn mix-in class inherites all properties of the rfc1157.GetRequestMixIn class and implements the following high-level API methods:

apiGenGetEnterprise()

Returns current PDU enterprise OID (as string).

apiGenSetEnterprise(enterpriseOid)

Sets enterpriseOid (as string) to SNMP PDU object.

apiGenGetAgentAddr()

Returns current PDU agent address (as string).

apiGenSetAgentAddr(agentAddr)

Sets agentAddr (as string) to SNMP PDU object.

apiGenGetGenericTrap()

Returns current PDU generic trap (as integer).

apiGenSetGenericTrap(genericTrap)

Sets genericTrap (as integer) to SNMP PDU object.

apiGenGetSpecificTrap()

Returns current PDU specific trap (as integer).

apiGenSetSpecificTrap(specificTrap)

Sets specificTrap (as integer) to SNMP PDU object.

apiGenGetTimeStamp()

Returns current PDU time stamp (as integer).

apiGenSetTimeStamp(timeStamp)

Sets timeStamp (as integer) to SNMP PDU object.


ilya@glas.net