R3166-R3206-HP High-End Firewalls System Management and Maintenance Configuration Guide-6PW101
126
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable sending of traps to the NMS with an IP address of 1.1.1.2/24, using public as the community
name.
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 udp-port 5000 params
securityname public v3
2. Configuring the SNMP NMS
SNMPv3 uses an authentication and privacy security model. On the NMS, the user needs to specify the
username and security level, and based on that level, configure the authentication mode, authentication
password, privacy mode, and privacy password. In addition, the timeout time and number of retries
should also be configured. The user can inquire and configure the device through the NMS.
NOTE:
The configurations on the agent and the NMS must match.
3. Verify the configuration
• After the above configuration, an SNMP connection is established between the NMS and the agent.
The NMS can get and configure the values of some parameters on the agent through MIB nodes.
• Execute the shutdown or undo shutdown command to an idle interface on the agent, and the NMS
receives the corresponding trap.
SNMP logging configuration example
Network requirements
• As shown in Figure 55, the NMS and the agent are connected through an Ethernet.
• The IP address of the NMS is 1.1.1.2/24
• The IP address of the agent is 1.1.1.1/24
• Configure SNMP logging on the agent to record the operations performed by the NMS to the agent
Figure 55 Network diagram for SNMP logging
Configuration procedure
NOTE:
For more information about NMS and agent, see “SNMPv1/SNMPv2c configuration example“ and
“SNMPv3 configuration example.”