Purge PMDF log files.
pmdf purge [file-pattern]
Command Qualifiers Defaults
On UNIX, must have write access to the directory containing the file(s) to be purged.
file-patternA 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 the
uniqueidstrings terminating PMDF log file names.)
-day=dresults in purging all but the last
ddays 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 24
dhours will be purged.
-hour=hresults in purging all but the last
hhours worth of log files.
-num=nresults in purging all but the last
nlog files. The default is
# 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 purge -num=10 /pmdf/log/tcp_local_master.log
This UNIX command will purge all but the last ten versions of any
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 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.