The Display Hardware Resources (DSPHDWRSC) command is used to display, print, or save in an output file the various types of System Resource Management (SRM) information.
Restriction: The Work with LAN Adapters (WRKLANADPT) command must be run before running this command; otherwise, there is no information to display.
Specifies the type of information that is to be displayed, printed, or written to an output file.
The possible values are:
*AHW
Displays, prints, or directs to an output file the combined contents of all hardware resource records. This includes all *CMN, *CRP, *CSA, *LWS, *PRC, and *STG records.
*CMN
Displays, prints, or writes to an output file the communications resource information. This information consists of the resource name, resource type, serial number, location, status, address, configuration description, and resource description.
*CRP
Displays, prints, or writes to an output file the cryptographic resource information. This information consists of the resource name, resource type, serial number, location, status, address, configuration description, and resource description.
*CSA
Displays, prints, or directs to an output file the coupled adapter resource information. This information consists of resource name, model, status, location, resource description, and the system the adapter is connected to.
*LAN
Displays, prints, or directs token-ring or distributed data interface adapter resource information to an output file. This information consists of the LAN controller adapter address, adapter name, line type, and adapter description.
*LWS
Displays, prints, or writes to an output file the local work station resource information. This information consists of the resource name, resource type, serial number, location, status, address, configuration description, and resource description.
*PRC
Displays, prints, or writes to an output file the processor resource information. This information consists of the resource name, resource type, serial number, location, status, and resource description.
*STG
Displays, prints, or writes to an output file the storage devices resource information. This information consists of the resource name, resource type, serial number, location, status, address, configuration description, and resource description. For fibre channel adapters, the information also includes the worldwide port name, port status, protocol, port speed, and the number of targets detected.
Specifies the name and library of the output file used to store the requested System Resource Management (SRM) data. Only one of the following types of resource information can be stored per output file: *CMN, *CRP, *CSA, *LWS, *PRC, *STG, or *LAN. If the output file does not exist, this command creates a database file in the specified library. If a new file is created, the system uses as a model one of the following file names with one of the following format names, depending on the value specified on the Type prompt (TYPE parameter).
TYPE Parameter Output File Created
Value Output File Format
*CMN QARZDCMN QRZDCMN
*CRP QARZDCRP QRZDCRP
*CSA QARZDCSA QRZDCSA
*LWS QARZDLWS QRZDLWS
*PRC QARZDPRC QRZDPRC
*STG QARZDSTG QRZDSTG
*LAN QARZDTRA QRZDTRA
This parameter is valid only if *OUTFILE is specified on the Output prompt (OUTPUT parameter).
The possible values are:
*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the output file. If no library is specified as the current library for the job, QGPL is used.
library-name
Specify the name of the library where the output file is located.
file-name
Specify the name of the file where the requested information is to be stored.
Specifies the physical file model used to format the output file.
Note: This parameter is not used when TYPE(*LAN) is specified.
The possible values are:
*TYPE1
The format of the output file is the same as that of the physical file models, QARZDCMN, QARZDCRP, QARZDCSA, QARZDLWS, QARZDPRC, and QARZDSTG.
*TYPE2
The format of the output file is the same as that of the physical file model, QARZALLF, and its associated record format model, QRZALL. This value is the functional equivalent of the physical file, QARZHWOF, which was used by the DSPLCLHDW command in releases prior to V3R6M0.
This command places SRM information for storage resources in the output file STG, which is formatted like the physical file model, QARZALLF. If output file STG is located in the library list, the records of its first member are replaced by the new records. If output file STG is not located in the library list, it is created in the current library with first member STG. This member contains the new records.