195
Related commands
snmp-agent
target-host
snmp-agent
trap
enable
snmp-agent
trap
queue-size
snmp-agent trap log
Use
snmp-agent
trap log
to enable SNMP notification logging.
Use
undo
snmp-agent
trap log
to disable SNMP notification logging.
Syntax
snmp-agent
trap log
undo
snmp-agent
trap log
Default
SNMP notification logging is disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
Use SNMP notification logging to record SNMP notifications sent by the SNMP agent for notification
tracking. The SNMP agent sends logs to the information center. You can configure the information
center to output the logs to a destination as needed.
Examples
# Enable SNMP notification logging.
<Sysname> system-view
[Sysname] snmp-agent trap log
snmp-agent trap queue-size
Use
snmp-agent trap queue-size
to set the SNMP notification queue size.
Use
undo snmp-agent trap queue-size
to restore the default queue size.
Syntax
snmp-agent
trap
queue-size
size
undo
snmp-agent
trap
queue-size
Default
The SNMP notification queue can store up to 100 notifications.
Views
System view
Predefined user roles
network-admin