beautypg.com

H3C Technologies H3C SecBlade LB Cards User Manual

Page 72

background image

63

# Set the username to managev3user, authentication algorithm to MD5, authentication key to

authkey, encryption algorithm to DES56, and privacy key to prikey.

[Agent] snmp-agent usm-user v3 managev3user managev3group authentication-mode md5

authkey privacy-mode des56 prikey

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

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

[Agent] 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.

[Agent] snmp-agent trap enable

[Agent] 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:
# Try to get the count of sent traps from the agent. The get attempt succeeds.

Send request to 1.1.1.1/161 ...

Protocol version: SNMPv3

Operation: Get

Request binding:

1: 1.3.6.1.2.1.11.29.0

Response binding:

1: Oid=snmpOutTraps.0 Syntax=CNTR32 Value=18

Get finished

# Try to get the device name from the agent. The get attempt fails because the NMS has no access
right to the node.

Send request to 1.1.1.1/161 ...

Protocol version: SNMPv3

Operation: Get

Request binding:

1: 1.3.6.1.2.1.1.5.0

Response binding:

1: Oid=sysName.0 Syntax=noSuchObject Value=NULL

Get finished

# Execute the shutdown or undo shutdown command on an idle interface on the agent. You can

see the interface state change traps on the NMS:

This manual is related to the following products: