Справочное Руководство для 3com S7906E

Скачать
Страница из 2327
 
1-15 
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. For a device supporting CF partition, the directory to save a log file is the logfile directory in the 
second partition 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 active/standby switchover of the main control boards. 
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 
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 more 
information, refer to the info-center channel name command.