bstnA6k(cfg)# exit
bstnA6k# collect state ftp://ftp.acopia.com/sys-state.tgz
Collect diagnostic information? [yes/no] yes
% INFO: The copy command completed successfully.
bstnA6k# ...
Collecting Logs within a Time Frame
CLI Maintenance Guide
For example, the following command exits from gbl mode to priv-exec mode, then
sends state information to ftp.acopia.com:
You can specify a time frame for log-file collection, so that the CLI collects only the
logs from a certain time. You can use this option to focus on an eventful time period:
collect logs [start-time start [utc]] [end-time end [utc]] destination
[async]
where you can choose a start and/or end time for the collected logs:
start-time start [utc] (optional) establishes a start time. If omitted, the
command collects all of its logs up to the end-time.
•
start is a date and time. Enter this in one of two formats:
mm/dd/yyyy:HH:MM:SS (designed for manual entry) or
yyyy-mm-ddTHH:MM:SS (the time format found in the log files).
•
utc (optional) indicates that the start is UTC instead of local time.
Without this, the start is assumed to be in local time, as established by
the
clock timezone
from a log file. (All time stamps in the log files are in UTC.)
end-time end [utc] (optional) establishes an end time for the collected logs.
If omitted, the command collects all of its logs after the start-time. This has
the same options as described above.
destination is either a local filename or any of the upload formats described
above.
async (optional) makes the collection process asynchronous.
Collecting Diagnostic Information
command. This is intended for a copy-and-paste
Troubleshooting Tools
6-43