beautypg.com

Configuring snmp notifications, Enabling snmp notifications – H3C Technologies H3C MSR 5600 User Manual

Page 126

background image

113

The SNMP agent logs Get requests, Set requests, Set responses, and SNMP notifications, 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.

Notification tracking—The agent logs the SNMP notifications after sending them to the NMS.

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, such as 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 Command

Remarks

1.

Enter system view.

system-view N/A

2.

(Optional.) Enable SNMP
logging.

snmp-agent log { all |
get-operation | set-operation }

By default, SNMP logging is
disabled.

3.

(Optional.) Enable SNMP
notification logging.

snmp-agent trap log

By default, SNMP notification
logging is disabled.

Configuring SNMP notifications

The SNMP Agent sends notifications (traps and informs) to inform the NMS of significant events, such as

link state changes and user logins or logouts. Unless otherwise stated, the trap keyword in the command

line includes both traps and informs.

Enabling SNMP notifications

Enable an SNMP notification only if necessary. SNMP notifications are memory-intensive and may affect

device performance.
To generate linkUp or linkDown notifications when the link state of an interface changes, you must

enable linkUp or linkDown notification globally by using the snmp-agent trap enable standard

[ linkdown | linkup ] * command and on the interface by using the enable snmp trap updown

command.
After you enable notifications for a module, whether the module generates notifications also depends on

the configuration of the module. For more information, see the configuration guide for each module.
To enable SNMP notifications:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

This manual is related to the following products: