- Table of Contents
-
- H3C S9500 Command Manual-Release2132[V2.03]-08 System Volume
- 00-1Cover
- 01-GR Commands
- 02-VRRP Commands
- 03-HA Commands
- 04-Device Management Commands
- 05-NQA Commands
- 06-NetStream Commands
- 07-NTP Commands
- 08-RMON Commands
- 09-SNMP Commands
- 10-File System Management Commands
- 11-System Maintaining and Debugging Commands
- 12-Basic System Configuration Commands
- 13-Information Center Commands
- 14-User Interface Commands
- 15-MAC Address Table Management Commands
- 16-PoE Commands
- 17-Clock Monitoring Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
13-Information Center Commands | 118.07 KB |
Table of Contents
Chapter 1 Information Center Configuration Commands
1.1 Information Center Configuration Commands
1.1.4 display logbuffer summary
1.1.8 info-center channel name
1.1.9 info-center console channel
1.1.12 info-center logfile enable
1.1.13 info-center logfile frequency
1.1.14 info-center logfile size-quota
1.1.15 info-center logfile switch-directory
1.1.17 info-center loghost source
1.1.18 info-center monitor channel
1.1.19 info-center snmp channel
1.1.21 info-center synchronous
1.1.23 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
Default Level
1: Monitor level
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.
Table 1-1 Information channels for different output destinations
Output destination |
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 |
Log file |
9 |
channel9 |
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 display channel command output description
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 to pass through the current channel belongs. |
ENABLE |
Indicates whether to enable or disable the output of log information, which could be Y or N. |
LOG_LEVEL |
The severity level 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 level of trap information, refer to Table 1-4 for details. |
ENABLE |
Indicates whether to enable or disable the output of debugging information, which could be Y or N. |
DEBUG_LEVEL |
The severity level of debugging information, refer to Table 1-4 for details. |
The above information indicates to output log information with the severity level from 0 to 4, trap information with the severity level from 0 to 7 and debugging information with the severity level from 0 to 7 to the console. The information source modules are all modules (default).
1.1.2 display info-center
Syntax
display info-center
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display info-center command to display configurations for all channels (except channel 6 to 8) 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
logfile:
channel number:9, channel name:channel9
Information timestamp setting:
log - date, trap - date, debug - date,
loghost - date
Table 1-3 display info-center command output description
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 NMS 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. |
logfile: channel number:9, channel name:channel9 |
The logfile configurations information, including the used channel number(s), and channel name(s). |
Information timestamp setting |
The time stamp configurations, specifying the time stamp format for log, trap, debug, and log host information. |
1.1.3 display logbuffer
Syntax
display logbuffer [ level severity | size buffersize | slot slot number] * [ | { begin | exclude | include } text ]
View
Any view
Default Level
1: Monitor level
Parameters
severity: 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 |
buffersize: Specifies the number of the latest log messages to display in the log buffer, in the range 1 to 1,024.
slot slot number: Slot number.
|: The output log information filtered by a regular expression.
begin: Displays log information beginning with the specified text.
exclude: Displays log information that does not contain the specified text.
include: Displays log information that contains the specified text.
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 following 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 an S9500 series switch.
<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 : 0
Current messages : 2
%Apr 11 15:49:16:588 2007 Sysname SHELL/4/CMD:task:au0 ip:** user:** command:reset logbuffer
%Apr 11 15:49:19:984 2007 Sysname SHELL/4/CMD:task:au0 ip:** user:** command:display logbuffer
Table 1-6 display logbuffer command output description
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 | slot slotnumber ] *
View
Any view
Default Level
1: Monitor level
Parameters
severity: Information level, in the range 0 to 7.
slot slotnumer: Slot number.
Description
Use the display logbuffer summary command to display the summary of the log buffer.
Examples
# Display the summary of the log buffer on an S9500 series switch.
<Sysname> display logbuffer summary
SLOT EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0
3 0 0 0 0 16 0 1 0
Table 1-7 display logbuffer summary command output description
Field |
Description |
SLOT |
Slot number |
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 logfile buffer
Syntax
display logfile buffer
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display logfile buffer command to display contents of the log file buffer.
Examples
# Display the contents of the log file buffer.
<Sysname> display logfile buffer
%@33564%Apr 11 16:15:38:499 2007 Sysname SHELL/4/CMD:task:au0 ip:** user:** command:q
%@33565%Apr 11 16:15:39:268 2007 Sysname SHELL/4/CMD:task:au0 ip:** user:** command:q
%@33566%Apr 11 16:15:39:844 2007 Sysname SHELL/4/LOGOUT: TTY logout from aux0
%@33567%Apr 11 16:15:39:993 2007 Sysname SHELL/4/LOGIN: TTY login from aux0
%@33568%Apr 11 16:15:40:532 2007 Sysname SHELL/4/CMD:task:au0 ip:** user:** command:q
%@33569%Apr 11 16:15:41:113 2007 Sysname SHELL/4/LOGOUT: TTY logout from aux0
%@33570%Apr 11 16:15:41:262 2007 Sysname SHELL/4/LOGIN: TTY login from aux0
%@33571%Apr 11 16:15:41:722 2007 Sysname SHELL/4/CMD:task:au0 ip:** user:** command:q
%@33572%Apr 11 16:15:42:303 2007 Sysname SHELL/4/LOGOUT: TTY logout from aux0
%@33573%Apr 11 16:15:42:422 2007 Sysname SHELL/4/LOGIN: TTY login from aux0
1.1.6 display logfile summary
Syntax
display logfile summary
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display logfile summary command to display the configuration of the log file.
Examples
# Display the configuration of the log file.
[Sysname]display logfile summary
Log file is enabled.
Channel number : 9
Log file size quota : 0 MB (0 for unlimited)
Log file directory : flash:/logfile
Writing frequency : 0 hour 0 min 10 sec
Table 1-8 display logfile summary command output description
Field |
Description |
Log file is |
The current state of a log file, which could be enabled or disabled. |
Channel number |
The channel number of a log file, defaults to 9. |
Log file size quota |
The maximum storage space reserved for a log file |
Log file directory |
Log file directory |
Writing frequency |
Log file writing frequency |
1.1.7 display trapbuffer
Syntax
display trapbuffer [ size buffersize ]
View
Any view
Default Level
1: Monitor level
Parameters
buffersize: Specifies 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 : 1
#Nov 21 10:57:24:568 2006 Sysname DEV/1/BOARD INSERTED:
Trap 1.3.6.1.4.1.2011.2.23.1.12.1.9: frameIndex is 0, slotIndex 0.4
Table 1-9 display trapbuffer command output description
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.8 info-center channel name
Syntax
info-center channel channel-number name channel-name
undo info-center channel channel-number
View
System view
Default Level
2: System level
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.9 info-center console channel
Syntax
info-center console channel { channel-number | channel-name }
undo info-center console channel
View
System view
Default Level
2: System level
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 a self-defined name. The user needs to specify a channel name first before using it as a self-defined channel name. For related configuration, 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.10 info-center enable
Syntax
info-center enable
undo info-center enable
View
System view
Default Level
2: System level
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.11 info-center logbuffer
Syntax
info-center logbuffer [ channel { channel-number | channel-name } | size buffersize ] *
undo info-center logbuffer [ channel | size ]
View
System view
Default Level
2: System level
Parameters
buffersize: Specifies the maximum number of log messages can be stored 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 a self-defined name. The user needs to specify a channel name first before using it as a self-defined channel name. For related configuration, 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 is output to the log buffer with the default channel of channel 4 (logbuffer) and the default 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.12 info-center logfile enable
Syntax
info-center logfile enable
undo info-center logfile enable
View
System view
Default Level
2: System level
Parameters
None
Description
Use the info-center logfile enable command to enable the output of system information to the log file.
Use the undo info-center logfile enable command to disable the output of system information to the log file.
By default, the output of system information to the log file is enabled.
Examples
# Enable the log file feature.
<Sysname> system-view
[Sysname] info-center logfile enable
1.1.13 info-center logfile frequency
Syntax
info-center logfile frequency freq-sec
undo info-center logfile frequency
View
System view
Default Level
2: System level
Parameters
freq-sec: Frequency with which the system saves the log file, in the range 1 to 86400, in seconds.
Description
Use the info-center logfile frequency command to configure the frequency with which the system saves the log file.
Use the undo info-center logfile frequency command to restore the default frequency.
By default, the frequency with which an S9500 series switch saves the log file is 60 seconds.
Examples
# Configure the frequency with which the system saves the log file as 60,000 seconds.
<Sysname> system-view
[Sysname] info-center logfile frequency 60000
1.1.14 info-center logfile size-quota
Syntax
info-center logfile size-quota size
undo info-center logfile size-quota
View
System view
Default Level
2: System level
Parameters
size: The maximum capacity of a disk, in MB. The value cannot be smaller than 1 MB and larger than 10 MB.
Description
Use the info-center logfile size-quota command to set the maximum storage space reserved for a log file.
Use the undo info-center logfile size-quota command to restore the default maximum storage space reserved for a log file.
Examples
# Set the maximum storage space reserved for a log file to 6 MB.
<Sysname> system-view
[Sysname] info-center logfile size-quota 6
1.1.15 info-center logfile switch-directory
Syntax
info-center logfile switch-directory dir-name
View
System view
Default Level
2: System level
Parameters
dir-name: The name of the directory where a log file is saved, a string of 1 to 64 characters.
Description
Use the info-center logfile switch-directory command to configure the directory where a log file is saved. Ensure that the directory is created first before saving a log file into it.
By default, the directory to save a log file is the logfile directory under the root directory of the storage device.
Note that this command can be used to configure the directory to which a log file can be saved. The configuration will lose after system restart or primary/backup switchover.
Examples
# Create a directory with the name test under flash root directory.
<Sysname> mkdir test
%Created dir flash:/test.
# Set the directory to save the log file to flash:/test.
<Sysname> system-View
[Sysname] info-center logfile switch-directory flash:/test
1.1.16 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
Default Level
2: System level
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 a self-defined name. The user needs to specify a channel name first before using it as a self-defined channel name. For related configuration, refer to the info-center channel name command.
facility local-number: The logging facility of the log host. The value can be local0 to local7. The default value is local7.
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 to input a correct IP address 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.
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 202.10.10.1/16.
<Sysname> system-view
[Sysname] info-center loghost 202.10.10.1
1.1.17 info-center loghost source
Syntax
info-center loghost source interface-type interface-number
undo info-center loghost source
View
System view
Default Level
2: System level
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 M-Ethernet 6/0/0 as the source interface to output log information to the log host.
<Sysname> system-view
[Sysname] info-center loghost source M-Ethernet 6/0/0
1.1.18 info-center monitor channel
Syntax
info-center monitor channel { channel-number | channel-name }
undo info-center monitor channel
View
System view
Default Level
2: System level
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 a self-defined name. 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.19 info-center snmp channel
Syntax
info-center snmp channel { channel-number | channel-name }
undo info-center snmp channel
View
System view
Default Level
2: System level
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 a self-defined name. 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.
Related commands: display snmp-agent in SNMP Commands in the System Volume.
Examples
# Set to output system information to the SNMP NMS through channel 6.
<Sysname> system-view
[Sysname] info-center snmp channel 6
1.1.20 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
Default Level
2: System level
Parameters
module-name: Specifies the source modules of the system information. For example, if you want to output the system information of the ARP module, set the argument to ARP. default: Allows all the modules to output the system information. The modules that are allowed to output system information vary with devices.
debug: Debugging information.
log: Log information.
trap: Trap information.
severity: Specifies the severity of system information, refer to Table 1-4 for details.
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 a self-defined name. 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 information source of the specified information channel, making the information output to the corresponding destination through the specified information channel.
Use the undo info-center source command to restore the default.
By default, the system assigns an information channel for each output destination. See Table 1-1.
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 destination.
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.21 info-center synchronous
Syntax
info-center synchronous
View
System view
Default Level
2: System level
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 If system information, such as log information, is output before you input any information under a current command line prompt, the system will not display the command line prompt after the system information output.
l If system information is output when you are inputting some interactive information (non Y/N confirmation information), then after the system information output, the system will not display the command line prompt but your previous input in a new line.
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 interface by inputting the display interface ethernet command. After the system has finished its output of trap messages, it will display the user’s original input, which is “display interface ethernet” in this case.
<Sysname> display interface ethernet
%Apr 2 17:33:48:986 2000 Sysname L2INF/5/PORT LINK STATUS CHANGE:- 1 -
Ethernet1/1/4: is UP
<Sysname> display interface Ethernet
1.1.22 info-center timestamp
Syntax
info-center timestamp { log | trap | debugging } { boot | date | none }
undo info-center timestamp { log | trap | debugging }
View
System view
Default Level
2: System level
Parameters
log: Log information.
trap: Trap information.
debugging: Debugging 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 time stamp format.
Use the undo info-center timestamp command to restore the default.
By default, the time stamp format for log, trap and debugging information is date.
Examples
# Configure the time stamp format for debugging information as boot.
<Sysname> system-view
[Sysname] info-center timestamp debugging boot
1.1.23 info-center timestamp loghost
Syntax
info-center timestamp loghost { date | no-year-date | none }
undo info-center timestamp loghost
View
System view
Default Level
2: System level
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 time stamp information is provided.
Description
Use the info-center timestamp loghost command to configure the time stamp 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 time stamp format for log information sent to the log host is date.
Examples
# Configure that the log information output to the log host does not include the year information.
<Sysname> system-view
[Sysname] info-center timestamp loghost no-year-date
1.1.24 info-center trapbuffer
Syntax
info-center trapbuffer [ channel { channel-number | channel-name } | size buffersize ] *
undo info-center trapbuffer [ channel | size ]
View
System view
Default Level
2: System level
Parameters
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 a self-defined name. 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.25 logfile save
Syntax
logfile save
View
Any view
Default Level
2: System level
Parameters
None
Description
Use the logfile save command to manually save the log buffer contents into the log file.
By default, the system automatically saves the log file based on a frequency configured by the info-center logfile frequency command into a directory configured by the info-center logfile switch-directory command.
Examples
# Set to manually save the log buffer contents into the log file.
<Sysname> logfile save
1.1.26 reset logbuffer
Syntax
reset logbuffer
View
User view
Default Level
3: Manage level
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.27 reset trapbuffer
Syntax
reset trapbuffer
View
User view
Default Level
3: Manage level
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.28 terminal debugging
Syntax
terminal debugging
undo terminal debugging
View
User view
Default Level
1: Monitor level
Parameters
None
Description
Use the terminal debugging command to enable the display of debugging information on the current terminal.
Use the undo terminal debugging command to disable the display of debugging information on the current terminal.
By default, the display of debugging information on the current terminal is disabled.
Note that the debugging 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 debugging information on the current terminal.
<Sysname> terminal debugging
% Current terminal debugging is on
1.1.29 terminal logging
Syntax
terminal logging
undo terminal logging
View
User view
Default Level
1: Monitor level
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.30 terminal monitor
Syntax
terminal monitor
undo terminal monitor
View
User view
Default Level
1: Monitor level
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 You need to configure the terminal monitor command before you can display the log, trap, and debugging information.
l Configuration of the undo terminal monitor command automatically disables the monitoring of log, trap, and debugging 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.31 terminal trapping
Syntax
terminal trapping
undo terminal trapping
View
User view
Default Level
1: Monitor level
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