HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)

i
iofind(1M) iofind(1M)
RETURN VALUE
Exit values are:
0 Successful completion.
>0 An error condition occurred.
EXAMPLES
Generate a list of searchable hardware paths on the system.
iofind -H
Generate a list of searchable hardware paths on the system. Redirect the output to a file and run as a
background task.
iofind -H > outputfile &
Find all patterns matching the legacy hardware paths, 0/1/1/0.0.0 and 1/2/0/0.3.0, in the
hwlist.txt file.
This file contains the strings, 0/1/1/0.0.0 and 1/2/0/0.3.0, one string per line.
iofind -H -f hwlist.txt
Search all files under the current directory for matching hardware path patterns found in hwlist.txt
and preview the replacement of any matching patterns without doing the actual replacement in the files.
iofind -H -f hwlist.txt -R -p
Search all files under the current directory for matching device special file patterns found in
dsflist.txt and replace all matching patterns with their mapping in the agile naming model. The for-
mat of the input file is one full path device special file, such as /dev/dsk/c1t3d0, per line. Do not prompt the
user for confirmation before each replacement.
iofind -n -f dsflist.txt -R -F
Scan through all files under /etc and its subdirectories to find all patterns matching the legacy hardware
paths, 0/1/1/0.0.0 and 1/2/0/0.3.0, in the hwlist.txt file. This file contains the strings, 0/1/1/0.0.0 and
1/2/0/0.3.0, one string per line.
iofind -H -f hwlist.txt -d /etc
WARNINGS
The replace functionality (-R
option) needs appropriate permissions to make changes to the files to be
modified.
SEE ALSO
ioscan(1M), intro(7).
HP-UX 11i Version 3: February 2007 4 Hewlett-Packard Company 369