159
Step
Command
Remarks
10.
(Optional.) Map an
SNMP community to
an SNMP context.
snmp-agent community-map
community-name
context
context-name
By default, no mapping between
an SNMP community and an
SNMP context exists on the device.
11.
(Optional.) Configure
the maximum SNMP
packet size (in bytes)
that the SNMP agent
can handle.
snmp-agent packet max-size
byte
-
count
By default, an SNMP agent can
send and receive an SNMP packet
with a maximum size of 1500
bytes.
12.
Specify the UDP port
for receiving SNMP
packets.
snmp-agent port
port-num
By default, the device uses UDP
port 161 for receiving SNMP
packets.
Configuring SNMPv3 basic parameters
SNMPv3 users are managed in groups. All SNMPv3 users in a group share the same security model, but
can use different authentication and privacy key settings. To implement a security model for a user and
avoid SNMP communication failures, make sure the security model configuration for the group and the
security key settings for the user are compliant with
and match the settings on the NMS.
Table 7
Basic security setting requirements for different security models
Security model
Security model
keyword for the group
Security key settings
for the user
Remarks
Authentication with
privacy
privacy
Authentication key,
privacy key
If the authentication key or
the privacy key is not
configured, SNMP
communication will fail.
Authentication without
privacy
authentication
Authentication key
If no authentication key is
configured, SNMP
communication will fail.
The privacy key (if any)
for the user does not take
effect.
No authentication, no
privacy
Neither
authentication
nor
privacy
None
The authentication and
privacy keys, if
configured, do not take
effect.
To configure SNMPv3 basic parameters:
Step Command
Remarks
1.
Enter system view.
system-view
N/A