![]() |
System Startup, Configuration, and Shutdown Reference Manual
> Chapter 5 Modifying Input/Output (I/O) ConfigurationsUsing the IOCONFIG Utility |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
:IOCONFIG "lc"Device and device class configuration with the IOCONFIG utility is just like SYSGEN's. You can list device and device class information, or add and delete a device or a device class. You can also modify an existing device class to add or delete devices in the class, or to rename the class. All commands take effect immediately. As a side-effect, those commands that update the configuration also update the current SYSGEN boot configuration. Adding a Device with IOCONFIGTo configure a tape drive, disk or a system printer into the system, the system manager or operator uses the ADDDEVICE or ADEV command. The syntax of the command is identical to that of SYSGEN's ADEV command in IO level, except that the ID parameter is optional. The command syntax is as follows: ADDDEVICE { [LDEV =] #/#,#,...}{ [PATH =]devicepath} [[ID =]productid] [[RSIZE =]recordsize] [[OUTDEV =]outputdevice] [ [MODE =]{JOB DATA INTERACTIVE DUPLICATIVE INPUT OUTPUT AUTOREPLY NLIO NONE }] [[CLASS =]classname] [ [CMODE =]{IN OUT CIO NCIO RANDOM DEFAULT}] [[PMGR =]physicalmanagername] [[LMGR =]logicalmanagername] [[PMGRPRI =]physicalmanager priority] [[MPETYPE =]compmodetype] [[MPESUBTYPE =]compmodesubtype] [[DEVNAME =]devicename]To configure a SCSI device, it must be physically connected to the specified path, it must be operational, and there must be a device-defaults-data entry for the product ID (which is obtained from the device during configuration). If you omit the ID parameter, the IOCONFIG utility interrogates the hardware to identify the device. It then validates the ID that it retrieves by checking it against the list of supported devices. When adding a printer to the configuration that has the class SPOOL, the spooler process for that device will automatically be started and a message indicating this will appear on the console. Listing One or More Devices with IOCONFIGThe system manager or operator can list all devices in the system or one or more specified devices along with their configuration information using the LISTDEVICE or LDEV command. When you enter either command without parameters, information about all devices currently configured in the system is listed. By providing one or more parameters as the selection criteria, you can see information about particular devices. The command syntax is as follows: LISTDEVICE {[LDEV]=#/#,#,...} [[ID]=product number] [[TYPE]=device type] [[CLASS]=classname,...] [[DEST]=OFFLINE] Deleting a Device with IOCONFIGThe system manager or operator may delete a device from the configuration using the DELETEDEVICE or DDEV command. A device is considered to be completely deconfigured when all its system-related resources are recovered. DDEV, at this time, can only deconfigure two kinds of devices completely: network printers and disks that are attached to single-ended SCSI adapters. The syntax of the DDEV command is identical to that of SYSGEN's DDEV command in IO level. The command syntax is as follows: DELETEDEVICE {[LDEV =]#/#,#,...} [[ID =]deviceid] [[TYPE =]devicetype] [[CLASS =]classname] Adding a Device Class with IOCONFIGTo create a new device class in the system, the system manager or operator uses the ADDCLASS or ACLASS command. The syntax of the ACLASS command is identical to that of ACLASS in SYSGEN. All devices that you designate as members of the class (using the LDEV parameter) must be configured before issuing this command.
ADDCLASS {[CLASS =]classname}{[LDEV =]#/#,#,...} [[MODE =]{IN OUT CIO NCIO RANDOM DEFAULT}] Modifying a Device Class with IOCONFIGThe system manager or operator can modify a device class by adding or deleting one or more devices in it or by renaming it using the MODIFYCLASS or MCLASS command. The syntax of this command is identical to that of MCLASS in SYSGEN. The command syntax is as follows: MODIFYCLASS {[CLASS]=classname} [[NEWCLASS]=classname] [[ALDEV]=logical device #,...] [[DLDEV]=logical device #,...] [[MODE =]{IN OUT CIO NCIO RANDOM DEFAULT}]Currently, the system allows any device in the system to belong to only one associated class at any time. For example, if a device X belongs to a class Y and Y is associated to some user, then the MODIFYCLASS command prevents you from adding X to another class Z which is also associated to any user at the time. Listing One or More Device Classes with IOCONFIGThe system manager or operator can list all device classes in the system, or one or more specified device classes, with their configuration information using the LISTCLASS or LCLASS command. When no parameter is used with this command, all device classes currently configured in the system are listed. By providing the names of those device classes with the CLASS keyword, you can view information about particular device classes. The command syntax is as follows: LISTCLASS [[CLASS]= classname,...] [[DEST]= OFFLINE] Deleting a Device Class with IOCONFIGThe system manager or operator can use the DELETECLASS or DCLASS command to delete a device class that is not currently associated to a user. To disassociate the device class from the user, the user must execute the DISASSOCIATE command at the Command Interpreter prompt. The command syntax is as follows: DELETECLASS {[CLASS =] classname,...] Configuring a Device Adapter with IOCONFIGIt is often necessary to configure intermediate paths before a device can be configured into the system. For example, you must configure a SCSI device adapter before the first device on that SCSI bus can be configured. Intermediate path configuration is done just like in SYSGEN. At this time, the command to delete a path is only supported for the single-ended SCSI adapter. All other cases will fail with an error. The command syntax is as follows: ADDPATH {[PATH =] devicepath}{[ID =] productid] [[PMGR =]physicalmgrname] [[PMGRPRI =]physicalmgrpri] [[LMGR =]logicalmgrname] [[MAXIOS =] maxconcurrentchannelIOs] Listing an I/O Path with IOCONFIGAn I/O path is the system address assigned to the device interface hardware and the physical path used to reach an I/O device. The system manager or operator can use the LISTPATH command to display information about adapters and I/O devices on a specified path in the active configuration. The command lists the configured I/O paths according to their paths or to their associated I/O manager. The syntax of the LISTPATH command appears below: LISTPATH [PATH= [path] LEVEL= [#] MANAGER= [manager name,...] DEST= [OFFLINE] ]The LEVEL parameter lists I/O paths at the level you specify:
Deleting an I/O Path with IOCONFIGThe system manager or operator can delete an I/O path and all paths below it from the configuration with the DELETEPATH command. IOCONFIG will only delete a path if it is not currently in use or if it does not have an associated device. If either is true when you issue the DELETEPATH command, a warning message appears. The syntax of the command is: DELETEPATH [PATH =] device pathCurrently, the only paths that can be completely deleted are those using a single-ended SCSI adapter. Updating the Device Class Association Table with IOCONFIGMany of the configuration commands implicitly update one or more system reserved device classes. For example, the ADEV command when used to configure a tape device, implicitly adds the new device in TAPE device class. Also, these commands explicitly update one or more device classes specified with the command. The device class association information used by the ASSOCIATE and DISASSOCIATE commands is stored in ASOCIATE.PUB.SYS. This file is built when the system manager runs the program ASOCTBL.PUB.SYS. Therefore, after you have issued IOCONFIG commands, it is a good idea to update the file ASOCIATE.PUB.SYS by running ASOCTBL.
|