Configuring the Remote Host Address for Log Transfer

Configure the remote host address for log transfer. The system transfers the current log file to a remote host after the log file size reaches the maximum size.

Before you begin

  • The IP address you configure for the remote host must be reachable at the time of configuration.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure the remote host address for log transfer:

    logging transferFile {1-10} address {A.B.C.D} [filename—prefix WORD<0–200>]

Example

Switch:1(config)# logging transferFile 1 address 192.0.2.10

Variable Definitions

The following table defines parameters for the logging transferFile command.

Variable

Value

1–10

Specifies the file ID to transfer.

address {A.B.C.D}

Specifies the IP address of the host to which to transfer the log file. The remote host must be reachable or the configuration fails.

filename-prefix WORD<0–200>

Specifies the name of the file on the remote host. If you do not configure a name, the current log file name is the default.