PMDF System Manager's Guide


Previous Contents Index


purge

Purge PMDF log files.

Syntax

pmdf purge [file-pattern]

Command Qualifiers Defaults
-day=value None
-hour=value None
-num=value -num=5

restrictions

On UNIX, must have write access to the directory containing the file(s) to be purged.

Parameters

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.

Description

pmdf purge purges back older versions of PMDF log files. (pmdf purge can tell which log files are older based on the uniqueid strings terminating PMDF log file names.)


Command Qualifiers

-day=d

Specifying -day=d results in purging all but the last d 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.

-hour=h

Specifying -hour=h results in purging all but the last h hours worth of log files.

-num=n

Specifying -num=n results in purging all but the last n log files. The default is -num=5.

EXAMPLES


# 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