- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 5303(V1.01)
- 00-1Cover
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Configuration Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-IP Source Guard Commands
- 09-MSTP Commands
- 10-IPv6 Commands
- 11-Routing Overview Commands
- 12-IPv4 Routing Commands
- 13-BFD-GR Commands
- 14-IPv6 Routing Commands
- 15-Multicast Protocol Commands
- 16-802.1x-HABP-MAC Authentication Commands
- 17-AAA-RADIUS-HWTACACS Commands
- 18-ARP Commands
- 19-DHCP Commands
- 20-ACL Commands
- 21-QoS Commands
- 22-Port Mirroring Commands
- 23-Cluster Management Commands
- 24-UDP Helper Commands
- 25-SNMP-RMON Commands
- 26-NTP Commands
- 27-DNS Commands
- 28-File System Management Commands
- 29-Information Center Commands
- 30-System Maintaining and Debugging Commands
- 31-NQA Commands
- 32-VRRP Commands
- 33-SSH Commands
- 34-MCE Commands
- 35-OAM Commands
- 36-DLDP Commands
- 37-RRPP Commands
- 38-SSL-HTTPS Commands
- 39-PKI Commands
- 40-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
29-Information Center Commands | 105.3 KB |
Table of Contents
Chapter 1 Information Center Configuration Commands
1.1 Information Center Configuration Commands
1.1.4 display logbuffer summary
1.1.6 info-center channel name
1.1.7 info-center console channel
1.1.11 info-center loghost source
1.1.12 info-center monitor channel
1.1.13 info-center snmp channel
1.1.15 info-center synchronous
1.1.17 info-center timestamp loghost
Chapter 1 Information Center Configuration Commands
1.1 Information Center Configuration Commands
1.1.1 display channel
Syntax
display channel [ channel-number | channel-name ]
View
Any view
Parameters
channel-number: Displays information of the channel with a specified number, where channel-number represents the channel number, in the range 0 to 9.
channel-name: Displays information of the channel with a specified name, where channel-name represents the channel name, which could be a default name or one that is defined by the user. The user needs to specify a channel name first before using it as a self-defined channel name. For more information, refer to the info-center channel name command.
Table 1-1 Information channels for different output directions
Output direction |
Information channel number |
Default channel name |
Console |
0 |
console |
Monitor terminal |
1 |
monitor |
Log host |
2 |
loghost |
Trap buffer |
3 |
trapbuffer |
Log buffer |
4 |
logbuffer |
SNMP NMS |
5 |
snmpagent |
Description
Use the display channel command to display channel information.
If no channel is specified, information for all channels is displayed.
Examples
# Display information for channel 0.
<Sysname> display channel 0
channel number:0, channel name:console
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y warnings Y debugging Y debugging
Table 1-2 Description on the fields of the display channel command
Field |
Description |
channel number |
A specified channel number, in the range 0 to 9. |
channel name |
A specified channel name, which varies with user’s configuration. For more information, refer to the info-center channel name command. |
MODU_ID |
The ID of the module to which the information permitted through the current channel belongs |
NAME |
The name of the module to which the information permitted through the current channel belongs Default means all modules are allowed to output system information, but the module type varies with devices. |
ENABLE |
Indicates whether to enable or disable the output of log information, which could be Y or N. |
LOG_LEVEL |
The severity of log information, refer to Table 1-4 for details. |
ENABLE |
Indicates whether to enable or disable the output of trap information, which could be Y or N. |
TRAP_LEVEL |
The severity of trap information, refer to Table 1-4 for details. |
ENABLE |
Indicates whether to enable or disable the output of debug information, which could be Y or N. |
DEBUG_LEVEL |
The severity of debug information, refer to Table 1-4 for details. |
The above information indicates to output log information with the severity from 0 to 4, trap information with the severity from 0 to 7 and debug information with the severity from 0 to 7 to the console. The source module is default.
1.1.2 display info-center
Syntax
display info-center
View
Any view
Parameters
None
Description
Use the display info-center command to display configurations for all channels (except channel 6 to 9) of the information center.
Examples
# Display configurations for all channels.
<Sysname> display info-center
Information Center:enabled
Log host:
2.2.2.2, channel number : 8, channel name : channel8,
host facility local7
Console:
channel number : 0, channel name : console
Monitor:
channel number : 1, channel name : monitor
SNMP Agent:
channel number : 5, channel name : snmpagent
Log buffer:
enabled,max buffer size 1024, current buffer size 512,
current messages 512, dropped messages 0, overwritten messages 740
channel number : 4, channel name : logbuffer
Trap buffer:
enabled,max buffer size 1024, current buffer size 256,
current messages 216, dropped messages 0, overwritten messages 0
channel number : 3, channel name : trapbuffer
Information timestamp setting:
log - date, trap - date, debug - date,
loghost - date
Table 1-3 Description on the fields of the display info-center command
Field |
Description |
Information Center |
The current state of the information center, which could be enabled or disabled. |
Log host: 2.2.2.2, channel number : 8, channel name : channel8, host facility local7 |
The information of the log host channel (It can be displayed only when the info-center loghost command is configured), including IP address of the log host, the channel number(s) and channel name(s) used, and logging facility used.) |
Console: channel number : 0, channel name : console |
The console channel information, including the channel number(s) and channel name(s) used |
Monitor: channel number : 1, channel name : monitor |
The monitor channel information, including the channel number(s) and channel name(s) used |
SNMP Agent: channel number : 5, channel name : snmpagent |
The SNMP agent channel information, including the channel number(s) and channel name(s) used |
Log buffer: enabled,max buffer size 1024, current buffer size 512, current messages 512, dropped messages 0, overwritten messages 740 channel number : 4, channel name : logbuffer |
The information of the log buffer channel, including whether it is enabled or disabled, the maximum capacity, the current capacity, the current number of messages, the number of dropped messages, the number of messages that have been overwritten, and the channel number(s) and channel name(s) used. |
Trap buffer: enabled,max buffer size 1024, current buffer size 256, current messages 216, dropped messages 0, overwritten messages 0 channel number : 3, channel name : trapbuffer |
The information of the trap buffer channel, including whether it is enabled or disabled, the maximum capacity, the current capacity, the current number of messages, the number of dropped messages, the number of messages that have been overwritten, and the channel number(s) and channel name(s) used. |
Information timestamp setting |
The timestamp configurations, specifying the timestamp format for log, trap, debug, and log host information. |
1.1.3 display logbuffer
Syntax
display logbuffer [ level severity | size buffersize ] * [ | { begin | exclude | include } text ]
View
Any view
Parameters
level severity: Displays information of the log with specified level, where severity represents information level, in the range 0 to 7.
Table 1-4 Severity description
Severity |
Value |
Description |
emergencies |
0 |
The system is unavailable |
alerts |
1 |
Information that requires prompt reaction |
critical |
2 |
Critical information |
errors |
3 |
Error information |
warnings |
4 |
Warnings |
notifications |
5 |
Normal errors with important information |
informational |
6 |
Informational information to be recorded |
debugging |
7 |
Debugging information |
size buffersize: Displays specified number of the latest log messages in the log buffer, where buffersize represents the number of the latest log messages to be displayed in the log buffer, in the range 1 to 1,024.
|: The output log information filtered by a regular expression.
begin: Displays log information beginning with a specified character or string.
exclude: Displays log information that does not contain a specified character or string.
include: Displays log information that contains a specified character or string.
text: Regular expression.
Table 1-5 Meanings of characters in text
Character |
Meaning |
Remarks |
^ |
Starting sign, the string following it appears only at the beginning of a line. |
Regular expression “^user” matches a string begins with “user”, not “Auser”. |
$ |
Ending sign, the string before it appears only at the end of a line. |
Regular expression "user$” matches a string ends with “user”, not “userA”. |
. |
Full stop, a wildcard used in place of any character, including blank |
None |
* |
Asterisk, used to match a subexpression before it zero or multiple times |
zo* can map to “z” and “zoo”. |
+ |
Addition, used to match a subexpression before it one or multiple times |
zo+ can map to “zo” and “zoo”, but not “z”. |
- |
Hyphen. It connects two values (the smaller one before it and the bigger one after it) to indicate a range together with [ ]. |
For example, “1-9” means numbers from 1 to 9 (inclusive); “a-h” means from a to h (inclusive). |
[ ] |
Selects one character from the group. |
For example, [1-36A] can match only one character among 1, 2, 3, 6, and A. |
( ) |
A group of characters. It is usually used with “+” or “*”. |
For example, (123A) means a string “123A”; “408(12)+” can match 40812 or 408121212. But it cannot match 408. That is, “12” can appear continuously and it must at least appear once. |
Description
Use the display logbuffer command to display the state of the log buffer and the log information recorded. Absence of the size buffersize argument indicates that all log information recorded in the log buffer is displayed.
Examples
# Display the state of the log buffer and the log information recorded on the log buffer.
<Sysname> display logbuffer
Logging buffer configuration and contents:enabled
Allowed max buffer size : 1024
Actual buffer size : 512
Channel number : 4 , Channel name : logbuffer
Dropped messages : 0
Overwritten messages : 718
Current messages : 512
%Apr 26 13:00:00:319 2000 H3C IC/6/SYS_RESTART:
System restarted --
H3C Comware Software
%Apr 26 13:00:17:661 2000 H3C HTTPD/4/Log:Start HTTP server.
%Apr 26 13:00:22:610 2000 H3C IFNET/4/LINK UPDOWN:
Ethernet1/0/1: link status is UP
%Apr 26 13:00:22:617 2000 H3C IFNET/4/LINK UPDOWN:
Vlan-interface1: link status is UP
%Apr 26 13:00:22:617 2000 H3C IFNET/4/UPDOWN:
Line protocol on the interface Vlan-interface1 is UP
The rest is omitted here.
Table 1-6 Description on the fields of the display logbuffer command
Field |
Description |
Logging buffer configuration and contents |
Indicates the current state of the log buffer and its contents, which could be enabled or disabled. |
Allowed max buffer size |
The maximum buffer size allowed |
Actual buffer size |
The actual buffer size |
Channel number |
The channel number of the log buffer, defaults to 4 |
Channel name |
The channel name of the log buffer, defaults to logbuffer |
Dropped messages |
The number of dropped messages |
Overwritten messages |
The number of overwritten messages (when the buffer size is not big enough to hold all messages, the latest messages overwrite the old ones). |
Current messages |
The number of the current messages |
1.1.4 display logbuffer summary
Syntax
display logbuffer summary [ level severity ]
View
Any view
Parameters
level severity: Displays the summary of the log buffer, where severity represents information level, in the range 0 to 7.
Description
Use the display logbuffer summary command to display the summary of the log buffer.
Examples
# Display the summary of the log buffer.
<Sysname> display logbuffer summary
EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0 0 0 0 94 0 1 0
Table 1-7 Description on the fields of the display logbuffer summary command
Field |
Description |
EMERG |
Represents emergencies, refer to Table 1-4 for details |
ALERT |
Represents alerts, refer to Table 1-4 for details |
CRIT |
Represents critical, refer to Table 1-4 for details |
ERROR |
Represents errors, refer to Table 1-4 for details |
WARN |
Represents warnings, refer to Table 1-4 for details |
NOTIF |
Represents notifications, refer to Table 1-4 for details |
INFO |
Represents informational, refer to Table 1-4 for details |
DEBUG |
Represents debugging, refer to Table 1-4 for details |
1.1.5 display trapbuffer
Syntax
display trapbuffer [ size buffersize ]
View
Any view
Parameters
size buffersize: Displays specified number of the latest trap messages in a trap buffer, where buffersize represents the number of the latest trap messages in a trap buffer, in the range 1 to 1,024.
Description
Use the display trapbuffer command to display the state and the trap information recorded.
Absence of the size buffersize argument indicates that all trap information is displayed.
Examples
# Display the state of the trap buffer and the trap information recorded.
<Sysname> display trapbuffer
Trapping buffer configuration and contents:enabled
Allowed max buffer size : 1024
Actual buffer size : 256
Channel number : 3 , channel name : trapbuffer
Dropped messages : 0
Overwritten messages : 0
Current messages : 0
Table 1-8 Description on the fields of the display trapbuffer command
Field |
Description |
Trapping buffer configuration and contents |
Indicates the current state of the trap buffer and its contents, which could be enabled or disabled. |
Allowed max buffer size |
The maximum buffer size allowed |
Actual buffer size |
The actual buffer size |
Channel number |
The channel number of the trap buffer, defaults to 3 |
Channel name |
The channel name of the trap buffer, defaults to trapbuffer |
Dropped messages |
The number of dropped messages |
Overwritten messages |
The number of overwritten messages (when the buffer size is not big enough to hold all messages, the latest messages overwrite the old ones). |
Current messages |
The number of the current messages |
1.1.6 info-center channel name
Syntax
info-center channel channel-number name channel-name
undo info-center channel channel-number
View
System view
Parameters
channel-number: Specifies a channel number, in the range 0 to 9.
channel-name: Specifies a channel name, a string of 1 to 30 characters. It should not start with a number, an underscore (-), a forward slash (/), or a backward slash (\). The channel name is not case sensitive.
Description
Use the info-center channel name command to name a channel with a specified channel number.
Use the undo info-center channel command to restore the default name for a channel with a specified channel number.
Refer to Table 1-1 for details of default channel names and channel numbers.
Examples
# Name channel 0 as abc.
<Sysname> system-view
[Sysname] info-center channel 0 name abc
1.1.7 info-center console channel
Syntax
info-center console channel { channel-number | channel-name }
undo info-center console channel
View
System view
Parameters
channel-number: Specifies a channel number, in the range 0 to 9.
channel-name: Specifies a channel name, which could be a default name or one that is defined by the user. The user needs to specify a channel name first before using it as a self-defined channel name. For more information, refer to the info-center channel name command.
Description
Use the info-center console channel command to specify the channel to output system information to the console.
Use the undo info-center console channel command to restore the default output channel to the console.
By default, output of information to the console is enabled with channel 0 as the default channel (known as console).
Note that the info-center console channel command takes effect only after the information center is enabled first with the info-center enable command.
Examples
# Set channel 0 to output system information to the console.
<Sysname> system-view
[Sysname] info-center console channel 0
1.1.8 info-center enable
Syntax
info-center enable
undo info-center enable
View
System view
Parameters
None
Description
Use the info-center enable command to enable information center.
Use the undo info-center enable command to disable the information center.
The system outputs information to the log host or the console only after the information center is enabled first.
By default, the information center is enabled.
Examples
# Enable the information center.
<Sysname> system-view
[Sysname] info-center enable
% Information center is enabled
1.1.9 info-center logbuffer
Syntax
info-center logbuffer [ channel { channel-number | channel-name } | size buffersize ] *
undo info-center logbuffer [ channel | size ]
View
System view
Parameters
buffersize: Specifies the maximum number of log messages in a log buffer, in the range 0 to 1,024 with 512 as the default value.
channel-number: A specified channel number, in the range 0 to 9.
channel-name: Specifies a channel name, which could be a default name or one that is defined by the user. The user needs to specify a channel name first before using it as a self-defined channel name. For more information, refer to the info-center channel name command.
Description
Use the info-center logbuffer command to enable information output to a log buffer and set the corresponding parameters.
Use the undo info-center logbuffer command to disable information output to a log buffer.
By default, information output to the log buffer is enabled with channel 4 (logbuffer) as the default channel and a maximum buffer size of 512.
Note that the info-center logbuffer command takes effect only after the information center is enabled with the info-center enable command.
Examples
# Enable the system to output information to the log buffer with a default buffer size of 50.
<Sysname> system-view
[Sysname] info-center logbuffer size 50
1.1.10 info-center loghost
Syntax
info-center loghost host-ip [ channel { channel-number | channel-name } facility local-number ] *
undo info-center loghost host-ip
View
System view
Parameters
host-ip: The IP address of the log host.
channel: Specifies the channel through which system information can be output to the log host.
channel-number: Specifies a channel number, in the range 0 to 9.
channel-name: Specifies a channel name, which could be a default name or one that is defined by the user. The user needs to specify a channel name first before using it as a self-defined channel name. For more information, refer to the info-center channel name command.
facility local-number: The logging facility of the log host. The local-number argument ranges from local0 to local7, with the corresponding value ranging from 16 to 23. The default logging facility is local7, with the value being 23.
Description
Use the info-center loghost command to specify a log host and to configure the related parameters.
Use the undo info-center loghost command to restore the default configurations on a log host.
By default, output of system information to the log host is disabled. When it is enabled, the default channel name will be loghost and the default channel number will be 2.
Note that:
l The info-center loghost command takes effect only after the information center is enabled with the info-center enable command.
l Ensure that the IP address input is correct while using the info-center loghost command to configure the IP address for a log host. System will prompt an invalid address if the loopback address (127.0.0.1) is input.
l A maximum number of 4 hosts (different) can be designated as the log host.
Examples
# Set to output log information to a Unix station with the IP address being 1.1.1.1/16.
<Sysname> system-view
[Sysname] info-center loghost 1.1.1.1
1.1.11 info-center loghost source
Syntax
info-center loghost source interface-type interface-number
undo info-center loghost source
View
System view
Parameters
interface-type interface-number: Specifies a source interface by its type and number.
Description
Use the info-center loghost source command to configure the source interface to output log information to the log host.
Use the undo info-center loghost source command to remove the source interface to output log information to the log host.
By default, no source interface is configured to output log information to the log host, and the system selects an interface as the source interface.
Note that the info-center loghost source command takes effect only after the information center is enabled with the info-center enable command.
Examples
# Configure the interface VLAN-interface 1 as the source interface to output log information to the log host.
<Sysname> system-view
[Sysname] info-center loghost source Vlan-interface 1
1.1.12 info-center monitor channel
Syntax
info-center monitor channel { channel-number | channel-name }
undo info-center monitor channel
View
System view
Parameters
channel-number: Specifies a channel number, in the range 0 to 9.
channel-name: Specifies a channel name, which could be a default name or one that is defined by the user. The user needs to specify a channel name first before using it as a self-defined channel name. For more information, refer to the info-center channel name command.
Description
Use the info-center monitor channel command to configure the channel to output system information to the monitor.
Use the undo info-center monitor channel command to restore the default channel to output system information to the monitor.
By default, output of system information to the monitor is enabled with a default channel name of monitor and a default channel number of 1.
Note that the info-center monitor channel command takes effect only after the information center is enabled with the info-center enable command.
Examples
# Set to output system information to the monitor through channel 0.
<Sysname> system-view
[Sysname] info-center monitor channel 0
1.1.13 info-center snmp channel
Syntax
info-center snmp channel { channel-number | channel-name }
undo info-center snmp channel
View
System view
Parameters
channel-number: Specifies a channel number, in the range 0 to 9.
channel-name: Specifies a channel name, which could be a default name or one that is defined by the user. The user needs to specify a channel name first before using it as a self-defined channel name. For more information, refer to the info-center channel name command.
Description
Use the info-center snmp channel command to configure the channel to output system information to the SNMP NMS.
Use the undo info-center snmp channel command to restore the default channel to output system information to the SNMP NMS.
By default, output of system information to the SNMP NMS is enabled with a default channel name of snmpagent and a default channel number of 5.
For more information, refer to the display snmp-agent command in SNMP-RMON Commands.
Examples
# Set to output system information to the SNMP NMS through channel 6.
<Sysname> system-view
[Sysname] info-center snmp channel 6
1.1.14 info-center source
Syntax
info-center source { module-name | default } channel { channel-number | channel-name } [ debug { level severity | state state } * | log { level severity | state state } * | trap { level severity | state state } * ] *
undo info-center source { module-name | default } channel { channel-number | channel-name }
View
System view
Parameters
module-name: Specifies the output rules of the system information of the specified modules, which vary with devices. For instance, if information on ARP module is to be output, you can configure this argument as ARP.
default: Specifies the output rules of the system information of all the modules allowed to output the system information. This configuration varies with devices.
debug: Debug information.
log: Log information.
trap: Trap information.
level severity: Specifies the severity of system information, refer to Table 1-4 for details.
state state: The state of system information, which could be on or off.
channel-number: Specifies a channel number, in the range 0 to 9.
channel-name: Specifies a channel name, which could be a default name or one that is defined by the user. The user needs to specify a channel name first before using it as a self-defined channel name. For more information, refer to the info-center channel name command.
Description
Use the info-center source command to specify the output rules of the system information.
Use the undo info-center source command to remove the specified output rules.
By default, the output rules for the system information are listed in Table 1-9.
This command can be used to filter and redirect system information.
For example, the user can set to output log information with severity higher than warnings to the log host, and information with severity higher than informational to the log buffer. The user can also set to output trap information of the IP module to a specified output direction.
Note that:
l If you do not use the module-name argument to set output rules for a module, the module uses the default output rules or the output rules set by the default keyword; otherwise the module uses the output rules separately set for it.
l When you use the module-name argument to separately set the output rules for a module, the default output rules for the module become: Log and trap information is enabled, with severity being informational; debug information is disabled, with severity being debugging.
l After you separately set the output rules for a module, you must use the module-name argument to modify or remove the rules. The new configuration by using the default keyword is invalid on the module.
Table 1-9 Default output rules for different output directions
Output direction |
Modules allowed |
LOG |
TRAP |
DEBUG |
|||
Enabled/disabled |
Severity |
Enabled/disabled |
Severity |
Enabled/disabled |
Severity |
||
Console |
default (all modules) |
Enabled |
warnings |
Enabled |
debugging |
Enabled |
debugging |
Monitoring terminal |
default (all modules) |
Enabled |
warnings |
Enabled |
debugging |
Enabled |
debugging |
Log host |
default (all modules) |
Enabled |
informational |
Enabled |
debugging |
Disabled |
debugging |
Trap buffer |
default (all modules) |
Disabled |
informational |
Enabled |
warnings |
Disabled |
debugging |
Log buffer |
default (all modules) |
Enabled |
warnings |
Disabled |
debugging |
Disabled |
debugging |
SNMP NMS |
default (all modules) |
Disabled |
debugging |
Enabled |
warnings |
Disabled |
debugging |
Examples
# Set the output channel for the log information of VLAN module to snmpagent and to output information with severity being emergencies.
<Sysname> system-view
[Sysname] info-center source vlan channel snmpagent log level emergencies
1.1.15 info-center synchronous
Syntax
info-center synchronous
View
System view
Parameters
None
Description
Use the info-center synchronous command to enable synchronous information output.
Use the undo info-center synchronous command to disable the synchronous information output.
By default, the synchronous information output is disabled.
& Note:
l Under the current command line prompt, if the user’s input is interrupted by system output such as log information, then after the completion of system output the system will not display command line prompt.
l When users need to input some interactive information (non Y/N confirmation information) if the user’s input is interrupted by system information, then after the completion of system output the system will not display command line prompt but just print the user’s input.
Examples
# Enable synchronous information output.
<Sysname> system-view
[Sysname] info-center synchronous
% Info-center synchronous output is on
# The user receives trap messages when he/she is about to display the configurations for an Ethernet port by inputting the display interface ethe command. After the system has finished its output of trap messages, it will display the user’s original input, which is “display interface ethe” in this case.
<Sysname> system-view
[Sysname] display interface ethe
%Apr 2 17:33:48:986 2000 Sysname L2INF/5/PORT LINK STATUS CHANGE:- 1 -
Ethernet1/0/1: is UP
[Sysname]display interface Ethe
1.1.16 info-center timestamp
Syntax
info-center timestamp { debugging | log | trap } { boot | date | none }
undo info-center timestamp { debugging | log | trap }
View
System view
Parameters
debugging: Sets the timestamp format of the debugging information.
log: Sets the timestamp output format of the log information.
trap: Sets the timestamp output format of the trap information.
boot: The time taken to boot up the system, in the format of xxxxxx.yyyyyy, in which xxxxxx represents the most significant 32 bits of the time taken to boot up the system (in milliseconds) whereas yyyyyy is the least significant 32 bits.
date: The current system date and time, in the format of “Mmm dd hh:mm:ss:sss yyyy”.
l Mmm: The abbreviations of the months in English, which could be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec.
l dd: The date, starting with a space if less than 10, for example “ 7”.
l hh:mm:ss:sss: The local time, with hh ranging from 00 to 23, mm and ss ranging from 00 to 59, and sss ranging from 0 to 999.
l yyyy: Represents the year.
none: Indicates no time information is provided.
Description
Use the info-center timestamp command to configure the timestamp format.
Use the undo info-center timestamp command to restore the default.
By default, the timestamp format of log, trap and debugging information is date.
Examples
# Configure the timestamp format for debugging information as boot.
<Sysname> system-view
[Sysname] info-center timestamp debugging boot
1.1.17 info-center timestamp loghost
Syntax
info-center timestamp loghost { date | no-year-date | none }
undo info-center timestamp loghost
View
System view
Parameters
date: Indicates the current system date and time, the format of which depends on the log host.
no-year-date: Indicates the current system date and time (year exclusive).
none: Indicates that no timestamp information is provided.
Description
Use the info-center timestamp loghost command to configure the timestamp format of the log information sent to the log host.
Use the undo info-center timestamp loghost command to restore the default.
By default, the timestamp format for log information sent to the log host is date.
Examples
# Set not to include the year information in the output information to the log host.
<Sysname> system-view
[Sysname] info-center timestamp loghost no-year-date
1.1.18 info-center trapbuffer
Syntax
info-center trapbuffer [channel { channel-number | channel-name } | size buffersize ] *
undo info-center trapbuffer [ channel | size ]
View
System view
Parameters
size buffersize: Specifies the maximum number of trap messages in a trap buffer, in the range 0 to 1,024 with 256 as the default value.
channel-number: Specifies a channel number, in the range 0 to 9.
channel-name: Specifies a channel name, which could be a default name or one that is defined by the user. The user needs to specify a channel name first before using it as a self-defined channel name. For more information, refer to the info-center channel name command.
Description
Use the info-center trapbuffer command to enable information output to the trap buffer and set the corresponding parameters.
Use the undo info-center trapbuffer command to disable information output to the trap buffer.
By default, information output to the trap buffer is enabled with channel 3 (trapbuffer) as the default channel and a maximum buffer size of 256.
Note that the info-center trapbuffer command takes effect only after the information center is enabled with the info-center enable command.
Examples
# Enable system to output information to the trap buffer with a default buffer size of 30.
<Sysname> system-view
[Sysname] info-center trapbuffer size 30
1.1.19 reset logbuffer
Syntax
reset logbuffer
View
User view
Parameters
None
Description
Use the reset logbuffer command to reset the log buffer contents.
Examples
# Reset the log buffer contents.
<Sysname> reset logbuffer
1.1.20 reset trapbuffer
Syntax
reset trapbuffer
View
User view
Parameters
None
Description
Use the reset trapbuffer command to reset the trap buffer contents.
Examples
# Reset the trap buffer contents.
<Sysname> reset trapbuffer
1.1.21 terminal debugging
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameters
None
Description
Use the terminal debugging command to enable the display of debug information on the current terminal.
Use the undo terminal debugging command to disable the display of debug information on the current terminal.
By default, the display of debug information on the current terminal is disabled.
Note that the debug information is displayed (using the terminal debugging command) only after the monitoring of system information is enabled on the current terminal first (using the terminal monitor command).
Examples
# Enable the display of debug information on the current terminal.
<Sysname> terminal debugging
% Current terminal debugging is on
1.1.22 terminal logging
Syntax
terminal logging
undo terminal logging
View
User view
Parameters
None
Description
Use the terminal logging command to enable the display of log information on the current terminal.
Use the undo terminal logging command to disable the display of log information on the current terminal.
By default, the display of log information on the current terminal is disabled.
Note that the log information is displayed (using the terminal logging command) only after the monitoring of system information is enabled on the current terminal first (using the terminal monitor command).
Examples
# Disable the display of log information on the current terminal.
<Sysname> undo terminal logging
% Current terminal logging is off
1.1.23 terminal monitor
Syntax
terminal monitor
undo terminal monitor
View
User view
Parameters
None
Description
Use the terminal monitor command to enable the monitoring of system information on the current terminal.
Use the undo terminal monitor command to disable the monitoring of system information on the current terminal.
l Note that the terminal monitor command must be configured first before the log, trap, and debug information can be displayed using the corresponding commands.
l Configuration of the undo terminal monitor command automatically disables the monitoring of log, trap, and debug information.
By default, the monitoring of the console is enabled and the monitoring of the terminal is disabled.
Examples
# Enable the monitoring of system information on the current terminal.
<Sysname> terminal monitor
% Current terminal monitor is on
1.1.24 terminal trapping
Syntax
terminal trapping
undo terminal trapping
View
User view
Parameters
None
Description
Use the terminal trapping command to enable the display of trap information on the current terminal.
Use the undo terminal trapping command to disable the display of trap information on the current terminal.
By default, the display of trap information on the current terminal is enabled.
Note that the trap information is displayed (using the terminal trapping command) only after the monitoring of system information is enabled on the current terminal first (using the terminal monitor command).
Examples
#Enable the display of trap information on the current terminal.
<Sysname> terminal trapping
% Current terminal trapping is on