R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
215
Examples
# Set the maximum storage space reserved for a log file to 6 MB.
<Sysname> system-view
[Sysname] info-center logfile size-quota 6
info-center logfile switch-directory
Use info-center logfile switch-directory to configure the directory where a log file is saved.
Syntax
info-center logfile switch-directory dir-name
Default
A log file is saved in the logfile directory under the root directory of the storage device.
Views
System view
Default command level
2: System level
Parameters
dir-name: Specifies a directory by its name, a string of 1 to 64 characters.
Usage guidelines
The specified directory must have been created.
The configuration made by this command cannot survive a system restart or an active/standby
switchover.
Examples
# Create a directory with the name test under root directory cfa0.
<Sysname> mkdir test
%Created dir cfa0:/test.
# Set the directory to save the log file to cfa0:/test.
<Sysname> system-view
[Sysname] info-center logfile switch-directory cfa0:/test
info-center loghost
Use info-center loghost to specify a log host and configure output parameters.
Use undo info-center loghost to restore the default.
Syntax
info-center loghost { ipv6 host-ipv6-address | [ vpn-instance vpn-instance-name ] host-ipv4-address }
[ port port-number ] [ channel { channel-number | channel-name } | facility local-number ] *
undo info-center loghost { ipv6 host-ipv6-address | [ vpn-instance vpn-instance-name ]
host-ipv4-address }