The lifetime of every trap message is set.
The lifetime of every trap message depends on the number of generated trap messages. If the
router frequently generates trap messages, a longer lifetime can be set for every trap message to
prevent trap messages from being lost.
----End
1.3.6 Checking the Configuration
After SNMPv2c functions are configured, you can view the SNMPv2c configurations.
Prerequisites
The configurations of basic SNMPv2c functions are complete.
Procedure
l
Run the
display snmp-agent community
{
read
|
write
} command to check the
configured community name.
l
Run the
display snmp-agent sys-info
version
command to check the enabled SNMP
version.
l
Run the
display acl
acl-number
command to check the rules in the specified ACL.
l
Run the
display snmp-agent mib-view
command to check the MIB view.
l
Run the
display snmp-agent sys-info
contact
command to check the equipment
administrator's contact information.
l
Run the
display snmp-agent sys-info
location
command to check the location of the
device.
l
Run the
display current-configuration
| include
trap
command to check trap
configurations.
l
Run the
display snmp-agent target-host
command to check information about the target
host.
l
Run the
display snmp-agent extend error-code status
command to check whether the
SNMP extended error code feature is enabled.
----End
Example
When the configuration is complete, run the
display snmp-agent community
command. You
can view the configured community name.
<Huawei>
display snmp-agent community read
Community name:
huawei
Storage type: nonVolatile
View name: ViewDefault
Acl: 2001
Total number is 1
Run the
display snmp-agent sys-info version
command. You can view the SNMP version
running on the agent.
<Huawei>
display snmp-agent sys-info version
SNMP version running in the system:
SNMPv2c
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
1 SNMP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
20