< Home

Configuring the Device to Output Traps to the Trap Buffer

Context

To view traps in the trap buffer, configure the device to output traps to the trap buffer.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run info-center trapbuffer

    The device is enabled to output traps to the trap buffer.

    By default, the device is enabled to output traps to the trap buffer.

  3. Run info-center trapbuffer channel { channel-number | channel-name }

    The channel used by the device to output traps to the trap buffer is specified.

    By default, the device uses channel 3 to output traps to the trap buffer.

  4. Run info-center source { module-name | default } channel { channel-number | channel-name } trap { state { off | on } | level severity } *

    A rule for outputting traps to a channel is set.

    By default, channel 3 is enabled to output traps and the lowest severity is debugging.

  5. (Optional) Run info-center trapbuffer size trapbuffer-size

    The maximum number of traps in the trap buffer is set.

    By default, the trap buffer can store a maximum of 256 traps.

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