| United States-English |
|
|
|
![]() |
Configuring HP-UX For Peripherals: HP 9000 Computers > Chapter 1 Getting StartedViewing the System Configuration with ioscan |
|
The /usr/sbin/ioscan command is the single most versatile tool in HP-UX for displaying your system configuration. For example, you can use ioscan to identify available hardware addresses. In its simplest form, /usr/sbin/ioscan displays hardware path, device class, and description. The -u (usable device) or -k (kernel structure) option gives fastest response, because neither option probes the hardware. The following example shows devices on a Series 800 Model E, connected through the HP-PB bus converter at address 56. The 56/52 is the address of the single-ended SCSI interface. The shaded digits below are the addresses already being used on the card. Note that there is no 56/52.4.0. If you attach another SCSI device to this card, you can set its address to 4.
You can identify each piece of hardware configured to an HP-UX computer by its hardware address (shown in ioscan as H/W Path). The length of these numerical sequences differ by system model and architecture, but every hardware path leads you through the bus structure, starting from the bus closest to the system processor and ending at the output device. ioscan -H hardware_path shows you the sequence of connection to or from the specified location. In the following example, which displays output from a Model 770, a disk attached to the GSC built-in Fast/Wide SCSI Interface has the hardware address 8/0.5.0.
The hardware path can be decoded as follows:
Field separators slash (/) and dot (.) separate the numbers of the hardware address and have no bearing on system administration. The displayed classes are more meaningful in the context of instance numbers, which are visible in ioscan -f listings, and will be discussed shortly. Explanation of hardware addresses on multi-function cards is in Appendix B “Bus Architectures” The description field displayed by ioscan derives from the peripheral device itself. Typically, a numeric description refers to the manufacturer's vendor ID, and in some cases, this number corresponds to more than one model number. If you are troubleshooting a peripheral's problem, the description is often useful information to an HP support engineer. ioscan -f displays full information about the system configuration, including instance number, device/interface driver, software state, and hardware type. The -fn option also displays the device special files.
The following ioscan output shows just the ext_bus class of a sample Model 770 system. The card instance numbers are listed under I and are highlighted. For device file naming and hardware mapping, the only significant instance numbers are those associated with the INTERFACE hardware type.
The card instance number is assigned by the operating system to the interface card and reflects the order ioconfig binds that class of interface card to its driver when it boots. Instance is stored in two files — /etc/ioconfig and /stand/ioconfig. Information in these files retain their information across reboots, unless one is corrupted or missing, in which case, ioinit will rebuild the entire /dev structure. (If this occurs, you would have to recreate any customized permissions or files.) The following example shows ioscan output taken from a Model 735. This example shows how card instance number and hardware path elements map directly into the device special file /dev/dsk/c1t5d0 as card instance, target number, and device number. Typically, the card instance maps as the digit after the letter c (or for terminals, the number after tty). For this example, the digit is 1, as shown in the second field of the first entry below. Note, the card instance designated in the device special file refers to the interface card, not to the instance number of the peripheral device attached to the card. (Ignore those numbers. This is a departure from the LU concept of previous HP-UX Series 800 releases. LU numbers were similar to device instance numbers and are not used.) The card instance number is unique only for the specific class (in this case, ext_bus) of interface. Thus, for example, the tty class of interface has its own sequence of card instance numbers, beginning with zero, which appear in its device files.
You can use ioscan -fn (or -fkn or -fun) to show device special file names associated with a peripheral. You can also add other ioscan options (such as -H, -C, -d, or -I) to limit your output to specific elements in your configuration. The following example, using -C tape, shows the device files available for tape class, as well as the location and type of tape device. Note too, the new tape device file naming convention. These are explained in Chapter 6 “Configuring Tape Drives” and on the mt(7) manpage.
Consult the ioscan(1M) manpage for further information about this tool. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||