beautypg.com

Configuring snmp logging – H3C Technologies H3C MSR 5600 User Manual

Page 125

background image

112

Step Command

Remarks

8.

(Optional.) Create or update a

MIB view.

snmp-agent mib-view { excluded |
included } view-name oid-tree
[ mask mask-value ]

By default, the MIB view
ViewDefault is predefined. In this
view, all the MIB objects in the iso

subtree but the snmpUsmMIB,

snmpVacmMIB, and
snmpModules.18 subtrees are

accessible.
Each view-name oid-tree pair

represents a view record. If you

specify the same record with
different MIB sub-tree masks

multiple times, the most recent

configuration takes effect. Except
for the four sub-trees in the default

MIB view, you can create up to

16 unique MIB view records.

9.

Create an SNMPv3 group.

snmp-agent group v3 group-name
[ authentication | privacy ]
[ read-view view-name ]

[ write-view view-name ]

[ notify-view view-name ] [ acl
acl-number | acl ipv6

ipv6-acl-number ] *

By default, no SNMP group
exists.

10.

(Optional.) Convert a plaintext
key to an encrypted key.

snmp-agent calculate-password
plain-password
mode {md5 | sha } { local-engineid
| specified-engineid engineid }

N/A

11.

Create an SNMPv3 user.

snmp-agent usm-user v3 user-name
group-name [ remote { ip-address |
ipv6 ipv6-address } [ vpn-instance

vpn-instance-name ] ] [ { cipher |

simple } authentication-mode { md5
| sha } auth-password

[ privacy-mode { aes128 | des56 }

priv-password ] ] [ acl acl-number |
acl ipv6 ipv6-acl-number ] *

If the cipher keyword is specified,
the arguments auth-password

and priv-password are used as
encrypted keys.
To send informs to an SNMPv3
NMS, you must configure the

remote ip-address option to
specify the IP address of the

NMS.

12.

(Optional.) Configure the
maximum SNMP packet size

(in bytes) that the SNMP agent

can handle.

snmp-agent packet max-size
byte-count

By default, the maximum SNMP
packet size that the SNMP agent

can handle is 1500 bytes.

13.

(Optional.) Specify the UDP

port for receiving SNMP
packets.

snmp-agent port port-num

By default, the device uses UDP
port 161 for receiving SNMP

packets.

Configuring SNMP logging

Disable SNMP logging in normal cases to prevent a large amount of SNMP logs from decreasing device

performance.

This manual is related to the following products: