HP 5120 series Configuration Manual page 80

Gigabit ethernet switches
Table of Contents

Advertisement

To do...
Enable SNMP agent
Configure an SNMP group
and specify its access right
Add a user to the SNMP group
Follow these steps to configure SNMPv1 and SNMPv2c settings:
To do...
Enter system view
Enable SNMP agent
Create or update MIB view information
Directly
Configure
SNMP NMS
access right
Indirectly
Use the command...
snmp-agent
snmp-agent group v3 group-name
[ authentication | privacy ]
[ read-view read-view ] [ write-view
write-view ] [ notify-view
notify-view ] [ acl acl-number ]
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 ]
Use the command...
system-view
snmp-agent
snmp-agent mib-view
{ excluded | included }
view-name oid-tree [ mask
mask-value ]
snmp-agent community
Configure an
{ read | write }
SNMP
community-name [ acl
community
acl-number | mib-view
view-name ]*
snmp-agent group { v1 |
v2c } group-name
Configure an
[ read-view read-view ]
SNMP group
[ write-view write-view ]
[ notify-view notify-view ]
[ acl acl-number ]
snmp-agent usm-user { v1 |
Add a user to the
v2c } user-name group-name
SNMP group
[ acl acl-number ]
73
Remarks
Optional
Disabled by default.
You can enable SNMP agent with this
command or any command that
begins with snmp-agent.
Required
By default, no SNMP group is
configured.
Required
If the cipher keyword is specified, both
auth-password and priv-password are
cipher text passwords.
Remarks
Optional
Disabled by default.
You can enable SNMP agent
with this command or any
command that begins with
snmp-agent.
Optional
By default, the MIB view
name is ViewDefault and
OID is 1.
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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents