archive-mode

This command specifies an archival behavior for file-based logs.

Syntax

archive-mode { rotate | upload }

Parameters

rotate
Specifies that when a log file reaches its maximum size, the log is rotated as specified by the rotate command. This setting is the default value.
upload
Specifies that when a log file reaches its maximum size, the file is uploaded to a specified site for remote storage.

Guidelines

The archive-mode command is required when the log type is file. Otherwise, it is ignored.

After you set the upload mode, you must use the remote-address, remote-directory, remote-login, and upload-method commands to enable transfer of the log file to the remote site.

Examples

  • Set the archive type to upload.
    # archive-mode upload
    
  • Set the archive type to rotate, which restores the default state.
    # archive-mode rotate