To do…

Use the command…

Remarks

snmp-agent usm-user v3 user-namegroup-name[ [ cipher ]

Add a user to the SNMP group authentication-mode { md5 sha } auth-password[ privacy-mode

{3des aes128 des56 }

priv-password ] ] [ acl acl-number ]

Required

If the cipher keyword is specified, both auth-passwordand priv-passwordare cipher text passwords.

Follow these steps to configure SNMPv1 and SNMPv2c settings:

To do…

 

Use the command…

Remarks

Enter system view

 

system-view

 

 

 

 

 

 

 

 

 

Optional

 

 

 

 

Disabled by default.

Enable SNMP agent

 

snmp-agent

You can enable SNMP agent

 

 

 

 

with this command or any

 

 

 

 

command that begins with

 

 

 

 

snmp-agent.

 

 

 

 

 

 

 

 

snmp-agent mib-view

Optional

Create or update MIB view information

{ excluded included }

By default, the MIB view

view-name oid-tree [ mask

name is ViewDefault and

 

 

 

 

 

 

mask-value ]

OID is 1.

 

 

 

 

 

 

 

 

snmp-agent community

 

 

 

Configure an

{ read write }

Required

 

Directly

SNMP

community-name [ acl

 

Use either approach.

 

 

community

acl-number mib-view

 

 

 

view-name ]*

The direction configuration

Configure

 

snmp-agent group { v1

approach is for SNMPv1 or

 

SNMPv2c. The community

 

v2c } group-name

SNMP NMS

Configure an

name configured on the

[ read-view read-view]

access right

NMS should be consistent

SNMP group

[ write-view write-view]

 

 

with the username configured

 

Indirectly

 

[ notify-view notify-view]

 

 

on the agent.

 

 

[ acl acl-number ]

 

 

 

 

 

 

The indirect configuration

 

 

 

 

 

 

 

snmp-agent usm-user { v1

 

 

Add a user to the

approach is for SNMPv3.

 

 

v2c } user-name group-name

 

 

SNMP group

 

 

 

[ acl acl-number ]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NOTE:

The device supports the following SNMP versions: SNMPv1, SNMPv2c and SNMPv3. For more information about SNMP, see the Network Management and Monitoring Configuration Guide.

NMS login example

In this example, iMC is used as the NMS.

1.Configuration on the device

#Assign IP address of device. Make sure the device and the NMS can reach each other. (Configuration steps are omitted.)

75