(Optional) Configuring the Inform Function

The router enabled with the SNMP agent function can generate two types of notifications: trap messages and Inform messages. Trap messages are messages alerting the NMS to a condition on the network. Inform messages are trap messages that include a request for confirmation of receipt from the NMS (Inform messages are resent until a reply is received). Inform messages are more reliable than trap messages.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run snmp-agent trap enable

    Alarm sending is enabled.

  3. Run snmp-agent trap enable feature-name feature-name trap-name trap-name

    A trap function of a feature module is enabled. This means that an alarm of a specified feature can be sent to the NMS.

    If the snmp-agent trap enable command has been run to enable the trap functions of all modules, or the snmp-agent trap enable feature-name command has been run to enable three or more trap functions of a module, note the following points:

  4. (Optional) Run snmp-agent inform { timeout seconds | resend-times times | pending number } *

    The timeout period for waiting for inform Ack messages, number of times to resend Inform messages, and the maximum pieces of pending Inform messages (Inform messages need to be acknowledged) are set.

    If the network is unstable, you need to increase the timeout period. At the same time, you need to increase the number of times to resend Inform messages and the maximum count of pending Inform messages.

  5. Run snmp-agent inform { timeout seconds | resend-times times } * [ host-name host-name | address udp-domain ip-address [ vpn-instance vpn-instance-name ] params securityname { security-name | cipher cipher-name } ]

    The timeout period for waiting for inform Ack messages and the number of times to resend Inform messages are set.

  6. Run snmp-agent notification-log enable

    The alarm logging function is enabled.

    If the link between a managed device and the NMS is faulty, the managed device stops sending Inform messages to the NMS but continues recording alarm logs. After the link recovers, the NMS obtains alarm logs generated during the fault period from the managed device.

    The alarm logging function logs only Inform messages.

  7. Run snmp-agent notification-log { global-ageout ageout | global-limit limit } *

    The aging time of alarm logs and maximum number of inform logs that can be stored in the log buffer are set.

    If the aging time expires, inform logs are automatically deleted.

    Newer inform logs replace the oldest ones.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >