146
Examples
# Enable SNMP notification logging.
<Sysname> system-view
[Sysname] snmp-agent trap log
snmp-agent trap periodical-interval
Use
snmp-agent trap periodical-interval
to configure the interval for sending periodical
notifications.
Syntax
snmp-agent trap periodical-interval interval-time
Default
Periodical notifications are sent every 60 seconds.
Views
System view
Predefined user roles
network-admin
network-operator
Parameters
interval-time
: Specifies the periodical notification sending interval. The value of this argument takes 0
or it is in the range of 10 to 3600 seconds. If you specify this argument as 0, sending periodical
notifications is disabled.
Usage guidelines
When you specify this interval, the device sends periodical notifications at the specified interval to
notify the NMS that SNMP is operating correctly on the device.
Examples
# Set the interval for sending periodical notifications to 10 seconds.
<Sysname> system-view
[Sysname] snmp-agent trap periodical-interval 10
# Disable sending periodical notifications.
<Sysname> system-view
[sysname] snmp-agent trap periodical-interval 0
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.