Skip to content

SNMPv2c Trap/Inform uses sysObjectID.0 instead of snmpTrapOID.0 #64

@sebera

Description

@sebera

SNMPv2c Trap/Inform packets generated by SNMPTrap use the wrong OID for the second mandatory varbind.

Expected varbinds:

  1. .1.3.6.1.2.1.1.3.0 sysUpTime.0
  2. .1.3.6.1.6.3.1.1.4.1.0 snmpTrapOID.0

Actual varbinds:

  1. .1.3.6.1.2.1.1.3.0 sysUpTime.0
  2. .1.3.6.1.2.1.1.2.0 sysObjectID.0

Net-SNMP reports:
Cannot find TrapOID in TRAP2 PDU

Fix:
Initialize internal snmpTrapOID with:
.1.3.6.1.6.3.1.1.4.1.0

instead of:
.1.3.6.1.2.1.1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions