The info-center trapbuffer size command sets the number of traps to be displayed.
info-center trapbuffer channel commands are used to configure channels for outputting trapbuffer information.
The undo info-center trapbuffer channel command restores the default configuration.
By default, A maximum of 256 traps can be displayed, the channel number is 3 and the channel name is trapbuffer.
Parameter | Description | Value |
---|---|---|
channel-number |
Specifies the channel number. |
The value is an integer ranging from 0 to 9, indicating that the system has 10 channels. By default, a device outputs information to various destinations through channels listed in the following table.
|
channel-name |
Specifies the name of a channel, which can be the default channel name or a user-defined name. |
The value is a string of 1 to 30 characters. The first character can be a letter only. The name cannot contain spaces or special characters, such as hyphens (-), slashes (/), or backslashes (\). |
size size |
Specifies the number of logbuffer. |
The value is an integer ranging from 0 to 1024. |
trapbuffer |
Indicates the channel through which information is output to the trap buffer. |
- |
Usage Scenario
To set the number of traps to be output, run the info-center trapbuffer size command.
To output the same information to destinations or output information from multiple channels to the same destination, run the info-center command to modify configurations about information channels. The following requirements can be met:
Prerequisites
The trap display function has been enabled. Otherwise, traps cannot be output to the trap buffer for user query.
Configuration Impact
If the info-center trapbuffer size command is run more than once, the latest configuration overrides the previous one.
Precautions
If the number of traps to be displayed is set too small, some traps cannot be queried. If the number of traps to be displayed is set too large, excessive repeated traps may be displayed. The default number of traps to be displayed is recommended.