setdisktrace

You can use the setdisktrace command to set a list of disks of a given type to include in a disk trace.

Syntax

Read syntax diagramSkip visual syntax diagram>>- svctask -- -- setdisktrace -- -- -type --+- mdisk -+-- ----->
                                             '- vdisk -'

>--+- -set ---+-- --+- all -----------------------+------------><
   '- -reset -'     '- -objectid id_or_name_list -'

Parameters

-type mdisk | vdisk
Specifies the object type for the disks.
-set
Specifies the set argument. The -set and -reset arguments are mutually exclusive.
-reset
Specifies the reset argument. The -set and -reset arguments are mutually exclusive.
-all
Specifies that you want to trace all disks of the given type. The -objectid and -all arguments are mutually exclusive.
-objectid id_or_name_list
Specifies a list of one or more disk IDs or names. The -objectid and -all arguments are mutually exclusive.

Description

This command marks a list of one, more, or all disks of the given type such that these disks will participate in the next triggered trace.

This is used in conjunction with the svctask settrace command which sets the options that result in a trace file being generated, and the data that is included in the trace file.

Possible failures

Examples

An invocation example

svctask setdisktrace -type mdisk -objectid
mdisk1:mdisk3:mdisk11:mdisk10:mdisk9:mdisk5 -reset