Print this page
8708 Want diskinfo(1m) to list all disk bays, including those don't have disk installed
   1 DISKINFO(1M)                 Maintenance Commands                 DISKINFO(1M)
   2 
   3 NAME
   4      diskinfo - provide disk device inventory and status
   5 
   6 SYNOPSIS
   7      diskinfo [-Hp] [-c|-P]
   8 
   9 DESCRIPTION
  10      The diskinfo tool provides information about the disk devices in the
  11      system.  Because it interacts with the kernel's device management
  12      subsystem, this tool can be used only from the global zone.  If run in
  13      any other zone, its output will be incomplete and unreliable.
  14 
  15      There are three main modes.  The default mode, when neither the -c nor -P
  16      option is specified, provides a basic inventory of the disk devices in
  17      the system.  Each line describes a single device and contains the
  18      device's attachment bus or fabric type, the base name of the device in
  19      the /dev/dsk directory, the disk's vendor and product identification
  20      strings, the size (storage capacity) of the device, whether the device is
  21      removable, and whether it is solid-state.
  22 
  23      The -P option selects physical mode.  In this mode, each line of output
  24      likewise describes one disk device; however, the fields provided indicate
  25      the base name of the device in the /dev/dsk directory, the disk's vendor
  26      and product identification strings, the serial number of the device,
  27      whether the device is faulty as diagnosed by fmd(1M), whether the locate
  28      or identification indicator is on for the device (if one is present), and
  29      the chassis and bay number containing the disk if known.
  30 
  31      The -c option selects compact mode.  This mode provides all of the
  32      information provided by both the default mode and physical mode in a
  33      compact format.
  34 
  35      See OUTPUT FIELDS below for a detailed description of each column.
  36 
  37 OPTIONS


  38      -c      Select compact mode output.  At most one of -c and -P may be
  39              present on the command line.
  40 
  41      -H      Do not print a header.  This provides output suitable for passing
  42              into text processing tools.
  43 
  44      -P      Select physical mode output.  At most one of -P and -c may be
  45              present on the command line.
  46 
  47      -p      Parsable output.  When -p is selected, the size (storage
  48              capacity) is output in bytes instead of in human-readable units,
  49              and the device's location (if known) is provided as a comma-
  50              separated chassis and bay number instead of a human-readable
  51              location.  This option may be used in any output mode and is
  52              intended for use by scripts or other robotic tooling.
  53 
  54 OUTPUT FIELDS
  55      DISK      The base name of the device node within the /dev/dsk directory.
  56                The names of partitions and/or slices, if any, are derived from
  57                this name as described by prtvtoc(1M).


 109 
 110                This field is available in compact and default output modes.
 111 
 112      SSD       A boolean field indicating whether the device is solid-state.
 113 
 114                This field is available only in default output mode.
 115 
 116      TYPE      The transport (fabric or bus) type by which the storage device
 117                is attached to the host, if known.  Typical transports include
 118                SCSI and USB.
 119 
 120                This field is available in compact and default output modes.
 121 
 122      VID       The vendor identification string reported by the device.
 123 
 124                This field is available in all output modes.
 125 
 126 SEE ALSO
 127      fmd(1M), prtvtoc(1M), sd(7D)
 128 
 129 illumos                          July 20, 2016                         illumos
   1 DISKINFO(1M)                 Maintenance Commands                 DISKINFO(1M)
   2 
   3 NAME
   4      diskinfo - provide disk device inventory and status
   5 
   6 SYNOPSIS
   7      diskinfo [-aHp] [-c|-P]
   8 
   9 DESCRIPTION
  10      The diskinfo tool provides information about the disk devices in the
  11      system.  Because it interacts with the kernel's device management
  12      subsystem, this tool can be used only from the global zone.  If run in
  13      any other zone, its output will be incomplete and unreliable.
  14 
  15      There are three main modes.  The default mode, when neither the -c nor -P
  16      option is specified, provides a basic inventory of the disk devices in
  17      the system.  Each line describes a single device and contains the
  18      device's attachment bus or fabric type, the base name of the device in
  19      the /dev/dsk directory, the disk's vendor and product identification
  20      strings, the size (storage capacity) of the device, whether the device is
  21      removable, and whether it is solid-state.
  22 
  23      The -P option selects physical mode.  In this mode, each line of output
  24      likewise describes one disk device; however, the fields provided indicate
  25      the base name of the device in the /dev/dsk directory, the disk's vendor
  26      and product identification strings, the serial number of the device,
  27      whether the device is faulty as diagnosed by fmd(1M), whether the locate
  28      or identification indicator is on for the device (if one is present), and
  29      the chassis and bay number containing the disk if known.
  30 
  31      The -c option selects compact mode.  This mode provides all of the
  32      information provided by both the default mode and physical mode in a
  33      compact format.
  34 
  35      See OUTPUT FIELDS below for a detailed description of each column.
  36 
  37 OPTIONS
  38      -a      Show all disk bays, including those don't have disks installed.
  39 
  40      -c      Select compact mode output.  At most one of -c and -P may be
  41              present on the command line.
  42 
  43      -H      Do not print a header.  This provides output suitable for passing
  44              into text processing tools.
  45 
  46      -P      Select physical mode output.  At most one of -P and -c may be
  47              present on the command line.
  48 
  49      -p      Parsable output.  When -p is selected, the size (storage
  50              capacity) is output in bytes instead of in human-readable units,
  51              and the device's location (if known) is provided as a comma-
  52              separated chassis and bay number instead of a human-readable
  53              location.  This option may be used in any output mode and is
  54              intended for use by scripts or other robotic tooling.
  55 
  56 OUTPUT FIELDS
  57      DISK      The base name of the device node within the /dev/dsk directory.
  58                The names of partitions and/or slices, if any, are derived from
  59                this name as described by prtvtoc(1M).


 111 
 112                This field is available in compact and default output modes.
 113 
 114      SSD       A boolean field indicating whether the device is solid-state.
 115 
 116                This field is available only in default output mode.
 117 
 118      TYPE      The transport (fabric or bus) type by which the storage device
 119                is attached to the host, if known.  Typical transports include
 120                SCSI and USB.
 121 
 122                This field is available in compact and default output modes.
 123 
 124      VID       The vendor identification string reported by the device.
 125 
 126                This field is available in all output modes.
 127 
 128 SEE ALSO
 129      fmd(1M), prtvtoc(1M), sd(7D)
 130 
 131 illumos                         October 6, 2017                        illumos