fw logswitch
Description
Switches the current active
State of a Cluster Member that is fully operational: (1) In ClusterXL, this applies to the state of the Security Gateway component (2) In 3rd-party / OPSEC cluster, this applies to the state of the cluster State Synchronization mechanism. log file:
-
Closes the current active log file.
-
Renames the current active log file.
-
Creates a new active log file with the default name.
|
|
Notes:
|
|
|
Important You can run this command in the Expert mode or in Gaia Clish |
Syntax
|
|
Parameters
|
Parameter |
Description |
||
|---|---|---|---|
|
|
Runs the command in debug mode. Use only if you troubleshoot the command itself.
|
||
|
|
Specifies to switch the active Audit log file ( You can use this parameter only on a Management Server |
||
|
|
Specifies the remote server, on which to switch the log. Notes:
|
||
|
|
Specifies the name of the switched log file. Notes:
|
||
|
|
Specifies to copy the active log from the remote server to the local server. Notes:
|
||
|
|
Specifies to transfer the active log from the remote server to the local server. Notes:
|
Compression
When this command transfers the log files from the remote server, it compresses the file with the gzip command (see RFC 1950 to RFC 1952 for details). The algorithm is a variation of LZ77 method. The compression ratio varies with the content of the log file and is difficult to predict. Binary data are not compressed. Text data, such as user names and URLs, are compressed.
[Expert@MGMT:0]# fw logswitch Log file has been switched to: 2018-06-13_182359.log [Expert@MGMT:0]# |
[Expert@MGMT:0]# fw logswitch -audit Log file has been switched to: 2018-06-13_185711.adtlog [Expert@MGMT:0]# |
[Expert@MGMT:0]# fw logswitch -h MyGW + Log file has been switched to: 2018-06-13_185451.log [Expert@MGMT:0]# [Expert@MGMT:0]# ls $FWDIR/log/*.log /opt/CPsuite-R81.10/fw1/log/fw.log/opt/CPsuite-R81.10/fw1/log/MyGW__2018-06-13_185451.log[Expert@MGMT:0]# [Expert@MyGW:0]# ls $FWDIR/log/*.log /opt/CPsuite-R81.10/fw1/log/fw.log/opt/CPsuite-R81.10/fw1/log/2018-06-13_185451.log[Expert@MyGW:0]# |