cleardumps

Use the cleardumps command to clear (or delete) the various dump directories on a specified node or node canister.

Syntax

cleardumps -prefixdirectory_or_file_filter [ { nodecanister_id | nodecanister_name } ]

Parameters

-prefixdirectory_or_file_filter
(Required) Specifies the directory, files, or both to be cleared. If a directory is specified, with no file filter, all relevant dump or log files in that directory are cleared. You can use the following directory arguments (filters):
  • /dumps (clears all files in all subdirectories)
  • /dumps/cimom
  • /dumps/configs
  • /dumps/easytier
  • /dumps/elogs
  • /dumps/feature
  • /dumps/iostats
  • /dumps/iotrace
  • /dumps/mdisk
  • /home/admin/update
In addition to the directory, you can specify a filter file. For example, if you specify /dumps/elogs/*.txt, all files in the /dumps/elogs directory that end in .txt are cleared.
Note: The following rules apply to the use of wildcards when using the CLI:
  • The wildcard character is an asterisk (*).
  • The command can contain a maximum of one wildcard.
  • With a wildcard, you must use double quotation marks (" ") around the filter entry, such as in the following entry:
    >cleardumps -prefix "/dumps/elogs/*.txt"
nodecanister_id | nodecanister_name
(Optional) Specifies the node canister to be cleared. The variable that follows the parameter is either:
  • The node canister name, that is, the label that you assigned when you added the canister to the clustered system (system)
  • The node canister ID that is assigned to the canister (not the worldwide canister name)

Description

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

You can clear all the dumps directories by specifying /dumps as the directory variable.

You can clear all the files in a single directory by specifying one of the directory variables.

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

You can use this command to clear specific files in a given directory by specifying a directory or file name. You can use the wildcard character as part of the file name.
Note: To preserve the configuration and trace files, any files that match the following wildcard patterns are not cleared:
  • *svc.config*
  • *.trc
  • *.trc.old

An invocation example

cleardumps -prefix /dumps/configs

The resulting output:

No feedback

An invocation example

cleardumps -prefix /dumps/easytier node_2

The resulting output:

No feedback