The cleardumps command cleans the various dump directories
on the node that is in service mode.
Syntax

>>- svcservicemodetask -- --cleardumps-- ----------------------->
>-- -prefix -- directory_or_file_filter -- --------------------><
Parameters
- -prefix directory_or_file_filter
- (Required) Specifies the directory, 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. You can use the following
directory arguments (filters):
- /dumps (cleans all files in all subdirectories)
- /dumps/configs
- /dumps/elogs
- /dumps/feature
- /dumps/iostats
- /dumps/iotrace
- /dumps/mdisk
- /home/admin/upgrade
In addition to the directory, you can specify a file filter.
For example, if you specify /dumps/elogs/*.txt, all
files in the /dumps/elogs directory that end in .txt are
cleaned.
Note: The following rules apply to the use of wildcards with the
SAN Volume Controller CLI:
Description
This
command deletes all the files that match directory_or_file_filter value
for the node that is in service mode.
You can clean all the
dumps directories by specifying /dumps as the directory value.
You
can clean all the files in a single directory by specifying one of
the directory values.
You can list the contents of these directories
on the given node by using the svcservicemodeinfo lsxxxxdumps commands.
You
can use this command to clean specific files in a given directory
by specifying a directory or file name. You can use the wildcard (*)
as part of your file name.
Note: To preserve the configuration
and trace files, any files that match the following wildcard patterns
are not cleaned:
- *svc.config*
- *.trc
- *.trc.old
An invocation example
svcservicemodetask cleardumps -prefix /dumps/configs
The
resulting output
No feedback