< Home

info-center trapbuffer size

Function

The info-center trapbuffer size command sets the maximum number of traps in the trap buffer.

The undo info-center trapbuffer size command restores the default maximum number of traps in the trap buffer.

By default, a trap buffer allows a maximum of 256 traps.

Format

info-center trapbuffer size trapbuffer-size

undo info-center trapbuffer size [ trapbuffer-size ]

Parameters

Parameter Description Value
trapbuffer-size Specifies the maximum number of traps in the trap buffer. The value is an integer that ranges from 0 to 1024. If trapbuffer-size is 0, traps are not displayed.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The info-center trapbuffer size command sets the maximum number of traps in the trap buffer.

Prerequisites

The Switch has been enabled to output traps to the trap buffer by using the info-center trapbuffer command.

Precautions

When you run the info-center trapbuffer size command multiple times, only the latest configuration takes effect.

If a small value of trapbuffer-size is used, some traps may be not displayed. If a large value of trapbuffer-size is used, repeated traps may be displayed. The default value of trapbuffer-size is recommended.

Example

# Set the maximum number of traps in the trap buffer to 30.

<HUAWEI> system-view
[HUAWEI] info-center trapbuffer size 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >