
A. OLCmd Reference
7800-A2-GB32-00
January 2002
A-7
OLCmd clean
The clean command creates archive copies of specified log files and deletes
archived files older than a specified age.
Format:
OLCmd clean
directory extension days
[
new-extension
]
Where:
Example:
The following command moves files in the \opt\pdn\openlane\logs directory named
*.log to *.log_<date>.arc (for example, database.log_2001_05_13.arc) and deletes
any *.arc files older than 7 days.
OLCmd clean logs .log 7
The following command moves files in the \opt\apache\logs directory named *.log
to *.log_<date>admin (for example, jserv.log_2001_05_13admin) and deletes any
*.log_<date>admin files older than 21 days.
OLCmd clean \opt\apache\logs .log 21 admin
directory
Is the directory where the log files reside.
extension
Is the suffix of the log files to be archived.
days
Is the number of days old existing archive files must be for
the clean command to delete them.
new-extension
Is an optional name to be added to the suffix of archived
files. It is also used to identify files to be deleted. If
new-extension is not specified, an extension of .arc is
presumed.
Summary of Contents for OpenLane SLM 5.5
Page 1: ...OpenLane SLM 5 5 Administrator s Guide Document No 7800 A2 GB32 00 January 2002...
Page 22: ...2 Installing OpenLane on Solaris 2 12 January 2002 7800 A2 GB32 00...
Page 34: ...3 Installing OpenLane on Windows 3 12 January 2002 7800 A2 GB32 00...
Page 46: ...5 Apache User Access Authentication 5 4 January 2002 7800 A2 GB32 00...
Page 64: ...7 OpenLane Maintenance 7 12 January 2002 7800 A2 GB32 00...
Page 70: ...8 Building and Using a Firmware Library 8 6 January 2002 7800 A2 GB32 00...
Page 104: ...A OLCmd Reference A 34 January 2002 7800 A2 GB32 00...
Page 108: ...B Using XML to Produce Reports B 4 January 2002 7800 A2 GB32 00...