Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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, network interfaces, lines, controllers, and devices. This command applies to all network interfaces, 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.
External LAN TCP/IP interfaces attached to network server objects of type *WINDOWSNT are automatically started by default and can optionally be controlled with the Start TCP/IP interfaces (STRTCPIFC) parameter.
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 network interface description are all the lines attached to the network interface, all the controllers attached to the lines, and all the devices attached to the controllers. 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 network interfaces, and lines synchronously or asynchronously can be controlled by the Vary on wait (VRYWAIT) parameter. This applies only to Token-Ring, Ethernet, X.25, or switched SDLC, IDLC, 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:
A network server object of type *ISCSI cannot be varied on:
A line cannot be varied on:
A controller cannot be varied on:
A device cannot be varied on:
A network server cannot be varied off:
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 network interface description cannot be varied off:
A line cannot be varied off:
A controller cannot be varied off:
A device cannot be varied off:
A network server host adapter device cannot be varied off:
When the RANGE parameter is used:
When the VRYWAIT parameter is used:
When the Reset system (RESETSYS) parameter is used:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
CFGOBJ | Configuration object | Single values: *ANYNW, *APPN, *PRVCFGTYPE Other values (up to 256 repetitions): Generic name, name |
Required, Positional 1 |
CFGTYPE | Type | *NWS, *NWI, *LIN, *CTL, *DEV, *MLBRSC | Required, Positional 2 |
STATUS | Status | *ON, *OFF, *RESET, *ALLOCATE, *UNPROTECTED, *DEALLOCATE | Required, Positional 3 |
RANGE | Range | *NET, *OBJ | Optional |
VRYWAIT | Vary on wait | 15-180, *CFGOBJ, *NOWAIT | Optional |
ASCVRYOFF | Asynchronous vary off | *NO, *YES | Optional |
RESET | Reset | *NO, *YES | Optional |
RSRCNAME | Resource name | Single values: *ALL Other values (up to 16 repetitions): Name |
Optional |
FRCVRYOFF | Forced vary off | *NO, *YES, *LOCK | Optional |
SBMMLTJOB | Submit multiple jobs | *NO, *YES | Optional |
JOBD | Job description | Qualified object name | Optional |
Qualifier 1: Job description | Name, QBATCH | ||
Qualifier 2: Library | Name, *LIBL | ||
GENPTHCERT | Generate path certificate | *NO, *YES | Optional |
RESETSYS | Reset system | *NO, *YES | Optional |
Top |
Specifies the configuration objects to be varied.
This is a required parameter.
Single values
Other values (up to 256 repetitions)
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.
Top |
Specifies the type of object to be varied.
This is a required parameter.
Top |
Specifies whether to vary the object on or off.
This is a required parameter.
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.
Note: The drive resources must be specified for the Resource name (RSRCNAME) parameter.
Note: This value is not recommended. When the drive resources are in unprotected mode, each system can access the resource at the same time. Unpredictable results can occur.
Note: The drive resources must be specified for the Resource name (RSRCNAME) parameter.
Top |
Specifies what configuration elements are varied.
Top |
Specifies whether the object is varied on asynchronously or synchronously. For synchronous vary on, specifies how long the system waits for the vary on to complete.
Top |
Specifies whether the object is varied off synchronously or asynchronously.
Top |
Specifies if a reset is to be done for the IOP associated with the object.
Top |
Specifies the drives within the media library device to be reset or reallocated.
Single values
Other values (up to 16 repetitions)
Top |
Specifies whether inquiry messages for active jobs will be issued. This parameter is not allowed when STATUS(*ON) is specified.
Notes:
Top |
Specifies whether or not to submit multiple batch jobs to vary the specified network server or auxiliary storage pool (ASP) device description objects. This parameter is valid only when *NWS or *DEV is specified for the Type (CFGTYPE) parameter.
Top |
Specifies the job description to which multiple VRYCFG commands will be submitted in batch. This parameter is valid only when CFGTYPE is *NWS or *DEV and SBMMLTJOB is *YES.
Qualifier 1: Job description
CRTJOBD JOBD(QSYS/QUSRNOMAX) JOBQ(QSYS/QUSRNOMAX)
Other considerations are that the subsystem that allocates the job queue should not have the queue in a held state and the system should not be in a restricted state.
Qualifier 2: Library
Top |
Specifies whether to generate a new set of certificates on a remote network server system. This parameter is valid only when CFGTYPE is *NWS and the network server description is of type *ISCSI and the STATUS is *ON.
Note: You must have input/output system configuration (*IOSYSCFG) special authority to use this parameter value.
Top |
Specifies whether to force a reset of the remote network server system, regardless of its current power state. This is an advanced function, caution is advised when this option is selected. This parameter is valid only when CFGTYPE is *NWS and the network server description is of type *ISCSI and the STATUS is *ON.
Note: You must have all object (*ALLOBJ) special authority to use this parameter value.
Top |
Example 1: Varying On the Network Interface and Downline Attachments
VRYCFG CFGOBJ(NWI1) CFGTYPE(*NWI) STATUS(*ON)
This command varies on the network interface and all downline attachments.
Example 2: Varying Off the Line and Attached Downline Objects
VRYCFG CFGOBJ(LINE1) CFGTYPE(*LIN) STATUS(*OFF)
This command varies off the line and all attached downline objects. The RANGE parameter took the default value of *NET.
Example 3: Varying on the Controller
VRYCFG CFGOBJ(CONTROLLER1) CFGTYPE(*CTL) STATUS(*ON) RANGE(*OBJ)
This command varies on only the controller.
Example 4: Varying on the Device
VRYCFG CFGOBJ(DEVICE1) CFGTYPE(*DEV) STATUS(*ON) RANGE(*NET)
This command varies on only the device. Note the RANGE parameter value has no effect on devices.
Example 5: Varying on the Line and Resetting the IOP
VRYCFG CFGOBJ(LINE1) CFGTYPE(*LIN) STATUS(*ON) RANGE(*OBJ) RESET(*YES)
This command varies on only the line and resets the associated IOP.
Example 6: Using Line Description Value for Wait Time
VRYCFG CFGOBJ(LINE1) OJBTYPE(*LIN) STATUS(*ON) RANGE(*OBJ) VRYWAIT(*CFGOBJ)
This command varies on only the line and uses the vary wait time value specified in the line description for LINE1.
Example 7: Using 80 Seconds as Vary Wait Time
VRYCFG CFGOBJ(LINE1) CFGTYPE(*LIN) STATUS(*ON) RANGE(*OBJ) VRYWAIT(80)
This command varies on only the line using 80 seconds as the vary wait time value.
Example 8: Varying on a Network Server
VRYCFG CFGOBJ(SERVER1) CFGTYPE(*NWS) STATUS(*ON)
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.
Example 9: Resetting Drives Within a Media Library
VRYCFG CFGOBJ(MYLIBRARY) CFGTYPE(*MLBRSC) STATUS(*RESET) RSRCNAME(TAP01 TAP02)
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.
Example 10: Deallocating Drives Within a Media Library
VRYCFG CFGOBJ(MYLIBRARY) CFGTYPE(*MLBRSC) STATUS(*DEALLOCATE) RSRCNAME(OPT02)
This command deallocates drive OPT02 within the media library device MYLIBRARY. The device MYLIBRARY must be varied on to perform this action.
Example 11: Varying On Multiple Network Servers in Parallel
VRYCFG CFGOBJ(IPCS*) CFGTYPE(*NWS) STATUS(*ON) SBMMLTJOB(*YES) JOBD(*LIBL/QBATCH)
This command submits a separate batch job to perform the vary on for each network server 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.
Example 12: Reset Certificates when Varying On Network Server
VRYCFG CFGOBJ(SERVER1) CFGTYPE(*NWS) STATUS(*ON) GENPTHCERT(*YES)
This command will vary on the network server and request that a new set of certificates are generated during the vary on.
Example 13: Restart Remote Network Server at Vary on of Server
VRYCFG CFGOBJ(SERVER1) CFGTYPE(*NWS) STATUS(*ON) RESETSYS(*YES)
This command will vary on the network server and request a reset of the remote network server during the vary on of SERVER1.
Top |
*ESCAPE Messages
Top |