SNMP uses the User Datagram Protocol (UDP) to send traps. Because UDP does not guarantee delivery or provide flow control, some traps can be lost in transit to a destination address. The Notification Log MIB provides flow control support for UDP datagrams.
You should set up your management applications to periodically request the recorded traps to ensure that the host is up and the management applications have received all the generated traps.
To identify the location of traps logged in the notification log, the system assigns a consecutive index number to each SNMP trap message transmitted from the E-series router. Clients can use the index to detect missing traps.
To configure trap notification logs:
- host1(config)snmp-server notificationlog log
10.10.4.4 adminStatus includeVarbinds
- host1(config)#snmp-server notificationlog
ageout 5
- host1(config)#snmp-server notificationlog
entrylimit 210
- host1(config)#log severity info snmpTrap
![]() |
Note: Enabling the snmpTrap log provides the same information in the router log as appears in the snmp-server notification log. However, long trap strings may appear truncated. |
log severity
![]() |
Note: For more information about this command, see the JUNOSe System Event Logging Reference Guide. |
- host1(config)#log severity info snmptrap
snmp-server notificationLog ageOut
- host1(config)#snmp-server notificationLog
ageout 5
snmp-server notificationLog entryLimit
- host1(config)#snmp-server notificationLog
entrylimit 210
snmp-server notificationLog log
- host1(config)snmp-server notificationLog log
10.10.4.4 adminStatus includeVarbinds