The following sections provide various examples of the SNMP Notification Log feature.
configure snmp notification-log global-entry-limit 5000
configure snmp notification-log global-age-out none
configure snmp add notification-log default
configure snmpv3 add filter "all" subtree 1 type included
configure snmp notification-log "default" filter-profile-name "all"
show snmp notification-log "default"
show snmp notification-log "default" entry 1
The following example illustrates how to log all notifications that are visible to the SNMP user “monitor” when using the security mode ‘USM‘, and the security level ‘privacy‘.
configure snmp add notification-log "monitor-log" user "monitor" sec-model usm sec-level priv
configure snmpv3 add filter "all" subtree 1 type included
configure snmp notification-log "monitor-log" filter-profile-name "all"
show snmp notification-log "monitor-log"
show snmp notification-log "monitor-log" entry 1
The following example illustrates the configuration for when an NMS wants to log all link status change notifications. The NMS queries the log every hour, and wants to age out the log entries every two hours. Additionally, to ensure that link status events are not replaced by other events, the NMS wants to reserve 1000 entries for this log.
snmpNotifyFilterMask.11."link-status".1.3.6.1.6.3.1.1.5.3 = ''H
snmpNotifyFilterType.11."link-status".1.3.6.1.6.3.1.1.5.3 = include
snmpNotifyFilterStorageType.11."link-status".1.3.6.1.6.3.1.1.5.3 = nonVolatile
snmpNotifyFilterRowStatus.11."link-status".1.3.6.1.6.3.1.1.5.3 = createAndGo
snmpNotifyFilterMask.11."link-status".1.3.6.1.6.3.1.1.5.4 = ''H
snmpNotifyFilterType.11."link-status".1.3.6.1.6.3.1.1.5.4 = include
snmpNotifyFilterStorageType.11."link-status".1.3.6.1.6.3.1.1.5.4 = nonVolatile
snmpNotifyFilterRowStatus.11."link-status".1.3.6.1.6.3.1.1.5.4 = createAndGo
nlmConfigLogFilterName.5."links" = "link-status"
nlmConfigLogEntryLimit.5."links" = 1000
nlmConfigLogAdminStatus.5."links" = enabled
nlmConfigLogStorageType.5."links" = nonVolatile
nlmConfigLogEntryStatus.5."links" = createAndGo
nlmConfigGlobalAgeOut.0 = 120