Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

SHOW-DISK-STATUS

&pagelevel(3)&pagelevel

Show information about assignment, DISK parameters and monitoring of disks

Component:

BS2000

Functional area:

Device management

Domain:

DEVICE

Privileges:

STD-PROCESSING
HARDWARE-MAINTENANCE
OPERATING
SW-MONITOR-ADMINISTRATION

Routing code:

E

Function

The SHOW-DISK-STATUS command provides information relating to the assignment, disk parameters and volume monitoring of the specified disks. The VSN of the disk can also be specified using a wildcard. The information displayed refers to the reserving disk, irrespective of which volume is physically online (in contrast to SHOW-DEVICE-STATUS). Nonprivileged users are shown information only on private disks on which their own jobs have reserved space.

The various output fields and their functions are described in section "Information services of device management: Meanings of the output values of SHOW commands".

The command supports structured output in S variables (see "Output in S variables").

Privileged functions

System support staff are supplied with information for all devices. If they select *TASK or *SYSTEMS with the INFORMATION operand they are shown all the available information. 

Format

SHOW-DISK-STATUS

UNIT = *SELECT (...) / *VOLUME(...) / list-poss(26): <alphanum-name 2..2 with-wild(20)> /

<alphanum-name 4..4 with-wild(20)>


*SELECT(...)



|

ATTRIBUTE = *ALL / *FREE / *EXCLUSIVE / *SHARE / *PUBLIC / *ONLINE / *MOUNTING /



|

*IN-USE / *CANCELLED / *NO-DEVICE / *RECOVER / *DMS / *SPECIAL /



|

*DISMOUNT / *UNLOCK / *SVL-UPDATE / *STD / *NON-STD / *BS1000


*VOLUME(...)



|

VOLUME = list-poss(10): <vsn 1..6> / <alphanum-name 1..6 with-wild(30)>

,INFORMATION = *STD / *PARAMETER / *TASK / *SYSTEMS / *ALL

Operands

UNIT = *SELECT(...) / *VOLUME(...) /list-poss(26): <alphanum-name 2..2 with-wild(20)> /
<alphanum-name 4..4 with-wild(20)>
Selection of disks by attributes, volume serial numbers or the mnemonic (two- or four-character) device name of the device on which the disk is mounted. At most 26 mnemonic device names are permitted.
Mnemonic device names that cannot be generated are handled like non-generated devices.

UNIT = *SELECT(...)
Selection by attributes.

ATTRIBUTE =
Information is output for the disks with the specified attribute.

ATTRIBUTE = *ALL
Information is output for all specified disks.

ATTRIBUTE = *FREE / *EXCLUSIVE / *SHARE / *PUBLIC / *ONLINE / *MOUNTING / *IN-USE / *CANCELLED / *NO-DEVICE / *RECOVER / *DMS / *SPECIAL / *DISMOUNT / *UNLOCK / *SVL-UPDATE / *STD / *NON-STD / *BS1000
Default information is output for all disks with the specified attribute.
Possible specifications:

Operand value (device attribute)

Meaning

*ALL

any attribute


volume-allocation-state

*FREE

free

*EXCL[USIVE]

exclusively reserved

*SHARE

shareable


device-allocation-state

*PUB[LIC]

public


volume-phase

*ONLINE

mounted, but not assigned

*MOUNTING

waiting for operator answer

*IN-USE

assigned


action-state

*CAN[CELLED]

permanently locked

*NO-DEV[ICE

no device assignment

*REC[OVER]

interrupt handling

*DISMOUNT

REMOUNT or MOUNT message still pending

*UNLOCK

UNLOCK job being executed

*SVL-UPD[ATE]

system occupancy log being stored


use-mode

*DMS

occupied by DMS application

*SPECIAL

occupied by special application


label-type

*STD

standard labels

*N[ON]-STD

nonstandard labels

*BS1000

BS1000 labels

UNIT = *VOLUME(...)
Specifies the volume serial numbers of the disks for which information is to be output.

VOLUME = list-poss(10): <vsn 1..6> / <alphanum-name 1..6 with-wild(30)>
Specifies the volume serial numbers (VSN, up to 6 characters) of the disks for which information is to be output.
A maximum of 10 VSNs can be specified.
With certain restrictions, wildcard characters may also be used in the volume serial numbers; an asterisk “*” may be specified in place of any character string. If two or more asterisks are entered, they must be separated in each case by at least one character.

UNIT = list-poss(26): <alphanum-name 2..2> / <alphanum-name 4..4>
Lists up to 10 disks for which information is to be output.

INFORMATION =
Type of information to be displayed. This operand is only evaluated if device names or volume serial numbers (UNIT or VOLUME operand) are used to select the disks. If ATTRIBUTE is specified, only INFORMATION=*STD is possible.

INFORMATION = *STD
For each private disk occupied by the task, a record is displayed with global occupancy and monitoring information (e.g. access by START-PROGRAM to a program on private disk).

INFORMATION = *PARAMETER
Parameters set with the SET-DISK-PARAMETER or SET-DISK-DEFAULTS command are displayed. Parameter values set with SET-DISK-DEFAULTS are marked with “(D)”. Output is independent of occupancy by the task.
No information can be requested for public disks with this operand.

INFORMATION = *TASK
For nonprivileged users, INFORMATION = *STD applies.
A list of the TSNs that are occupying this disk in DMS usage mode is displayed.

INFORMATION = *SYSTEMS
For nonprivileged users, only the first line for the disks occupied by them is displayed.
A list of systems occupying this disk is displayed.

INFORMATION = *ALL
For nonprivileged users, only STD, PARAMETER and SYSTEMS information is displayed.
Displays all four output records for the specified disks (*STD, *PARAMETER, *TASK, and the second output line of *SYSTEMS). 

Return codes

(SC2)

SC1

Maincode

Meaning


0

CMD0001

No error

2

0

NKD0005

Warning: information incomplete

2

0

NKD0030

Warning: INFORMATION parameter changed


1

NKD0001

Syntax error in the input, correction of the command parameters recovers the error


1

NKD0013

Syntax error in SHOW-DISK-STATUS


64

NKD0002

No information available


64

NKD0005

No information available for MN list


64

NKD0006

Software error in NKDDISC procedure


64

NKD0032

No information available for ATTRIBUTE

4

130

NKD0010

The disk monitor is temporarily not available; try again later

Output formats

The output shows a header line followed by one values line for each disk specified. Five display formats are possible, depending on the entry made in the INFORMATION operand.

The meaning of the output columns and possible values are explained in section "Information services of device management: Meanings of the output values of SHOW commands".

1. Standard output record (INFORMATION=*STD)
Header line
MNEM  VSN   USE            DEV-A       VOL-A        PHASE    ACTION
Values
mn    vsn   use            device      volume       volume   action
            mode           allocation  allocation   phase    state
                           state       state

Note

The distinction between PAGING and PUBLIC assignments (dynamic paging area modification) also affects information columns DEV-A and VOL-A. The meanings of the possible combinations of values in these two columns are as follows:

DEV-A

VOL-A

Meaning

PUBLIC

PUBLIC

The disk is imported and is not used for PAGING.

PUBLIC

PAGING

The disk is imported and is used for PAGING.

PAGING

PAGING

The disk is used exclusively for PAGING.

PUB-DRV

PAGING

The disk is imported as a DRV volume and is used for PAGING.

DRV-PAG

PAGING

The disk is used for PAGING in DRV mode.

DRV-PAG


The matching second disk of a DRV pair is used for PAGING in DRV mode.

DMS-PAG

SHARE

The disk is used for PAGING and is also shareable for tasks.

2. Output record for INFORMATION=*PARAMETER
Header line
ALLOC VSN   TYPE    SYS-ALLOC   ASS-TIME   USER-ALLOC   OP-CTL    ACCESS
Values
<Y/N> vsn   device  system      assign     user         operator  access
            type    allocation  time       allocation   access    mode
                    mode                   type         control

3. Output record for INFORMATION=*TASK
Header line
MNEM   VSN  TSN ́S
Values
mn     vsn  tsn,tsn,...
4. Output record for INFORMATION=*SYSTEMS
Header line 1
MNEM  VSN             TIME-STAMP  SVL-RECORDING-MODE
Values
mn    *vsn            time-stamp  svl-recording-mode
Header line 2
MNEM  VSN   #PHYS-HALF-PAGES      PAMKEY/FRMT
Values
mn    *vsn  #php                  pamkey/format
Header line 3  (privileged users only)
MNEM  VSN   VTOC-SYS              SVL-ALLOC                  SYSTEMS
Values
mn    *vsn  vtoc-sys              system allocation mode     sys-id[,...]

where:

format

=

disk format (2K or 4K)

time stamp

=

yyyy-mm-dd hh:mm:ss (time of last occupancy of the disk)

vtoc-tsn

=

designates the task in the user’s own system that is locking or wishes to lock the VTOC of the disk, but has not yet successfully completed the SVL I/O operation.

vtoc-sys

=

System ID of the system that is occupying the VTOC of the disk. In this phase, no VTOC operations by other systems are possible.

Notes

  • Nonprivileged users are shown no information for public disks if they specify INFORMATION=*PARAMETER or *ALL.
    Privileged users are shown no information if they specify INFORMATION=*PARAMETER or *TASK and are shown information only for *STD and *SYSTEMS if they specify INFORMATION=*ALL.

  • If more than one disk with the same VSN exists within one system, only one record is displayed if INFORMATION=*PARAMETER or *TASK or *SYSTEMS is specified.

  • A VSN may appear in two or more output records: For all devices on which the volumes are also physically available.

  • MNs or VSNs which cannot be generated are handled like unknown MNs or VSNs. If VSNs are specified which are not known to the system at present, “empty” records containing only VSN and “NO ACTION” are returned. Only when “*” is specified in the VSN operand are no records output for unknown VSNs.

Examples

Example 1: Output for private disk with INFORMATION=*PARAMETER

/show-disk-sta *vol(work01),inf=*par

%  ALLOC VSN    TYPE    SYS-ALLOC ASS-TIME USER-ALLOC OP-CTL ACCESS
%   Y   WORK01 D3435     EXCL    OPERATOR   SHARE     NO     WRITE
Example 2: Output for private disk with INFORMATION=*SYSTEM

/show-disk-sta *vol(work01),inf=*sys

%  MNEM VSN        TIME-STAMP      SVL-RECORDING-MODE
%  B156 WORK01 2017-02-27 07:04:09 SRV
Example 3: Output for private disk with INFORMATION=*ALL and device reservation information

/show-disk-sta *vol(work01),inf=*all

%  MNEM VSN     USE    DEV-A    VOL-A    PHASE    ACTION
%  B156 WORK01  DMS     DMS    SHARE    IN-USE  NO ACTION
%  ALLOC VSN    TYPE    SYS-ALLOC ASS-TIME USER-ALLOC OP-CTL ACCESS
%   Y   WORK01 D3435     EXCL    OPERATOR   SHARE     NO     WRITE
%  MNEM VSN        TIME-STAMP      SVL-RECORDING-MODE
%  B156 WORK01 2017-02-27 07:04:09 SRV

/show-res-alloc

%  MNEM  TYPE     VSN     VOL-A  TSN  NAME/ID    PHASE    ACTION
%  B156 D3435    WORK01   SHARE  3QLJ ALF        IN-USE  NO ACTION 

Output in S variables

The INFORMATION operand identifies the S variables which are to be created. The following values are possible for INFORMATION: *STD/*PARAMETER/*TASK/ *SYSTEMS/*ALL:

Output information

Name of the S variable

T

Contents             

Condition

Read or write access to data on the disk

var(*LIST).ACCESS

S

''
WRITE
ALL

INF=PAR

Mount operation being performed for the disk from the volume monitoring system

var(*LIST).ACTION

S

''
*CANCEL
*DISMOUNT
INOP
*MOUNT
NO-ACTION
*NO-DEV
*PREMOUNT
REMOUNT
*RECOVER
SNATCHED
*SVL-UPDATE
*UNLOCK
WP-MISSING

INF=STD

Disk is allocated

var(*LIST).ALLOC

S

Y
N

INF=PAR

Time of device assignment/release
If “(D)” is appended, the data has been taken from the disk defaults

var(*LIST).ASS-TIME

S

''
*OPER
*USER

INF=PAR

Date of last disk allocation

var(*LIST).DATE

S

''
<yyyy-mm-dd>

INF=SYS

Type of device allocation

var(*LIST).DEV-ALLOC

S

''
*DMS
DMS-DRV
DMS-PAGING
*DRV
DRV-PAGING
*FREE
PAGING
PUB-DRV
*PUBLIC

INF=STD

A REMOUNT or MOUNT message is pending for the DISMOUNT volume on this device

var(*LIST).DISMOUNT-ACTION

S

''
*DISMOUNT

INF=STD

DISMOUNT volume

var(*LIST).DISMOUNT-VOL

S

''
<vsn>

INF=STD

Mnemnonic of the corresponding DRV unit

var(*LIST).DRV-UNIT

S

''
<mnemo-name>

INF=TASK

Disk format

var(*LIST).FORM

S

''
2KB
4KB

INF=SYS

Inconsistency indicator in SVL (Standard Volume Lable)

var(*LIST).INCONS

S

YES
NO

INF=SYS

Disk capacity in PAM pages (PHP: physical half pages)

var(*LIST).NUM-OF-PHP

S

<number-of-php>

INF=SYS

Amount of information for the operator about new disk allocations for tasks
If “(D)” is appended, the data has been taken from the disk defaults

var(*LIST).OPER-CONTR

S

''
*ALL
*EXCL
*NO
*SHARE
*STD

INF=PAR

Use of the PAM key allowed

var(*LIST).PAM-KEY

S

''
NO
YES

INF=SYS

Disk monitoring mode

var(*LIST).PHASE

S

''
*IN-USE
*MOUNT
*ONLINE
*PREMOUNT
RAID1-SUB
RAID5-SPARE

INF=STD

Recording mode last used for the disk

var(*LIST).REC-MODE

S

''
*DRV
*SRV 

INF=SYS

Actual disk allocation mode

var(*LIST).SVL-ALLOC

S

''
*EXCL
*SHARE

INF=SYS

Disk operating mode for the system

var(*LIST).SYS-ALLOC

S

''
*ALL
*EXCL
EXCL(A)
*SHARE
SHARE(A)

INF=PAR

System ID

var(*LIST).SYSID(*LIST)

S

''
<sys-id>

INF=SYS

Time of last allocation

var(*LIST).TIME

S

''
<hh:mm:ss>

INF=SYS

TSN of the task

var(*LIST).TSN(*LIST)

S

''
<tsn>,<tsn>,...

INF=TASK

Device type from which the information is retrieved

var(*LIST).TYPE

S

''
<dev-type>

INF=PAR

Device unit mnemonic

var(*LIST).UNIT

S

''
<mnemo-name>

INF=TASK/
STD/SYS

Usage mode in which the mounted volume is to be operated

var(*LIST).USE

S

''
*DMS
*SPECIAL
*WORK

INF=STD

Type of disk allocation request the user is allowed to make.
If “(D)” is appended, the data has been taken from the disk defaults

var(*LIST).USER-ALLOC

S

''
*ALL
*EXCL
*NO
*SHARE

INF=PAR

VSN of the private disk

var(*LIST).VOL

S

''
<vsn>


Mounted disk type

var(*LIST).VOL-ALLOC

S

''
*CANCEL
*EXCL
*FREE
*PAGING
*PUBLIC
*SHARE

INF=STD

System ID of the system currently holding the VTOC lock for the disk

var(*LIST).VTOC-SYS

S

''
<vtoc-sys>

INF=SYS