Previous | Contents | Index |
Purge PMDF log files.
pmdf purge [file-pattern]
Command Qualifiers Defaults -day=
valueNone -hour=
valueNone -num=
value-num=5
On UNIX, must have write access to the directory containing the file(s) to be purged.
file-pattern
A file name pattern for which PMDF log files to purge. The default, if no file name pattern is specified, is to purge all the files in the PMDF log directory. Note that when specifying purging a particular sort of log file, the entire file path must be specified.
pmdf purge
purges back older versions of PMDF log files. (pmdf purge
can tell which log files are older based on theuniqueid
strings terminating PMDF log file names.)
Specifying
-day=
d-day=d
results in purging all but the lastd
days worth of log files. Note that here "day" means a 24 hour period, rather than a calendar day (midnight to midnight); i.e., all but the log files created in the last 24d
hours will be purged.Specifying
-hour=
h-hour=h
results in purging all but the lasth
hours worth of log files.Specifying
-num=
n-num=n
results in purging all but the lastn
log files. The default is-num=5
.
# pmdf purge |
This UNIX command will purge all but the last five versions of each sort of log file in the PMDF log directory,
/pmdf/log
.
# pmdf purge -num=10 /pmdf/log/tcp_local_master.log |
This UNIX command will purge all but the last ten versions of any
/pmdf/log/tcp_local_master.log-*
files.
C:\> pmdf purge |
This NT command will purge all but the last five versions of each sort of log file in the PMDF log directory, usually
C:\pmdf\log
.
C:\> pmdf purge -num=10 /pmdf/log/tcp_local_master.log |
This NT command will purge all but the last ten versions of any
tcp_local_master-*.log
files in the PMDF log directory.
Previous | Next | Contents | Index |