Info-Center Loghost - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

Parameters
dir-name: The name of the directory where a log file is saved, which is 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 log file directory under the logfile directory of the Flash.
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.
Examples
# Set the directory to save the log file to flash:/test.
<Sysname> system-view
[Sysname] info-center logfile switch-directory flash:/test

info-center loghost

Syntax
info-center loghost host-ip [ port port-number ] [ 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.
port port-number: Specifies the number of the port that receives the system information on the log host.
The value ranges from 1 to 65535 and defaults to 514. Besides, the value of the port-number argument
should be the same as the value configured on the log host, otherwise, the log host cannot receive
system information.
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 more
information, 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 and defaults
to local7. Logging facility is mainly used to mark different logging sources, query and filer the logs of the
corresponding log source.
Description
Use the info-center loghost command to specify a log host and to configure the related parameters.
1-16

Advertisement

Table of Contents
loading

Table of Contents