Professional Documents
Culture Documents
ioscan(1M)
NAME
ioscan - scan the I/O system
SYNOPSIS
/usr/sbin/ioscan [-N] [-k-u] [-e] [-d driver -C class ] [-I instance ] [-H hw_path ] [l] [-A] [ -f[-n] -F[-F][-n] ] [ devle ]
/usr/sbin/ioscan [-b] -M driver -H hw_path [-I instance ]
/usr/sbin/ioscan -t
/usr/sbin/ioscan -P property [-d driver -C class ] [-I instance ] [-H hw_path ] [ devle ]
/usr/sbin/ioscan -m lun [-F] [-d driver -C class ] [-I instance ] [-H lun hw_path ]
[ devle ]
/usr/sbin/ioscan -B
/usr/sbin/ioscan -U
/usr/sbin/ioscan -a [-F ]
DESCRIPTION
ioscan scans system hardware, usable I/O system devices, or kernel I/O system data structures as
appropriate, and lists the results. For each hardware module on the system, ioscan displays by default
the hardware path to the hardware module, the class of the hardware module, and a brief description.
By default, ioscan scans the system and lists all reportable hardware found. The types of hardware
reported include processors, memory, interface cards and I/O devices. Scanning the hardware may cause
drivers to be unbound and others bound in their place in order to match actual system hardware. Entities that cannot be scanned are not listed. By default, ioscan will display the list using the legacy view
(see intro (7)).
The ioscan command scans the system in the agile view or the legacy view, depending on whether or
not the -N option is used, and lists all reportable hardware found. If ioscan cannot nd any hardware
based on the options and arguments specied, ioscan prints no information and exits with a return
value of 0 since the scan encountered no errors.
ioscan -N displays output using the agile view instead of the legacy view (see intro (7)).
ioscan -M forces the specied software driver into the kernel I/O system and forces software driver
to be bound. This option can be used to make the system recognize a device that cannot be recognized
automatically; for example, a device has not yet been connected to the system, the device does not support autoconguration, or diagnostics need to be run on a faulty device.
ioscan -b, when used with the -M option, tries to do an online binding rst. If the driver does not
support online binding, binding will be deferred to the next boot. The hardware path specied for a
deferred binding operation must be a LUN hardware path of a node.
ioscan -t displays the date and time at which system hardware was last scanned.
Note: The -t option cannot be used with any other options available for this command.
ioscan -m dsf displays the mapping between legacy device special les and persistent device special les (see intro (7)).
Hewlett-Packard Company
ioscan(1M)
ioscan(1M)
ioscan -m hwpath displays the mapping between (legacy) hardware path, lunpath hardware
path, and LUN hardware path.
ioscan -m cluster_dsf displays the mapping between cluster device special les, legacy device
special les, and persistent device special les.
ioscan -m resourcepath displays the mapping between hardware path, physical location and
resourcepath. The resource path format applies to the platforms where Onboard Administrator (OA)
based partition management is supported. (For more information on resourcepath see resourcepath (5)).
ioscan -a shows information about thread 0 for a processor with Hyper Threading feature.
Security Restriction
Generally, ioscan requires superuser privileges. A non root user may use the following options:
-k
-m
-P
-B
-t
-u
-a
-a
Show information about thread "0" for a processor with Hyper Threading feature.
When used with the -F option, the ioscan command generates a compact listing
of elds separated by colons (:), which is useful for producing custom listings with
awk. Fields include: socket , core , thread .
-b
Defer the binding of a driver to a hardware path until the next system boot. Must
be used with the -M and -H options.
-B
-C class
Restrict the output listing to those devices belonging to the specied class . Cannot
be used with -d.
-d driver
Restrict the output listing to those devices controlled by the specied driver . Cannot be used with -C.
-e
Hewlett-Packard Company
ioscan(1M)
ioscan(1M)
In the agile view, EFI device paths are associated with the nodes which have class
as lunpath.
-f
Generate a full listing, displaying the modules class, instance number, hardware
path, driver, software state, hardware type, and a brief description.
-F
Produce a compact listing of elds (see Fields below), separated by colons (:). This
option overrides the -f option.
-H hw_path
Restrict the scan and output listing to those devices connected at the specied
hardware path. The hardware path must be a bus path. Scanning below the bus
level will not probe the hardware and may produce incorrect results.
For example, specifying the path at the target level will always change the state of
the device attached to it as NO_HW. The state of the device may be restored by
retrying ioscan from a bus node above the NO_HW node.
When used with -M, this option species the full hardware path at which to bind
the software modules.
-I instance
Restrict the output listing to the specied instance , when used with either -d or
-C. When used with -M, species the desired instance number for binding. Must
be used with either the -d, -C, or -M option.
-k
Scan kernel I/O system data structures instead of the actual hardware and list the
results. No binding or unbinding of drivers is performed. The -d, -C, -I, and -H
options can be used to restrict listings. Cannot be used with -u. This option does
not require superuser privileges.
-l
-m keyword
lun
Display the LUN to lunpath mapping. The -d, -C, -I, and -H options
can be used to restrict listings. Arguments passed must be from the agile
view. The -F option can be used to generate a compact listing of elds
separated by colons (:). Fields include: class , instance number, LUN
hardware path , driver , software state , hardware type , block major
number, character major number, health , a brief description ,
lunpath(s) . Device special les corresponding to LUN will be shown on
separate line(s).
dsf
Display the mapping between the legacy and persistent special les.
Either a legacy or persistent special le can be specied as an argument.
If none is specied, all valid mappings for character special les are
displayed. The -F option can be used to generates a compact listing of
elds separated by colons (:). Fields include: persistent special le ,
legacy special le(s) . Multiple legacy special les mapping to the persistent special le are separated by a white space.
hwpath Display the mapping between the legacy hardware path, lunpath
hardware path, and LUN hardware path. The -H option can be used to
restrict listings. The argument specied with -H can either be a legacy
hardware path, lunpath hardware path, or LUN hardware path. The
hardware path specied will also be displayed along with the corresponding other two representations, if present.
The -F option can be used to generate a compact listing of elds
separated by colons (:), which is useful for producing custom listings
with awk. Fields include: LUN hardware path , lunpath hardware
path , legacy hardware path(s) . If there are multiple legacy hardware
path s mapped to a lunpath hardware path , they will be separated by a
white space in the last eld. For example, if a lunpath hardware path
has two mappings to a legacy hardware path, the two legacy hardware
paths are separated by a white space in the last eld. If there are multiple mappings, they are displayed in separate lines. For example, if one
lun hardware path maps to two lunpath hardware paths, then each
HP-UX 11i Version 3: September 2010
Hewlett-Packard Company
ioscan(1M)
ioscan(1M)
cluster_dsf
Display the mapping between the cluster, legacy and persistent device
special les. Either a cluster, legacy or persistent special le can be
specied as an argument. If none is specied, all valid mappings for
character device special les are displayed. If the cluster special les are
not available, the command simply returns with a return value of 0. The
-F option can be used to generate a compact listing of elds separated by
colons (:). Fields include: cluster special le , persistent special le ,
legacy special le(s) .
resourcepath
Display the mapping between the hardware path, physical location and
resourcepath. The -H option can be used to restrict listings. The -F
option can be used to generate a compact listing of elds separated by
colons (:). Fields include: Hardware path , Physical location , Resourcepath .
-M driver
-n
List device le names in the output. Only special les in the /dev directory and its
subdirectories are listed. Must be used with either the -f or the -F option.
-N
Display the agile view (see intro (7)) of the system hardware. For mass storage device entries that would normally include the driver class, the legacy hardware path,
and the device description, ioscan prints a class of lunpath, the lunpath hardware
path, and the name of the LUN that it maps to, when used with this option. In
addition, the output will include entries for the mass storage devices at their LUN
hardware paths, with the expected driver class and description. Thus, each mass
storage device will have at least two entries in the ioscan output: one for the
LUN hardware path and one for each lunpath hardware path. If used with the -n
option, ioscan only prints persistent special les.
-P property
Specify the software driver to bind at the hardware path given by the -H option.
Must be used with the -H option.
Display the property of nodes in the agile view. This option can be combined with
the -C, -d, -I and -H options, but the parameters passed must belong to the agile
view. The valid properties are:
bus_type , cdio , is_block , is_char , is_pseudo , b_major , c_major , minor , class ,
driver , hw_path , id_bytes , instance , module_name , sw_state , hw_type , description ,
health , error_recovery, is_inst_replaceable, wwid, uniq_name , alias_path ,
physical_location, and ms_scan_time .
More details about the above properties can be found in the Fields section below,
except for error_recovery, is_inst_replaceable, wwid, uniq_name , alias_path ,
physical_location, and ms_scan_time which are explained here:
error_recovery
This property indicates support for the PCI error recovery feature. The property is only created for the Local Bus Adapters (LBA) nodes. The
error_recovery property can be set to one of the following values:
supported
The platform and all interface card driver instances under the given LBA
node support the PCI error recovery capability.
unsupported
Either the platform or one of the interface card driver instances under
the given LBA node do not support the PCI error recovery capability.
N/A The N/A is to be displayed for nodes that are not LBA nodes.
The availability of this feature is dependent on the platform and operating
system environment, as described in the PCI Error Recovery Support Matrix
at http://www.hp.com/go/hpux-core-docs.
is_inst_replaceable
This property indicates the capability of the driver to support online instance
4
Hewlett-Packard Company
ioscan(1M)
ioscan(1M)
True
False
N/A
wwid
This property indicates the LUN WorldWide Identifier (WWID).
uniq_name
This property indicates the HP-UX specific LUN unique identifier.
For more information on the wwid and uniq_name properties, refer to the
scsimgr (1M) manpage.
alias_path
This property indicates the alias path of a node. Alias path is an alternative
user-friendly name assigned to a hardware path.
physical_location
This property indicates the Physical location. This hexadecimal value
indicates the actual physical device location. A physical location consistently
refers to a device based on where the device is physically located in the system
conguration.
ms_scan_time
This property shows the time taken by the IO subsystem to scan a device.
This value is updated every time a system hardware is actually scanned. The
time listed will be in the following format: MM min SS sec UUU ms. The
scan time will be displayed only for the mass storage devices, for non mass
storage devices it will be displayed as N/A.
NOTE: For a bus node, the ms_scan_time is the total time taken to scan the
bus node and all the devices connected to it.
-r
Remove a deferred binding at the specied hardware path. Must be used with the
-H option. The hw_path must belong to the agile view.
-s
List stale I/O node entries that are present in the system. These entries correspond
to nodes that have an entry in the system I/O conguration le, but the corresponding device is not found (see iocong(4)).
-t
Display the date and time at which the system hardware was last scanned. For
example, ioscan -t displays the following output:
Scan and list usable I/O system devices instead of the actual hardware. Usable I/O
devices are those having a driver in the kernel and an assigned instance number.
The -d, -C, -I, and -H options can be used to restrict listings. The -u option cannot be used with -k.
-U
The -d and -C options can be used to obtain listings of subsets of the I/O system, although the entire system is still scanned. Specifying -H option causes ioscan to restrict both the scan and the listing to the
hardware subset indicated.
Fields
The -F option can be used to generate a compact listing of elds separated by colons (:), useful for producing custom listings with awk.
Hewlett-Packard Company
ioscan(1M)
ioscan(1M)
Fields include the modules: bus type , cdio , is_block , is_char , is_pseudo , block major number, character
major number, minor number, class , driver , hardware path , identify bytes , instance number, module
path , module name, software state , hardware type , a brief description , card instance , is_remote , EFI
device path or PA device path , health , and alias_path .
The additional eld is_remote is displayed only when the -F option is specied twice (-FF or -F -F).
The eld EFI device path or PA device path is displayed on Integrity systems or PA-RISC systems
respectively only when the -e option is specied with the -F option.
If the -N option is specied with the -F option, the health property is added at the end of the listing.
If the -A option is specied with the -F option, the alias_path eld is displayed at the end of the listing.
If a eld does not exist, consecutive colons hold the elds position.
Note: The number of elds in the ioscan -F output can be extended by adding additional colon
separated elds at the end of the listing. Fields are dened as follows:
bus type
cdio
is_block
is_char
is_pseudo
block major
The device block major number. A -1 indicates that a device block major number does
not exist.
character major
The device character major number. A -1 indicates that a device character major
number does not exist.
minor
class
driver
The name of the driver that controls the hardware component. If no driver is available
to control the hardware component, a question mark (?) is displayed in the output.
hw path
A numerical string of hardware components, notated sequentially from the bus address
to the device address. Typically, the initial number is appended by slash (/), to
represent a bus converter (if required by your machine), and subsequent numbers are
separated by periods (.). Each number represents the location of a hardware component on the path to the device.
identify bytes
instance
The instance number associated with the device or card. The instance number is a
unique number assigned to a card or device within a class. If no driver is available for
the hardware component or an error occurs binding the driver, the kernel will not
assign an instance number and a (-1), is listed.
module path
module name
software state
CLAIMED
UNCLAIMED
UNUSABLE
the hardware at this address is no longer usable due to some irrecoverable error condition; a system reboot may clear this condition
SUSPENDED
DIFF_HW
the hardware at this address does not match the previously associated
hardware
Hewlett-Packard Company
ioscan(1M)
ioscan(1M)
NO_HW
ERROR
SCAN
hardware type
Entity identier for the hardware component. The entity identier is one of the following strings:
UNKNOWN
PROCESSOR
MEMORY
BUS_NEXUS
VIRTBUS
INTERFACE
DEVICE
TGT_PATH
LUN_PATH
description
card instance
is_remote
State of the node as dened by the subsystem that manages this node (for example, a
driver). The health is one of the following strings:
online
offline
limited
unusable
testing
disabled
standby
N/A
alias_path
RETURN VALUE
ioscan returns:
0
1
2
EXAMPLES
Scan the system hardware and list all the devices belonging to the disk device class.
ioscan -C disk
Forcibly bind driver tape2 at the hardware path 8.4.1.
Hewlett-Packard Company
ioscan(1M)
ioscan(1M)
ioscan -m lun
Display the mapping between (legacy) hardware path, lunpath hardware path and lun hardware path.
ioscan -m hwpath
Display the mapping between legacy device special le and persistent device special le.
ioscan -m dsf
Display the health property of all the nodes with the class name as disk in the agile view.
ioscan -kN
Display the EFI device paths of all the devices in the agile view.
-l
-FF or -F -F
AUTHOR
/dev/config
/dev/*
SEE ALSO
kcmodule(1M), lsdev(1M), iocong(4), intro(7).
Hewlett-Packard Company