cleardumps

You can use the cleardumps command to clean the various dumps directories on the node that is in service mode.

Syntax

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

>-- -prefix -- directory_or_file_filter -----------------------><

Parameters

-prefix directory_or_file_filter
Specifies the directory and or files to be cleaned. If a directory is specified, with no file filter, all relevant dump/log files in this directory are cleaned. The allowable directory arguments are:
  • /dumps (cleans all files in all subdirectories, that is, those listed below)
  • /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 /dumps/elogs/*.txt will clean all files in the /dumps/elogs directory that end in .txt.

Description

This command will delete all the files matching the directory/file_filter argument on the node. The node must be in service mode.

This command can be used to clean all the dumps directories by specifying /dumps as the directory argument.

The command can also be used to clean all the files in a single directory by specifying one of the directory arguments listed in the note above.

The command can also be used to clean specific files in a given directory by specifying a directory and filename. The wildcard * can be used as part of the filename although you may need to quote the filename when wildcards are used.

The contents of these directories on the given node can be listed by using the svcservicemodeinfo lsxxxdumps command.

Possible failures

Examples

An invocation example

svcservicemodetask cleardumps -prefix /dumps/configs