To archive 1588 logs to a specific TFTP server or a specific server by SCP, use the logging 1588-archive command.
logging
1588-archive
<from_date>
<to_date>
{
tftp
server_ip
dir
|
local
}
logging
1588-archive
<from_date>
<to_date>
{
scp
server_ip
user
dir
|
local
}
Syntax Description
<from_date> <to_date>
|
Date-range for archiving logs.
|
server_ip
|
IP address of the TFTP or the SSH server.
|
dir
|
TFTP directory or the SSH user directory.
|
user
|
SSH username.
|
local
|
Creates the archive file and saves it in RPD.
|
Command History
Release |
Modification |
Cisco 1x2 / Compact Shelf RPD Software 2.1 |
This command was introduced.
|
Usage Guidelines
Specify the date-range for archiving logs using the logging 1588-archive <from_date> <to_date> [scp|tftp|local]
command. This command helps in controlling the size of the log archive.
This example shows how to archive logs within the specified date-range:
R-PHY#logging 1588-archive 2020-07-10 2020-07-20 local
This example shows how to configure archiving 1588 logs through TFTP:
R-PHY#logging 1588-archive tftp 11.1.1.10 .
Wait for archiving 1588 logs
Wait for upload archive to server. It would take 3 minutes or more.
RPD logs will be saved in 11.1.1.10:$TFTP_DIR/./RPD_1588_badbad135dcc_LOG_2019-05-08_07_03_17_579229.tar.gz
[Done]
This example shows how to configure archiving 1588 logs through SCP:
R-PHY#logging 1588-archive scp 11.1.1.10 root /tftpboot/
Wait for archiving 1588 logs
Wait for upload archive to server. It would take 3 minutes or more.
RPD logs will be saved in root@11.1.1.10:/tftpboot/RPD_1588_badbad135dcc_LOG_2019-05-08_07_04_11_472901.tar.gz
Host '11.1.1.10' is not in the trusted hosts file.
(ssh-rsa fingerprint sha1!! 93:c8:69:a1:3b:c5:bb:eb:7a:e9:03:f7:37:a5:95:66:25:c5:c1:0f)
Do you want to continue connecting? (y/n) y
root@11.1.1.10's password:
RPD_1588_badbad135dcc_LOG_2019-05-08_07_04_11_472901.tar.gz 100% 29 0.0KB/s 00:00
This example shows how to create the archive file and store in RPD:
R-PHY#logging 1588-archive local
Please wait, archiving...
Created archive: /rpd/archive/RPD_1588_badbad13ac3e_LOG_2019-08-28_12_00_01_381305.tar.gz
Created archive: /rpd/archive/1588_running_log.tar.gz
[Done]