Command reference / sys

VRYCFG

Vary Configuration

The Vary Configuration (VRYCFG) command varies on or off one or more configuration objects, with the capability of also varying on the downline attached configuration objects. The VRYCFG command also optionally resets the input/output processor (IOP) associated with the specified object. The configuration objects that can be varied on or off are network server descriptions, lines, controllers, and devices. This command applies to all lines, controllers and devices on the system. For the configuration object type of media library resource, this command can be used to reset the drives within a tape media library device or change the allocation of drives within a tape media library device or an optical media library device. To determine the current allocation of drive resources, use the Work with Media Library Status (WRKMLBSTS) command. Downline attached objects can be varied on or off along with the specified object by specifying the value *NET for the Range (RANGE) parameter. Downline attached objects of a line are all the attached controllers and all the devices attached to the controllers. Downline attached objects of a controller are all the attached devices. Devices do not have downline attachments. The RANGE parameter has no affect when varying devices. Varying on lines synchronously or asynchronously can be controlled by the Vary on wait (VRYWAIT) parameter. This applies only to Ethernet, BSC, and Async line descriptions. The value specified for the VRYWAIT parameter determines how long the system will wait until either the object goes to varied on before completing the vary on command, or until the timer expires. The VRYCFG command can also be used to reset input/output processors. An IOP can be a communications controller, a local work station controller, or a magnetic media controller. An IOP reset is valid only when the following are being varied on: Communications controllers Lines Local work station controllers Tapes A network server description of type *ISCSI cannot be varied on: Until the Network Server Host Adapter Device Description is varied on. A line cannot be varied on: Until the Network Server Description is varied on. Until a dial connection has been completed, in the case of switched lines. A controller cannot be varied on: If the line to which it is attached is varied off, in the case of nonswitched lines. Until a dial connection has been completed, in the case of switched lines. A device cannot be varied on: If the controller to which it is attached is varied offline. In the case of some tape devices, they are not attached to a controller, so this restriction does not apply. A network server description cannot be varied off: Until all attached devices and controllers are varied off. Varying off the network server description also varies off the attached line descriptions. Note: Use the Work with Network Service Status (WRKNWSSTS) command (available from Work with Configuration Status display) to determine the status of network server sessions with other clients. A line cannot be varied off: Until all the attached controllers and devices are varied off. A controller cannot be varied off: If it is being used, or is allocated for use. Until all the attached devices are varied off. A device cannot be varied off: If it is being used, or is allocated for use. A network server host adapter device cannot be varied off: If any network server description that is using it is varied on. When the RANGE parameter is used: For devices: The value *NET to vary on or off downline attached objects has no effect. Devices do not have downline attached objects. For switched lines: The value *NET, only when varying on, has no effect. The value *NET, when varying off, will vary off the line and its downline attached objects. When the VRYWAIT parameter is used: The time to vary on a line is the time it takes to put tasks in place to manage the line, the time to activate the communications I/O processor (IOP), including download of the IOP program, the time to establish communications with the data circuit-terminating equipment (DCE), and so on. Line vary on time does not include telephone dialing time; however, a powered off modem may prevent vary on completion and cause the wait time to expire. If the timer expires, an informational message will be sent to the QSYSOPR message queue. This will be followed by the vary on completion message. If the VRYWAIT parameter is specified on the VRYCFG command for a line description that is not Ethernet, or switched BSC, or Async, the parameter is accepted but ignored.

Allowed environments: *ALL. Positional parameters: 3.

Parameters

CFGOBJ Configuration object

Specifies the configuration objects to be varied. This is a required parameter.

Type
*GENERIC
Required
Yes
Length
10
List limit
256
Case
Uppercase

Suggested / special values: *APPN, *PRVCFGTYPE

*APPN
All objects that use Advanced Peer-to-Peer Networking (APPN) will be varied on or off. This value is only valid if CFGTYPE is *CTL or *DEV.
*PRVCFGTYPE
Process all objects that were processed the last time this command was run in this job for the specified configuration object type.
generic-name
Specify a generic name of the configuration objects to be varied. Note: A generic name is specified as a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, then all objects that have names with the same prefix as the generic object name are selected.
name
Specify the name of the configuration object to be varied.

CFGTYPE Type

Specifies the type of object to be varied. This is a required parameter.

Type
*CHAR
Required
Yes
Length
7
Case
Uppercase

Allowed values: *LIN, *CTL, *DEV, *NWS, *MLBRSC

*NWS
The network server description is varied on or off.
*LIN
A line description is varied on or off.
*CTL
A controller description is varied on or off.
*DEV
A device description is varied on or off.
*MLBRSC
The status for drives within a media library is changed.

STATUS Status

Specifies whether to vary the object on or off. This is a required parameter.

Type
*CHAR
Required
Yes
Length
11
Case
Uppercase

Allowed values: *ON, *OFF, *RESET, *ALLOCATE, *UNPROTECTED, *DEALLOCATE

*ON
The object is varied on.
*OFF
The object is varied off.
*RESET
The drive resources of the tape media library device are reset. Note: The drive resources must be specified for the Resource name (RSRCNAME) parameter. The media library device must be varied on before this value can be specified.
*ALLOCATE
For tape, the drive resources of the tape media library device are allocated for use only by this system. If the library device is shared by multiple systems, other systems cannot use these drives while this device description is varied on. For optical, the drive resources of the optical media library device are allocated for use. The drive resources are only available for use by this media library device. Note: The drive resources must be specified for the Resource name (RSRCNAME) parameter.
*UNPROTECTED
The drive resources of the tape media library device can be used by all systems that share this library device. Note: The drive resources must be specified for the Resource name (RSRCNAME) parameter.
*DEALLOCATE
For tape, the drive resources of the tape media library device are deallocated for this system. If the tape media library is shared by multiple systems, the drives cannot be used by this system, but can be used by other systems. For optical, the drive resources of the optical media library resource are deallocated for the media library resource. The drives are not available for use by another optical media library device. Note: The drive resources must be specified for the Resource name (RSRCNAME) parameter.

RANGE Range

Specifies what configuration elements are varied.

Type
*CHAR
Required
No
Default
*NET
Length
4
Case
Uppercase

Allowed values: *NET, *OBJ

*NET
All downline attached configuration elements are varied.
*OBJ
Only the specified object is varied.

Examples

VRYCFG CFGOBJ(LINE1) CFGTYPE(*LIN) STATUS(*OFF)

Varying Off the Line and Attached Downline Objects. This command varies off the line and all attached downline objects. The RANGE parameter took the default value of *NET.

VRYCFG CFGOBJ(CONTROLLER1) CFGTYPE(*CTL) STATUS(*ON) RANGE(*OBJ)

Varying on the Controller. This command varies on only the controller.

VRYCFG CFGOBJ(DEVICE1) CFGTYPE(*DEV) STATUS(*ON) RANGE(*NET)

Varying on the Device. This command varies on only the device. Note the RANGE parameter value has no effect on devices.

VRYCFG CFGOBJ(LINE1) CFGTYPE(*LIN) STATUS(*ON) RANGE(*OBJ) RESET(*YES)

Varying on the Line and Resetting the IOP. This command varies on only the line and resets the associated IOP.

VRYCFG CFGOBJ(LINE1) OJBTYPE(*LIN) STATUS(*ON) RANGE(*OBJ) VRYWAIT(*CFGOBJ)

Using Line Description Value for Wait Time. This command varies on only the line and uses the vary wait time value specified in the line description for LINE1.

VRYCFG CFGOBJ(LINE1) CFGTYPE(*LIN) STATUS(*ON) RANGE(*OBJ) VRYWAIT(80)

Using 80 Seconds as Vary Wait Time. This command varies on only the line using 80 seconds as the vary wait time value.

VRYCFG CFGOBJ(SERVER1) CFGTYPE(*NWS) STATUS(*ON)

Varying on a Network Server Description. This command varies on the network server description named SERVER1 and its attached line descriptions. The vary on wait value specified in the network server description is used. Note that the RANGE and RESET parameters are ignored for network servers if they are specified.

VRYCFG CFGOBJ(MYLIBRARY) CFGTYPE(*MLBRSC) STATUS(*RESET) RSRCNAME(TAP01 TAP02)

Resetting Drives Within a Media Library. This command resets the drives TAP01 and TAP02 within the media library device MYLIBRARY. The device MYLIBRARY must be varied on to perform this action.

VRYCFG CFGOBJ(MYLIBRARY) CFGTYPE(*MLBRSC) STATUS(*DEALLOCATE) RSRCNAME(OPT02)

Deallocating Drives Within a Media Library. This command deallocates drive OPT02 within the media library device MYLIBRARY. The device MYLIBRARY must be varied on to perform this action.

VRYCFG CFGOBJ(IPCS*) CFGTYPE(*NWS) STATUS(*ON) SBMMLTJOB(*YES) JOBD(*LIBL/QBATCH)

Varying On Multiple Network Server Descriptions in Parallel. This command submits a separate batch job to perform the vary on for each network server description which has a name that begins with IPCS. The number of jobs that run in parallel depends on the configuration of the subsystem being used.

VRYCFG CFGOBJ(SERVER1) CFGTYPE(*NWS) STATUS(*ON) GENPTHCERT(*YES)

Reset Certificates when Varying On Network Server Description. This command will vary on the network server description and request that a new set of certificates are generated during the vary on.

VRYCFG CFGOBJ(SERVER1) CFGTYPE(*NWS) STATUS(*ON) RESETSYS(*YES)

Restart Remote Integrated Server at Vary on of Server Description. This command will vary on the network server description and request reset of the remote integrated server during the vary on of SERVER1.

IBM command documentation

Generated from os/cl/catalog/VRYCFG.json and os/cl/help/VRYCFG.json.