package-logfiles
Create a tar archive of log files in
/opt/logs
, backup
configuration, and the
support-info.log
file
to
logs-<date>.tar.gz
.
Syntax
package-logfiles [name <file>.tar.gz] [newer-than <days>] <all>
Arguments
name—Specify the path and name of the saved file. Generally, the files should be saved to /opt. If the system’s hard drive has been formatted with partitions, /mnt may be used instead.
newer-than— Specify a time limit, in days, on the log files to be compressed and saved. This option counts backwards, starting with the current day. Thus the option newer-than 5 would compress and save log files for the past 5 days only.
all—Collect the np-stats info, support-info.log, running configuration, and log files. Use this argument with caution as it may impact system performance.
Note:
If there are a large number of log files, the CPU core that is processing the package-logfile command may show higher load and an alarm. This does not have impact on the system and the system clears the alarm after the process automatically.Mode
Superuser