Configuring Snmp Logging - HP MSR Series Configuration Manual

Msr router series network management and monitoring
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

Step
15.
Configure the SNMP
access right.
16.
Configure the
maximum size (in
bytes) of SNMP
packets for the
SNMP agent.

Configuring SNMP logging

Disable SNMP logging in normal cases to prevent a large amount of SNMP logs from decreasing device
performance.
The SNMP logging function logs Get requests, Set requests, and Set responses, but does not log Get
responses.
Get operation—The agent logs the IP address of the NMS, name of the accessed node, and node
OID.
Set operation—The agent logs the NMS' IP address, name of accessed node, node OID, variable
value, and error code and index for the Set operation.
The SNMP module sends these logs to the information center as informational messages. You can
configure the information center to output these messages to certain destinations, for example, the
console and the log buffer. The total output size for the node field (MIB node name) and the value field
(value of the MIB node) in each log entry is 1024 bytes. If this limit is exceeded, the information center
truncates the data in the fields. For more information about the information center, see "Configuring the
information center."
To configure SNMP logging:
Step
1.
Enter system view.
2.
Enable SNMP logging.
Command
(Method 1) Create an SNMP community:
snmp-agent community { read | write }
[ cipher ] community-name [ mib-view
view-name ] [ acl acl-number | acl ipv6
ipv6-acl-number ] *
(Method 2) Create an SNMP group, and
add a user to the SNMP group:
a.
snmp-agent group { v1 | v2c }
group-name [ read-view read-view ]
[ write-view write-view ] [ notify-view
notify-view ] [ acl acl-number | acl ipv6
ipv6-acl-number ] *
b.
snmp-agent usm-user { v1 | v2c }
user-name group-name [ acl
acl-number | acl ipv6
ipv6-acl-number ] *
snmp-agent packet max-size byte-count
Command
system-view
snmp-agent log { all |
get-operation | set-operation }
5
Remarks
Use either method.
By default, no SNMP group
exists.
In method 2, the username is
equivalent to the community
name in method 1, and must be
the same as the community
name configured on the NMS.
Optional.
By default, the SNMP agent can
receive and send SNMP
packets up to 1500 bytes.
Remarks
N/A
By default, SNMP logging is
disabled.

Advertisement

Table of Contents
loading

Table of Contents