HP (Hewlett-Packard) JG221A ユーザーズマニュアル

ページ / 157
 
To do… 
Use the command… 
Remarks 
Add a user to the 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, both 
auth-password and priv-password are 
cipher text passwords.  
 
Follow these steps to configure SNMPv1 and SNMPv2c settings: 
To do… 
Use the command… 
Remarks 
Enter system view 
system-view 
— 
Enable SNMP agent 
snmp-agent 
Optional 
Disabled by default. 
You can enable SNMP agent 
with this command or any 
command that begins with 
snmp-agent.
 
Create or update MIB view information 
snmp-agent mib-view 
{ excluded | included  } 
view-name oid-tree [ mask 
mask-value ] 
Optional 
By default, the MIB view 
name is ViewDefault and 
OID is 1.
 
Directly
 
Configure an 
SNMP 
community 
snmp-agent community 
{ read | write } 
community-name [ acl 
acl-number | mib-view 
view-name ]* 
Configure an 
SNMP group
 
snmp-agent group { v1 | 
v2c } group-name 
[ read-view read-view ] 
[ write-view write-view ] 
[ notify-view notify-view ] 
[ acl acl-number ] 
Configure 
SNMP NMS 
access right
 
Indirectly
 
Add a user to the 
SNMP group
 
snmp-agent usm-user { v1 | 
v2c } user-name group-name 
[ acl acl-number 
Required 
Use either approach. 
The direction configuration 
approach is for SNMPv1 or 
SNMPv2c. The community 
name configured on the 
NMS should be consistent 
with the username configured 
on the agent. 
The indirect configuration 
approach is for SNMPv3. 
 
 
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