lsdriveprogress

Use the lsdriveprogress command to view the progress of various drive tasks.

Syntax

lsdriveprogress   [  -nohdr  ]   [  -delim  delimiter  ]   [  -filtervalue  attribute=value  ]   [  -filtervalue?  ]   [ drive_id ]

Parameters

-delimdelimiter
(Optional) By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. The -delim parameter overrides this behavior. Valid input for the -delim parameter is a 1-byte character. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
-filtervalueattribute=value
(Optional) Specifies a list of one or more filters. Only objects with a value that matches the filter attribute value are displayed.
Note: Some filters allow the use of a wildcard when you enter the command. The following rules apply to the use of wildcards with the Lenovo Storage V series CLI:
  • The wildcard character is the asterisk (*).
  • The command can contain a maximum of one wildcard.
  • When you use a wildcard, enclose the filter entry within double quotation marks (""), as follows:
    lsdriveprogress -filtervalue "task=*"
-filtervalue?
(Optional) Displays the valid filter attributes for the -filtervalueattribute=vaule parameter:
  • task
drive_id
(Optional) The drive for which you want to view progress.

Description

The following outputs are possible:
drive_id
Indicates the ID for the drive with the active task.
task
Indicates the type of task:
  • format
  • certify
  • recover
progress
Indicates the percentage completion for a job.
estimated_completion_time
Indicates the estimated completion time, in the format YYMMDDHHMMSS, where:
  • Y is year
  • (The first) M is month
  • D is day
  • H is hour
  • (The second) M is minute
  • S is second
.

An invocation example

lsdriveprogress -delim :

The resulting output:

drive_id:task:progress:estimated_completion_time
0:format:10:091118131056
9:certify:25:991231235959

An invocation example

lsdriveprogress -delim : 9 

The resulting output:

9:certify:25:991231235959