Configuring snmpv1 and snmpv2c – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 96

Advertising
background image

7-4

To do…

Use the command…

Remarks

Add an SNMPv3 user to an SNMP
agent group

snmp-agent usm-user v3
user-name group-name [ [ cipher ]
authentication-mode { md5 |
sha } auth-password
[ privacy-mode { 3des | aes128 |
des56 } priv-password ] ] [ acl
acl-number ]

Required

If the cipher keyword is specified,
the arguments auth-password and
priv-password are considered as
cipher text password.

Configure the maximum size of an
SNMP packet that can be received
or sent by an SNMP agent

snmp-agent packet max-size
byte-count

Optional

2000 bytes by default

Set the local access controller as
the SNMP proxy agent for an
SNMP agent

snmp-agent proxy { ip
ipv4-address | ipv6 ipv6-address }

Optional

Configuring SNMPv1 and SNMPv2c

Follow these steps to configure SNMPv1 and SNMPv2c:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable SNMP agent

snmp-agent

Optional

Disabled by default

You can also enable SNMP agent
by using any command that begins
with snmp-agent.

Configure SNMP agent system
information

snmp-agent sys-info { contact
sys-contact | location sys-location
| version { { v1 | v2c | v3 }* | all } }

Required

The defaults are as follows:

Hangzhou H3C Technologies Co.,
Ltd. for contact,

Hangzhou China for location and
SNMP v3 for the version.

Configure the engine ID for a local
SNMP agent

snmp-agent local-engineid
engineid

Optional

Company ID and device ID by
default

Create or update MIB view content
for an SNMP agent

snmp-agent mib-view
{ excluded | included }
view-name oid-tree [ mask
mask-value ]

Optional

ViewDefault by default

Advertising