Cisco Cisco ASR 5700
Exec Mode Commands (D-S)
save logs ▀
Command Line Interface Reference, StarOS Release 17 ▄
4163
from_date_time
and
to_date_time
must be formatted as YYYY:MM:DD:HH:mm or
YYYY:MM:DD:HH:mm:ss. Where:
YYYY = 4-digit year
MM = 2-digit month in the range 01 through 12
DD = 2-digit day in the range 01 through 31
HH = 2-digit hour in the range 00 through 23
mm = 2-digit minute in the range 00 through 59
ss = 2 digit second in the range 00 through 59
to_date_time
must be a time which is more recent than
from_date_time
.
Using the
until
keyword allows for a time range of log information; using only the
since
keyword will
display all information up to the current time.
grep grep_options
|
more
Pipes (sends) the output of this command to the specified command. You must specify a command to which
the output of this command will be sent.
For details on the usage of
the output of this command will be sent.
For details on the usage of
grep
and
more
, refer to the Regulating a Command’s Output section of the
Command Line Interface Overview chapter in Command Line Interface Reference.
Usage
Backup the current log file as part of periodic maintenance activities.
Example
The following saves the log to the local file
/flash/pub/junelogs.logs
with no confirmation from the
user:
save logs /flash/pub/junelogs.logs -noconfirm
The following saves the configuration data to remote host
remoteABC
as
/pub/junelogs.logs
:
save logs tftp://remoteABC/pub/junelogs.logs