SNMPv2 trap-group category migration to SNMPv3
SNMPv2 trap-group category translation to SNMPv3 OIDs. Below is the snippet of the SNMPv2 config for reference:
root@router# show snmp
community jtac;
trap-group TEST {
categories {
authentication;
chassis;
link;
remote-operations;
routing;
startup;
rmon-alarm;
configuration;
}
targets {
1.1.1.1;
The standard Junos OS SNMP OIDs hold good for SNMPv3. However, there is no one-to-one translation of Category to OID.
For instance:
The chassis category is divided into jnxChassisTraps [1.3.6.1.4.1.2636.4.1] and jnxChassisOKTraps [1.3.6.1.4.1.2636.4.2] & is a subtree of parent OID jnxTraps
The link category is divided into linkDown [1.3.6.1.6.3.1.1.5.3] and linkup [1.3.6.1.6.3.1.1.5.4] OIDs, and is a subtree of parent OID snmpTraps & so on….
Check out the below table for Category to OID mapping. Refer to the SNMP Traps Supported by Junos OS for individual trap details:
Category
OID
Trap Inclusions
Section for trap names
authentication
1.3.6.1.6.3.1.1.5
Traps for Use with the SNMP
Startup Notifications
chassis
1.3.6.1.4.1.2636.4.1
1.3.6.1.4.1.2636.4.2
Chassis MIB
Chassis (Alarm Conditions) Notifications
link
Interface group MIB
Link Notifications
remote-operations
1.3.6.1.2.1.80.0
1.3.6.1.2.1.81.0
1.3.6.1.4.1.2636.4.9
Ping
Traceroute
Ping MIB
Remote Operations Notifications
routing
1.3.6.1.2.1.14.16
1.3.6.1.2.1.15.7
Ospf trap MIB
BGP 4 MIB
Routing Notifications
startup
SNMP MIB
rmon-alarm
1.3.6.1.2.1.16.01.3.6.1.4.1.2636.4.3
Falling & Rising
RMON MIB
RMON Alarms
configuration
1.3.6.1.4.1.2636.4.5
Configuration Mgmt MIB
Configuration Notifications
Ways to Implement:
Check out SNMPv3 traps for more info and SNMP MIB Explorer for MIB OIDs hierarchy.