cleardumps

You can use the cleardumps command to clean the various dump directories on a specified node.

Syntax

Read syntax diagramSkip visual syntax diagram>>- svctask -- cleardumps -- ----------------------------------->

>-- -prefix -- directory_or_file_filter -- --+-------------+---><
                                             +- node_id ---+
                                             '- node_name -'

Parameters

-prefix directory_or_file_filter
Specifies the directory, or files, or both to be cleaned. If a directory is specified, with no file filter, all relevant dump or log files in that directory are cleaned. The directory arguments include:
  • /dumps (cleans all files in all subdirectories)
  • /dumps/configs
  • /dumps/elogs
  • /dumps/feature
  • /dumps/iostats
  • /dumps/iotrace
  • /home/admin/upgrade
In addition to the directory, a file filter can be specified. For example, if you specified /dumps/elogs/*.txt all files in the /dumps/elogs directory that end in .txt will be cleaned.
node_id | node_name
Optionally specifies the node to be cleaned. The argument that follows the flag is either:
  • The node name, that is, the label that you assigned when you added the node to the cluster
  • The node ID that is assigned to the node (not the WWNN).

Description

This command deletes all the files that match the directory/file_filter argument on the node specified. If no node is specified, the configuration node is cleaned.

You can clean all the dumps directories by specifying /dumps as the directory argument.

You can clean all the files in a single directory by specifying one of the directory arguments.

You can clean specific files in a given directory by specifying a directory and file name. You can use an asterisk (*) as a wildcard in part of the file name.

You can list the contents of these directories on the given node by using the svcinfo lsxxxxdumps commands.

You can use this command to clean specific files in a given directory by specifying a directory or file name. The wildcard * can be used as part of the file name.

Possible failures

Examples

An invocation example

svctask cleardumps -prefix /dumps/configs

The resulting output

No feedback

Related topics

(C) Copyright International Business Machines Corporation 2003, 2004