lsdrive - List drives

Purpose

List the drive objects defined in the TSLM database. By default, all drive objects are listed. The list is sorted ascending by the name attribute unless another sort order is provided with the generic option -order.

Syntax

lsdrive [drive_name [...] | -lib ID | [-enabled|-disabled]] [-access] [-group ID] [-pcl cartridgePCL]

Parameters

drive_name [...]
Specifies the drive names to be included in the list. Multiple names must be separated with a blank character between each name. Displays all drive objects, if no name is specified.
-enabled
Specifies that only enabled drives are to be included in the list.
-disabled
Specifies that only disabled drives are to be included in the list.
-access
Specifies that only drives which are accessible (for example, not in a "NoAccess" group) are to be included in the list.
-group ID
Specifies the drivegroup for which the drives are to be included in the list.
-lib ID
Specifies the library for which the drives are to be included in the list.
-pcl cartridgePCL
Specifies the PCL of a cartridge to search for the drive where the given cartridge is loaded.

Results

Default tabular output for each application instance listed includes the following information (also serve as the headings for output):
  • Name
  • Library
  • DM
  • PCL
  • DriveGroup
  • Online
  • Disabled
  • Broken

Long output includes:

  • Name
  • Library
  • DM
  • PCL
  • DriveGroup
  • Online
  • Disabled
  • Broken
  • StateSoft
  • StateHard
  • Priority
  • Mounts
  • MountedLast
  • TimeMountedTotal
  • Manufacturer
  • Model
  • SerialNumber

Short output only displays:

  • Name

Examples

lsdrive -lib MyTS3500-001
lsdrive -match "numgt(Drive.\"DriveNumberMounts\" \"100\")"

Related commands