Administer > Administer SNMP Traps > Configuring to Preserve a Previously Supported Varbind Order

Configuring NNMi to Preserve a Previously Supported Varbind Order

All SNMPv2 traps contain the sysUptime.0 and snmpTrapOID.0 OIDs as the first and seconds varbinds.

Note If an SNMPv2 trap definition contains either sysUptime.0 or snmpOID.0 as trap parameters, they might appear in NNMi as additional varbinds in positions other than first and second in the varbind list.

Prior to NNMi 9.21 (patch 1), NNMiremoved all instances of the sysUpTime.0 and snmpTrapOID.0 OIDs from the varbind list.

Starting with NNMi 9.21 (patch 1), NNMi retains these OIDs when they are part of the trap definition and they appear in positions other than first and second in the varbind list of the received trap. This change alters the varbind order for those traps that have either sysUpTime.0 or snmpTrapOID.0 OIDs as trap parameters.

In the following example, the first bold varbind contains the value for snmpTrapOID.0 and the second bold varbind contains the value for sysUpTime.0. As shown in this example, these varbinds appear as additional varbinds in positions other than first and second in the varbind list:

//0: SNMP MESSAGE (0x30): 115 bytes

//2: INTEGER VERSION (0x2) 1 bytes: 1 (SNMPv2C)

//5: OCTET-STR COMMUNITY (0x4) 6 bytes: "public"

//13: V2-TRAP-PDU (0xa7): 102 bytes

//15: INTEGER REQUEST-ID (0x2) 2 bytes: 18079

//19: INTEGER ERROR-STATUS (0x2) 1 bytes: noError(0)

//22: INTEGER ERROR-INDEX (0x2) 1 bytes: 0

//25: SEQUENCE VARBIND-LIST (0x30): 90 bytes

//27: SEQUENCE VARBIND (0x30): 13 bytes

//29: OBJ-ID (0x6) 8 bytes: .1.3.6.1.2.1.1.3.0

//39: TIMETICKS (0x43) 1 bytes: 9

//42: SEQUENCE VARBIND (0x30): 32 bytes

//44: OBJ-ID (0x6) 10 bytes: .1.3.6.1.6.3.1.1.4.1.0

//56: OBJ-ID (0x6) 18 bytes: .1.3.6.1.6.3.1.1.5.3.1.3.6.1.4.1.9.1.14

//76: SEQUENCE VARBIND (0x30): 14 bytes

//78: OBJ-ID (0x6) 9 bytes: .1.3.6.1.2.1.2.2.1.1

//89: INTEGER (0x2) 1 bytes: 92

//92: SEQUENCE VARBIND (0x30): 23 bytes

//94: OBJ-ID (0x6) 10 bytes: .1.3.6.1.6.3.1.1.4.3.0

//106: OBJ-ID (0x6) 9 bytes: .1.3.6.1.4.1.11.2.3.14

Tip Set the com.hp.nnm.events.preserveOldVarbindListOrder property to true only if you want NNMi to remove all instances of the sysUpTime.0 and snmpTrapOID.0 OIDs from the varbind list.

To retain the original NNMi behavior, do the following:

  1. Edit the following file:

    Windows: %NNM_PROPS%\nms-jboss.properties

    Linux: $NNM_PROPS/nms-jboss.properties

  2. Search for the text block containing the following line:

    #!com.hp.nnm.events.preserveOldvarbindListOrder=false
  3. Uncomment and edit the following line to read as follows:

    com.hp.nnm.events.preserveOldvarbindListOrder=true
  4. Save your changes.
  5. Restart the NNMi management server:

    Run the ovstop command on the NNMi management server

    Run the ovstart command on the NNMi management server.