R3204P16-HP Load Balancing Module System Maintenance Configuration Guide-6PW101
50
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 { { v1 | v2c | v3 }* |
all } }
Required
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 the device ID.
Create or update 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.
Configur
e SNMP
access
right
Approach 1:
Create an SNMP
community
snmp-agent community { read |
write } community-name [ acl
acl-number | mib-view
view-name ]*
Use either approach.
By default, no SNMP group exists.
In approach 2, the username is equivalent
to the community name in approach 1.
Approach 2:
Create an SNMP
group, and add
a user to the
SNMP group
snmp-agent group { v1 | v2c }
group-name [ read-view
read-view ] [ write-view
write-view ] [ notify-view
notify-view ] [ acl acl-number ]
snmp-agent usm-user { v1 | v2c }
user-name group-name [ acl
acl-number ]
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
1500 bytes by default.
CAUTION:
A
MIB view is a subset of MIB and is uniquely identified by its view name and the MIB subtree to
g
ether.
MIB views with the same view name but containing different subtrees are considered different views.
Except default MIB views, you can create at most 16 MIB views.
Configuring SNMP logging
The SNMP logging function logs the Get requests, Set requests, and Set responses that the NMS has
performed on the SNMP agent, but does not log the Get responses.
• For a Get operation, the agent logs the IP address of the NMS, name of the accessed node, and
node OID.
• For a Set operation, the agent logs the IP address of the NMS, name of the accessed node, node
OID, the assigned value and the error code and error index of the Set response.