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 purgepurges back older versions of PMDF log files. (pmdf purgecan tell which log files are older based on theuniqueidstrings terminating PMDF log file names.)
Specifying
-day=d-day=dresults in purging all but the lastddays 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 24dhours will be purged.Specifying
-hour=h-hour=hresults in purging all but the lasthhours worth of log files.Specifying
-num=n-num=nresults in purging all but the lastnlog 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-*.logfiles in the PMDF log directory.