United States-English |
|
|
HP-UX Reference > Iiofind(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEiofind — find and convert ASCII files containing the legacy representation of device (special file name or hardware path) SYNOPSIS/usr/sbin/iofind -h /usr/sbin/iofind -H [-n] [-f file] [-d directory] [-i filelist] [-R [-p] [-F]] /usr/sbin/iofind -n [-H] [-f file] [-d directory] [-i filelist] [-R [-p] [-F]] DESCRIPTIONThe iofind command helps users with the migration to the agile naming model (see intro(7)). First, iofind identifies ASCII files on the system that contain patterns representing legacy mass storage device special file names or hardware paths. Then iofind replaces the matching patterns with their mapping in the agile naming model inside the ASCII files. NOTE: iofind may take several minutes to execute depending on the number of files to be searched (see the -d,-n,-H options). If there are many files, the search will take a long time. An alternative is to redirect the output to a file and run in background mode (for example, iofind -H > outputfile &). The increasing size of this output file indicates that iofind is making progress. While executing, the iofind command creates the following files in the /var/adm/iofind/logs/mmddyy_hhmm/, /var/adm/iofind/cfg/, /var/adm/iofind/logs/mmddyy_hhmm/backup/, and /var/adm/iofind/logs/mmddyy_hhmm/preview/ directories. Files under the /var/adm/iofind/logs/mmddyy_hhmm/ directory:
Optionsiofind recognizes the following options:
EXAMPLESGenerate 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 format 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 |
Printable version | ||
|