Snmp logging configuration example, Network requirements, Configuration procedure – H3C Technologies H3C SR8800 User Manual

Page 115

Advertising
background image

103

# Configure the contact person and physical location information for the device.

[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306

[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor

# Enable traps, specify the NMS at 1.1.1.2 as a trap destination, and set the username to
managev3user for the traps.

[Sysname] snmp-agent trap enable

[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname

managev3user v3 privacy

2.

Configure the SNMP NMS:

{

Specify the SNMP version for the NMS as v3.

{

Create two SNMP users: managev3user and public.

{

Enable both authentication and privacy functions.

{

Use MD5 for authentication and DES for encryption.

{

Set the authentication key to authkey and the privacy key to prikey.

{

Set the timeout time and maximum number of retries.

For information about configuring the NMS, see the NMS manual.

NOTE:

The SNMP settings 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

Configure the SNMP agent (1.1.1.1/24) in

Figure 39

to log the SNMP operations performed by the NMS.

Figure 39 Network diagram

Configuration procedure

Terminal

Agent

NMS

Console

1.1.1.2/24

1.1.1.1/24

Advertising