R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
97
View
System view
Default level
2: System level
Parameters
dir-name: Specifies a directory by its name, a string of 1 to 64 characters.
Description
Use info-center logfile switch-directory to specify the directory where a log file is saved. The specified
directory must have been created.
By default, a log file is saved in the logfile directory under the root directory of the storage device.
This command is used for log file backup or transition and it cannot survive a system restart.
The following matrix shows the command and firewall compatibility:
Command F1000-A-EI/S-EI
F1000-E
F5000 Firewall module
info-center logfile
switch-directory
No Yes Yes Yes
Examples
# Create a directory test under flash 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
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 }
View
System view
Default level
2: System level
Parameters
vpn-instance vpn-instance-name: Specifies an VPN by its name, a case-sensitive string of 1 to 31
characters. If the log host is on the public network, do not specify this option.
ipv6 host-ipv6-address: Specifies the IPv6 address of a log host.
host-ipv4-address: Specifies the IPv4 address of a log host.