- Table of Contents
-
- H3C S9500 Command Manual-Release1648[v1.24]-08 System Volume
- 00-1Cover
- 01-Command Line Interface Commands
- 02-Login and User Interface Commands
- 03-FTP and TFTP Commands
- 04-HA Commands
- 05-NQA Commands
- 06-NetStream Commands
- 07-NTP Commands
- 08-RMON Commands
- 09-SNMP Commands
- 10-Packet Statistics Accounting Commands
- 11-Device Management Commands
- 12-Configuration File Management Commands
- 13-File System Management Commands
- 14-Cluster Management Commands
- 15-System Maintenance and Debugging Commands
- 16-Information Center Commands
- 17-PoE Commands
- 18-Clock Module Commands
- 19-ACSEI Server Commands
- 20-OAP Module Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
16-Information Center Commands | 123.23 KB |
Table of Contents
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.12 info-center loghost source
1.1.13 info-center monitor channel
1.1.14 info-center snmp channel
Chapter 1 Information Center
1.1 Information Center Configuration Commands
1.1.1 display channel
Syntax
display channel [ channel-number | channel-name ]
View
Any view
Parameters
channel-number: Channel number, in the range 0 to 9, that is, the system has ten channels.
channel-name: Specifies the channel name. The name can be channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, logfile.
Description
Use the display channel command to view the details about the information channel.
Without parameter, the display channel command shows the configurations of all the channels.
Examples
# Show details about the information channel 0.
<H3C> display channel 0
channel number:0, channel name:console
MODU_ID NAME ENABLE LOG LEVEL ENABLE TRAP LEVEL ENABLE DEBUGGING LEVEL
0xffff0000 default Y warning Y debugging Y debugging
1.1.2 display info-center
Syntax
display info-center
View
Any view
Parameters
None
Description
Use the display info-center command to view the configuration of system log and the information recorded in the memory buffer.
If the information in the current log/trap buffer is less than the size of buffer, display the actual log/trap information.
Related commands: info-center enable, info-center loghost, info-center logbuffer, info-center console channel, info-center monitor channel.
Examples
# Show the system log information.
<H3C> display info-center
Information Center:enabled
Log host:
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:256
current messages:6, channel number:4, channel name:logbuffer
dropped messages:0, overwrote messages:0
Trap buffer:
enabled, max buffer size:1024, current buffer size:256
current messages:0, channel number:3, channel name:trapbuffer
dropped messages:0, overwrote messages:0
Log file :
enabled,max file buffer size 32KB, current file buffer size 7KB,
channel number : 6, channel name : logfile
max log file number : 5, max length of each log file : 2MB
log file directory : cf:/logfile
Information timestamp setting:
log - date, trap - date, debug - boot
Table 1-1 display info-center command output description
Field |
Description |
Information Center: |
The status of the information center |
Log host: |
The status of the log host, including its IP address, occupied channel number, channel name, language and the priority level of the log host. |
Console: |
The status of the console port, including the occupied channel name and channel number. |
Monitor: |
The status of the monitoring port, including the occupied channel number and channel name. |
SNMP Agent: |
The status of the SNMP agent, including the occupied channel number and channel name. |
Log buffer: |
The status of the log buffer, including enable status, maximum size, current size, number of current messages, channel name, channel number, number of dropped messages, number of the overwritten messages. |
Trap buffer: |
The status of the trap buffer, including enable status, maximum size, current size, number of current messages, channel name, channel number, number of dropped messages, number of the overwritten messages. |
Log file |
The status of the log file, including enable status, maximum file buffer size, channel number, channel name, maximum number of log files, maximum size of the log file, storage path of log files. |
Information timestamp setting: |
Information timestamp settings, including the timestamp type of log messages, trap messages and debugging messages. |
1.1.3 display logbuffer
Syntax
display logbuffer [ summary ] [size sizenum | [ reverse ] | level [ levelnum | emergencies | alerts | critical | errors | warnings | notifications | informational | debugging } ] * [ | { begin | include | exclude } text ]
View
Any view
Parameters
size sizenum: Optional parameter. Number of log information you want to query.
levelnum: Optional parameter. Level of the log information you want to query.
summary: Optional parameter, displays the statistics of all logs levels in the log buffer.
reverse: Optional parameter, searches for the matching log information from the head of the log buffer.
emergencies, alerts, critical, debugging, errors, informational, notifications, warnings are the names of the eight log severity levels. You can type the values or names of the desired severity levels, which are equivalent, in commands. Table 1-2 gives the details.
Table 1-2 Severity levels defined in the information center
Severity |
Value |
Description |
emergencies |
1 |
|
alerts |
2 |
Information requiring immediate reaction |
critical |
3 |
Critical information |
errors |
4 |
Error information |
warnings |
5 |
Warning information |
notifications |
6 |
Normal but important information |
informational |
7 |
Notification that should be recorded |
debugging |
8 |
Information generated during the debugging |
size: Configures the size of buffer.
sizenum: Size of buffer (number of messages which can be kept); ranging from 1 to 1024. By default, the size of the buffer is 256.
|: Filters the configuration information to be output by regular expression.
begin: Optional parameter, displays all items beginning from the matching item.
exclude: Optional parameter, only displays the matching items.
include: Optional parameter, only displays the non-matching items..
text: Defines the regular expression.
Table 1-3 Special characters in the regular expression
Special characters |
Description |
Restriction |
_ |
Underscore, similar to a wildcard and can stand for these characters: (^|$|[,(){} ]) A space, the beginning of the input string, the end of the input string |
If the first character in the regular expression is not a underscore, then there is no restriction on the number of the underscore (but it is restricted by the command length) If the first character in the regular expression is an underscore, then there should be less than five consecutive underscores. If the underscores in a command are discrete, on the first group of underscores are filtered for the output information, but not the subsequent underscores. |
( |
Left parenthesis, push flag in program |
It is recommended not to use this character in the regular expression. |
Description
Use the display logbuffer command to view the attribute of logbuffer and the information recorded in logbuffer.
All log messages are saved in the log buffer. When the log buffer is full, the latest message will overlap the earliest one.
The displaying sequence of all log messages is from the newest message to the oldest one.
When you input size, if the size of current configured log messages is bigger than the logsize, the system will search for the messages on the following principles.
l If you input reverse, the system will search for logsize matching messages from the oldest one( the head of the log buffer), then displays them from the newest message to the oldest one.
l If you do not input inverse, the system will search for the logsize matching messages from the newest one( the end of the log buffer), then displays them from the newest message to the oldest one.
Examples
# Show the system logbuffer attribute and the log information in logbuffer.
<H3C> 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 : 91
1.1.4 display logbuffer summary
Syntax
display logbuffer summary [ level severity ]
View
Any view
Parameters
level: Level of information severity.
severity: Information level, do not output information below this level. Information at different levels is as the following table:
Table 1-4 Severity levels defined in the information center
Severity |
Value |
Description |
emergencies |
1 |
Information on system unavailability |
alerts |
2 |
Information requiring immediate reaction |
critical |
3 |
Critical information |
errors |
4 |
Error information |
warnings |
5 |
Warning information |
notifications |
6 |
Normal but important information |
informational |
7 |
Notification that should be recorded |
debugging |
8 |
Information generated during debugging |
Description
Use the display logbuffer summary command to view the summary information recorded in logbuffer.
Related commands: info-center enable, info-center loghost, info-center logbuffer, info-center console channel, info-center monitor channel.
Examples
# Show the summary information recorded in logbuffer.
<H3C> display logbuffer summary
EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0 0 0 0 94 0 1 0
1.1.5 display trapbuffer
Syntax
display trapbuffer [ summary ] [ level [ levelnum | emergencies | alerts | critical | debugging | errors | informational | notifications | warnings ] ] [size sizenum]
View
Any view
Parameters
size: Configures the size of buffer.
summary: Number of statistical logs.
sizenum: Size of buffer (number of messages which can be kept), ranging from 1 to 1024. By default, the size of the buffer is 256.
level: Level of information severity.
levelnum: Information level value, ranging from 1 to 8.
emergencies, alerts, critical, debugging, errors, informational, notifications, warnings are the names of the eight log severity levels. You can type the values or names of the desired severity levels, which are equivalent, in commands. Table 1-2 gives the details.
Description
Use the display trapbuffer command to view the attribute of trapbuffer and the information recorded in trapbuffer.
Examples
# Show the system trapbuffer attribute and the log information in trapbuffer.
<H3C> 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
overwrote messages : 0
current messages : 6
#Dec 31 14:01:25 2004 H3C DEV/2/LOAD FINISHED:
Trap 1.3.6.1.4.1.2011.2.23.1.12.1.20: frameIndex is 0, slotIndex 0.4
#Dec 31 14:01:33 2004 H3C DEV/2/BOARD STATE CHANGE TO NORMAL:
Trap 1.3.6.1.4.1.2011.2.23.1.12.1.11: frameIndex is 0, slotIndex 0.2
#Dec 31 14:01:40 2004 H3C DEV/2/BOARD STATE CHANGE TO NORMAL:
Trap 1.3.6.1.4.1.2011.2.23.1.12.1.11: frameIndex is 0, slotIndex 0.
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: Channel number, ranging from 0 to 9, that is, system has ten channels.
channel-name: Specifies the channel name with a character string not exceeding 30 characters, excluding digit, "-", "/" or "\".
Description
Use the info-center channel name command to rename a channel specified by the channel-number as channel-name.
Use the undo info-center channel command to restore the channel name.
The system assigns a channel in each output direction by default. See the table below.
Table 1-5 Numbers and names of the channels for log output
Output direction |
Channel number |
Default channel name |
Console |
0 |
console |
Monitor |
1 |
monitor |
Info-center loghost |
2 |
loghost |
Trap buffer |
3 |
trapbuf |
Logging buffer |
4 |
logbuf |
snmp |
5 |
snmpagent |
Log file |
6 |
Logfile |
Note that the channel name cannot be duplicated.
Examples
# Rename the channel 0 as execconsole.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center channel 0 name execconsole
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: Channel number, in the range 0 to 9, that is, system has ten channels.
channel-name: Specifies the channel name. The name can be channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, logfile.
Description
Use the info-center console channel command to configure the channel through which the log information is output to the console.
By default, Ethernet switches do not output log information to the console.
This command takes effect only after system logging is started.
Related commands: info-center enable, display info-center.
Examples
# Configure to output log information to the console through channel 0.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] 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 the system log function.
Use the undo info-center enable command to disable system log function.
By default, system log function is enabled.
Only after the system log function is enabled can the system output the log information to the info-center loghost and console, and so on.
Related commands: info-center loghost, info-center logbuffer, info-center console channel, info-center monitor channel, display info-center, info-center enable.
Examples
# Enable the system log function.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center enable
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
channel: Configures the channel to output information to buffer.
channel-number: Channel number, ranging from 0 to 9, that is, system has ten channels.
channel-name: Specifies the channel name. The name can be channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, logfile.
size: Configures the size of buffer.
buffersize: Size of buffer (number of messages which can be kept).
Description
Use the info-center logbuffer command to configure to output information to the memory buffer.
Use the undo info-center logbuffer command to cancel the information output to buffer.
By default, the switch outputs information to the memory buffer whose size is 512, that is, the memory buffer can hold 512 messages.
This command takes effect only after the system logging is enabled.
Related commands: info-center enable, display info-center.
Examples
# Send log information to buffer and sets the size of buffer to 50.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center logbuffer size 50
1.1.10 info-center logfile
Syntax
info-center logfile [ channel { channel-number | channel-name } | size logfile-size | directory directory | number logfile-num ]*
info-center logfile [ flush ]
undo info-center logfile [ channel | size | directory | number ]
View
System view
Parameters
channel: Specifies the channel whereby to output information to a log file.
channel-number: Channel number, in the range 0 to 9 (that is, the system has 10 channels).
channel-name: Channel name. The channel name range is: channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, and logfile.
size: Specifies the allowed size of each log file.
logfile-size: Allowed size of each log file, in the range 1 to 10 (Mbytes).
directory: Directory under which to save a log file.
directory: Directory under which to save a log file. Now, it is only the path of the compact flash (CF) card.
number: Specifies the allowed number of log files saved in the system.
logfile-num: Allowed number of log files saved in the system, in the range 1 to 5.
flush: Writes a log file from the buffer to the storage device.
Description
Use the info-center logfile command to configure to output information to the logfile.
Use the undo info-center logfile command to cancel the information output to the logfile.
Use the undo info-center logfile channel command to restore the default channel whereby to output information to a log file.
Use the undo info-center logfile size command to restore the default size of a single log file.
Use the undo info-center logfile directory command to restore the default directory under which to save a log file.
Use the undo info-center logfile number command to restore the default allowed number of log files saved in the system.
By default, the Switch outputs information to a log file through Channel 6, the allowed size of each log file is 2 Mbytes, the system allows you to save a maximum of 5 log files, and log files are saved under cf:/logfile.
This command takes effect only after the system logging is enabled.
If no CF card is in position in the system, the system cannot output information to a log file, and the log file function cannot take effect.
Related commands: info-center enable, display info-center.
Examples
# Send log information to logfile.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center logfile
# Save log files under cf:/test.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center logfile dirctory cf:/test
cf:/test does not exist.Do you want to create it?[Y/N]y
1.1.11 info-center loghost
Syntax
info-center loghost { source interface-type interface-number | host-ip-addr [ channel { channel-number | channel-name } | facility local-number | language { chinese | english } ]*}
undo info-center loghost host-ip-addr
View
System view
Parameters
host-ip-addr: IP address of info-center loghost.
channel: Configures information channel of the info-center loghost.
channel-number: Channel number, ranging from 0 to 9, that is, system has ten channels.
channel-name: Specifies the channel name. The name can be channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, logfile.
Source: Source address of the packet sent to the loghost.
interface-type interface-number: Type and number of interface sending log file.
facility: Configures the recording tool of info-center loghost.
local-number: Record tool of info-center loghost, ranging from local0 to local7.
language: Sets the logging language.
chinese, english: Language used in log file.
Description
Use the info-center loghost command to configure the system to output information to the log host.
Use the undo info-center loghost command to cancel output to info-center loghost.
By default, Ethernet switches do not output information to info-center loghost.
This command takes effect only after the system logging is enabled.
Related commands: info-center enable, display info-center.
Examples
# Configure to send log information to the UNIX workstation at 202.38.160.1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center loghost 202.38.160.1
1.1.12 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: Layer 3 interface on the switch.
Description
Use the info-center loghost source command to specify source address of the packets sent to loghost as the address of the interface specified by the interface-name.
Use the undo info-center loghost source command to cancel the specified source address of the packets sent to loghost.
Related commands: info-center enable, display info-center.
Examples
# Specify source address of the packets sent to loghost as the address of the VLAN interface 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center loghost source vlan-interface 1
1.1.13 info-center monitor channel
Syntax
info-center monitor channel { channel-number | channel-name }
undo info-center monitor channel
View
System view
Parameters
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten channels.
channel-name: Channel name. The name can be channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, logfile.
Description
Use the info-center monitor channel command to configure the channel to output the log information to the user terminal.
Use the undo info-center monitor channel command to restore the channel to output the log information to the user terminal to default value.
By default, Ethernet switches do not output log information to user terminal.
This command takes effect only after system logging is started.
Related commands: info-center enable, display info-center.
Examples
# Configure channel 0 to output log information to user terminal.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center monitor channel 0
1.1.14 info-center snmp channel
Syntax
info-center snmp channel { channel-number | channel-name }
undo info-center snmp channel
View
System view
Parameters
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten channels. By default, channel 5 is used.
channel-name: Channel name. The name can be channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, logfile.
Description
Use the info-center snmp channel command to configure new channel for transmitting the SNMP information.
Use the undo info-center snmp channel command to restore the default channel for transmitting the SNMP information.
The default channel for transmitting the SNMP information is channel 5.
Examples
# Configure channel 6 as the SNMP information channel.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center snmp channel 6
1.1.15 info-center source
Syntax
info-center source { modu-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 { modu-name | default | all } channel { channel-number | channel-name }
View
System view
Parameters
modu-name: Module name.
Table 1-6 gives the details.
Table 1-6 The module name field
Module name |
Description |
8021X |
802.1X module |
ACL |
Access Control List (ACL) module |
ADBM |
MAC address management module |
ARP |
Address Resolution Protocol (ARP) module |
BGP |
Border Gateway Protocol (BGP) module |
CFM |
Configuration file management module |
CMD |
Command module |
DEV |
Device management module |
DHCP |
Dynamic Host Configuration Protocol module |
DIAGCLI |
Diagnosis module |
DRVMPLS |
Multiprotocol Label Switching (MPLS) drive module |
DRV_L2 |
Layer 2 drive module |
DRV_L3 |
Layer 3 drive module |
DRV_L3MC |
Layer 3 multicast module |
MPLS |
MPLS (multiprotocol label switching) drive module |
DRVPOS |
POS drive module |
DRVQACL |
QACL drive module |
ETH |
Ethernet module |
FTPS |
FTP server module |
HA |
High availability module |
HABP |
HABP (Huawei authentication bypass protocol) module |
HWCM |
Huawei configuration management MIB module |
IFNET |
Interface management module |
IGSP |
IGMP snooping module |
IP |
Internet Protocol (IP) module |
ISIS |
Intermediate System-To-Intermediate System Intradomain Routing Protocol (IS-IS) module |
L2INF |
L2 interface management module |
L2V |
L2 VPN module |
LACL |
LAN switch ACL module |
LDP |
Label Distribution Protocol (LDP) module |
LINKAGG |
LINKAGG module |
LQOS |
LAN switch QoS module |
LS |
Local server module |
LSPAGENT |
Label Switched Path (LSP) agent module |
LSPM |
Label Switch Path Management (LSPM) module |
MIX |
Dual system management module |
MODEM |
Modem module |
MPLSFW |
MPLS forward module |
MPM |
Multicast port management module |
MSDP |
Multicast Source Discovery Protocol (MSDP) module |
MSTP |
MSTP (multiple spanning tree protocol) module |
NAT |
Network Address Translation (NAT) module |
NTP |
Network Time Protocol (NTP) module |
OSPF |
Open Shortest Path First (OSPF) module |
PHY |
Physical sublayer & physical layer module |
PPP |
PPP (point to point protocol) module |
RDS |
RADIUS module |
RM |
Routing management module |
RMON |
Remote monitor module |
RSA |
RSA (Revest, Shamir and Adleman) encryption module |
RTPRO |
Routing protocol module |
SHELL |
User interface module |
SNMP |
Simple Network Management Protocol (SNMP) module |
SOCKET |
Socket module |
SYSMIB |
System MIB module |
TELNET |
Telnet module |
VFS |
Virtual file system (VFS) module |
VLAN |
Virtual Local Area Network (VLAN) module |
VRRP |
Virtual Router Redundancy Protocol (VRRP) module |
VTY |
Virtual Type Terminal (VTY) module |
default: All the modules.
log: Log information.
trap: Trap information.
all: Clears all the information filtering configuration on the channelnum channel except the default one.
debugging: Debugging information.
level: Level of information severity.
severity: Information level, do not output information below this level.
Table 1-7 gives detailed severity information:
Table 1-7 Severity levels defined in the information center
Severity |
Value |
Description |
emergencies |
1 |
Information on system unavailability |
alerts |
2 |
Information requiring immediate reaction |
critical |
3 |
Critical information |
errors |
4 |
Error information |
warnings |
5 |
Warning information |
notifications |
6 |
Normal but important information |
informational |
7 |
Notification that should be recorded |
debugging |
8 |
Information generated during debugging |
By default, the information level of each channel is as follows:
Table 1-8 Default information level of each channel
channel |
Log information level |
Trap information level |
Debugging information level |
Console |
warning |
debugging |
debugging |
Terminal |
warning |
debugging |
debugging |
Log host |
informational |
debugging |
debugging |
Trapbuffer |
informational |
warning |
debugging |
Logbuffer |
warning |
debugging |
debugging |
SNMPagent |
debugging |
warning |
debugging |
Logfile |
warning |
debugging |
debugging |
Channel7 |
debugging |
debugging |
debugging |
Channel8 |
debugging |
debugging |
debugging |
Channel9 |
debugging |
debugging |
debugging |
By default, the information switch state of each channel is shown in Table 1-9:
Table 1-9 Default information switch state of each channel
Channel |
Log information switch |
Trap information switch |
Debug information switch |
Console |
Enable |
Disable |
Enable |
Terminal |
Enable |
Disable |
Enable |
Log host |
Enable |
Enable |
Disable |
Trapbuffer |
Disable |
Enable |
Disable |
Logbuffer |
Enable |
Disable |
Disable |
SNMPagent |
Disable |
Enable |
Disable |
Logfile |
Enable |
Disable |
Disable |
Channel7 |
Enable |
Enable |
Disable |
Channel8 |
Enable |
Enable |
Disable |
Channel9 |
Enable |
Enable |
Disable |
& Note:
If you only specify the level for one/two of the three types of information, the level(s) of the unspecified two/one return(s) to the default. For example, if you only define the level of the log information, then the levels of the trap and debugging information return to the defaults.
channel-number: Channel number to be set.
channel-name: Channel name to be set. The name can be channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, logfile.
state: Sets the state of the information.
state: Specifies the state as on or off.
Description
Use the info-center source command to add/delete a record to the information channel.
Use the undo info-center source command to cancel the contents of the information channel.
Use this command to configure the information of log/trap/debugging type. For example, for the filter of IP module log output, you can configure to output the logs at a level higher than warnings to the log host and output those higher than informational to the log buffer. You can also configure to output the trap information on the IP module to a specified trap host, and so on.
The channels for filtering in all the directions are specified by this configuration command. All the information will be sent to the corresponding directions through the specified channels. You can configure the channels in the output direction, channel filter information, filtering and redirecting of all kinds of information.
At present, the system distributes an information channel in each output direction by default, shown as follows:
Table 1-10 Default information channel in each output direction
Output direction |
Information channel name |
Console |
console |
Monitor |
monitor |
Info-center loghost |
loghost |
Log buffer |
logbuffer |
Trap buffer |
trapbuffer |
snmp |
snmpagent |
Log file |
logfile |
In addition, each information channel has a default record with the module name “default” and module number as 0xffff0000. However, for different information channel, the default log, trap and debugging settings in the records may be different with one another. Use default configuration record if a module does not have any specific configuration record in the channel.
Examples
# Set to enable the log information of VLAN module in SNMP channel and allow the output of the information with a level higher than emergencies.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center source vlan channel snmp log level emergencies
1.1.16 info-center timestamp
Syntax
info-center timestamp { log | trap | debugging } { boot | date | none }
undo info-center timestamp { log | trap | debugging }
View
System view
Parameters
log: Log information.
trap: Trap information.
debugging: Debugging information.
boot: Time elapsing after system starts. Format: xxxxxx.yyyyyy, xxxxxx is the high 32 bits of the elapsed time (in milliseconds) after system starts, and yyyyyy is the low 32 bits.
date: Current system date and time. It shows as yyyy/mm/dd-hh:mm:ss in Chinese environment and mm dd hh:mm:ss yyyy in Western language environment.
none: No timestamp format.
Description
Use the info-center timestamp command to configure the timestamp output format in debugging/trap information.
Use the undo info-center timestamp command to disable the output of timestamp field.
By default, date stamp is used.
Examples
# Configure the debugging information timestamp format as boot.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center timestamp debugging boot
1.1.17 info-center trapbuffer
Syntax
info-center trapbuffer [ size buffersize | channel { channel-number | channel-name } ]*
undo info-center trapbuffer [ channel | size ]
View
System view
Parameters
size: Configures the size of the trap buffer.
buffersize: Size of trap buffer (numbers of messages).
channel: Configures the channel to output information to trap buffer.
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten channels.
channel-name: Channel name which can be the channel7, channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer, logfile
Description
Use the info-center trapbuffer command to output information to the trap buffer.
Use the undo info-center trapbuffer command to cancel output information to trap buffer.
By default, output information is transmitted to trap buffer and size of trap buffer is 256, that is, the trap buffer can hold 256 messages.
This command takes effect only after the system logging is enabled.
The information can be output to the trap buffer by configuring the size of the buffer.
Related commands: info-center enable, display info-center.
Examples
# Send information to the trap buffer and sets the size of the buffer to 30.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center trapbuffer size 30
1.1.18 reset logbuffer
Syntax
reset logbuffer
View
User view
Parameters
None
Description
Use the reset logbuffer command to reset information in log buffer.
Examples
# Clear information in log buffer.
<H3C> reset logbuffer
1.1.19 reset trapbuffer
Syntax
reset trapbuffer
View
User view
Parameters
None
Description
Use the reset trapbuffer command to reset information in trap buffer.
Examples
# Clear information in trap buffer.
<H3C> reset trapbuffer
1.1.20 terminal debugging
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameters
None
Description
Use the terminal debugging command to configure to display the debugging information on the terminal.
Use the undo terminal debugging command to configure not to display the debugging information on the terminal.
By default, the terminal display function of debugging information is disabled.
Related commands: debugging.
Examples
# Enable the terminal display debugging.
<H3C> terminal debugging
1.1.21 terminal logging
Syntax
terminal logging
undo terminal logging
View
User view
Parameters
None
Description
Use the terminal logging command to enable terminal log information display.
Use the undo terminal logging command to disable terminal log information display.
By default, the log information display is enabled on the console and disabled on the terminal.
Examples
# Disable the terminal display function of log information.
<H3C> undo terminal logging
1.1.22 terminal monitor
Syntax
terminal monitor
undo terminal monitor
View
User view
Parameters
None
Description
Use the terminal monitor command to enable the terminal display functions.
Use the undo terminal monitor command to disable the terminal display functions.
By default, the system enables the functions of debugging/log/trap information on the console and disables them on the terminal.
This command only takes effect on the current terminal where the commands are input. The debugging/log/trap information can be output to the current terminal, beginning in user view. When the terminal monitor is shut down, no debugging/log/trap information will be displayed in local terminal, which is equals to having performed undo terminal debugging, undo terminal logging, undo terminal trapping commands. When the terminal monitor is enabled, you can use terminal debugging / undo terminal debugging, terminal logging / terminal logging and terminal trapping / undo terminal trapping respectively to enable or disable the corresponding functions.
Examples
# Disable the terminal monitor.
<H3C> undo terminal monitor
1.1.23 terminal trapping
Syntax
terminal trapping
undo terminal trapping
View
User view
Parameters
None
Description
Use the terminal trapping command to enable terminal display function of trap information.
Use the undo terminal trapping command to disable this function.
By default, this function is enabled.
Examples
# Enable the terminal display function of trap information.
<H3C> terminal trapping