Huawei NetEngine5000E Configuration Manual page 74

Core router
Table of Contents

Advertisement

HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
Step 3 Run:
snmp-agent sys-info version v2c
The SNMP version is set.
By default, SNMPv3 is enabled.
After SNMPv2c is enabled on the managed device, the device supports both SNMPv2c and
SNMPv3. This means that the device can be monitored and managed by NM stations running
SNMPv2c and SNMPv3.
Step 4 Run:
snmp-agent community { read | write } { community-name | cipher community-name1 }
[ acl acl-number | mib-view view-name ]
The community name is set.
After the community name is set, if no MIB view is configured, the NM station that uses the
community name has rights to access objects in the Viewdefault view (1.3.6.1).
l read: NM station administrator configures the read parameter to provide read access to the
l write: NM station administrator configures the write parameter to provide read and write
Step 5 Choose one of the following commands as needed to configure the destination IP address for
the alarms and error codes sent from the device.
l If the network is an IPv4 network, configure the device to send either traps or informs to the
Issue 01 (2011-10-15)
low level administrator for a specified view.
access to the low level administrator for a specified view.
NM station.
NOTE
The differences between traps and informs are as follows:
l The traps sent by the managed device do not need to be acknowledged by the NM station.
l The informs sent by the managed device need to be acknowledged by the NM station. If no
acknowledgement message from the NM station is received within a specified time period, the
managed device resends the inform until the number of retransmissions reaches the maximum.
When the managed device sends an inform, it records the inform in the log. If the NM station and
link between the NM station and managed device recovers from a fault, the NM station can still
learn the inform sent during the fault occurrence and rectification.
In this regard, informs are more reliable than traps, but the device may need to buffer a lot of informs
because of the inform retransmission mechanism and this may consume many memory resources.
If the network is stable, using traps is recommended. If the network is unstable and the device's memory
capacity is sufficient, using informs is recommended.
– To configure a destination IP address for the traps and error codes sent from the device,
run:
snmp-agent target-host trap address udp-domain ip-address [ udp-port port-
number ] [ public-net | vpn-instance vpn-instance-name ] params securityname
security-name [
v2c ] [ private-netmanager ]
– To configure a destination IP address for the informs and error codes sent from the device,
run:
snmp-agent target-host inform address udp-domain ip-address [ udp-port port-
number ] [ vpn-instance vpn-instance-name ] params securityname security-
name [ v2c ]
The descriptions of the command parameters are as follows:
– udp-port: The default destination UDP port number is 162. In some special cases (for
example, port mirroring is configured to prevent a well-known port from being attacked),
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
*
3 SNMP Configuration
66

Advertisement

Table of Contents
loading

Table of Contents