R3204P16-HP Load Balancing Module System Maintenance Configuration Guide-6PW101
49
To do… Use the command…
Remarks
Enable the SNMP agent
service
snmp-agent
Optional
Disabled by default.
You can also enable the SNMP 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 { all | { v1 | v2c |
v3 }* } }
Optional
The defaults are as follows:
Null for contact; Null for location, and
SNMP v3 for the version.
Configure a local engine
ID for an SNMP entity
snmp-agent local-engineid
engineid
Optional
The default engine ID is the company ID plus
device ID.
Create or update the MIB
view content for an SNMP
agent
snmp-agent mib-view { excluded
| included } view-name oid-tree
[ mask mask-value ]
Optional
By default, MIB view named ViewDefault
exists on the device and the OID is 1.
Create an SNMPv3 group
and specify its access right
snmp-agent group v3
group-name [ authentication |
privacy ] [ read-view read-view ]
[ write-view write-view ]
[ notify-view notify-view ] [ acl
acl-number ]
Required
Convert a plain text key to
an encrypted key
snmp-agent calculate-password
plain-password mode { 3desmd5
| 3dessha | md5 | sha }
{ local-engineid |
specified-engineid engineid }
Optional
Add an SNMPv3 user to
an SNMP 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 encrypted
keys.
Configure the maximum
size (in bytes) of SNMP
packets for an SNMP
agent
snmp-agent packet max-size
byte-count
Optional
1500 bytes by default.
CAUTION:
A
fter you chan
g
e the local en
g
ine ID, the existin
g
USM users become invalid, and you must re-create the
SNMPv3 users.
Configuring SNMPv1 or SNMPv2c basic parameters
Follow these steps to configure SNMPv1 or SNMPv2c basic parameters:
To do… Use the command…
Remarks
Enter system view system-view —