Step

 

Command

Remarks

 

 

 

Optional.

 

 

 

By default, the SNMP agent is

2.

Enable the SNMP agent.

snmp-agent

disabled.

You can enable SNMP agent with this

 

 

 

 

 

 

command or any command that

 

 

 

begins with snmp-agent.

 

 

 

 

 

 

 

By default, no SNMP group is

 

 

snmp-agent group v3 group-name

configured.

3.

Configure an SNMP

[ authentication privacy ]

NOTE:

 

group and specify its

[ read-view read-view] [ write-view

Support for the acl ipv6

 

write-view] [ notify-view

 

access right.

ipv6-acl-numberoption depends on the

 

notify-view ] [ acl acl-number acl

 

 

device model. For more information,

ipv6 ipv6-acl-number ] *

see Getting Started Command

 

 

Reference.

4.Add a user to the SNMP group.

snmp-agent usm-user v3 user-namegroup-name[ [ cipher ] authentication-mode { md5 sha } auth-password[ privacy-mode

{3des aes128 des56 }

priv-password ] ] [ acl acl-number acl ipv6 ipv6-acl-number ] *

N/A

NOTE:

Support for the acl ipv6 ipv6-acl-numberoption depends on the device model. For more information, see Getting Started Command Reference.

Configuring SNMPv1 or SNMPv2c access

Step

 

Command

Remarks

1.

Enter system view.

system-view

N/A

 

 

 

 

 

 

 

Optional.

 

 

 

By default, the SNMP agent

2.

Enable the SNMP agent.

 

is disabled.

snmp-agent

You can enable SNMP agent

 

 

 

 

 

 

with this command or any

 

 

 

command that begins with

 

 

 

snmp-agent.

 

 

 

 

3.

Create or update MIB

 

Optional.

snmp-agent mib-view { excluded included }

By default, the MIB view

 

view information.

view-name oid-tree [ mask mask-value ]

name is ViewDefault and

OID is 1.

65