HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
r
rmsf(1M) rmsf(1M)
-v Verbose option. Prints the name of the special file as it is removed by
rmsf. May be
used as a progress indicator.
-x Remove all the stale IO nodes and the stale device special files from the system.
These entries correspond to those nodes which have an entry in the system I/O
configuration files but the corresponding device is not found (see ioconfig(4)).
This option removes the stale device special files in the following directories only:
/dev/dsk /dev/rdsk /dev/ct /dev/rmt
/dev/floppy /dev/rfloppy /dev/rscsi /dev/esctl
/dev/disk /dev/rdisk /dev/rtape
RETURN VALUE
rmsf exits with one of the following values:
0 Successful completion, including warning diagnostics.
1 Failure. An error occurred.
2 Driver does not support this feature.
DIAGNOSTICS
Most of the diagnostic messages from rmsf are self-explanatory. Listed below are some messages deserv-
ing further clarification. Errors cause rmsf to halt immediately. Warnings allow the program to continue.
Errors
No such device in the system
No device in the system matched the options specified. Use ioscan to list the devices in the system
(see ioscan(1M)).
special_file is not a special file
The file is not associated with an IO device.
Warnings
WARNING: The specified hardware path is BUS_NEXUS/INTERFACE type.
This will remove all the devices connected to it.
The H/W type of the node specified by hw_path is BUS_NEXUS/INTERFACE. All the devices under
this path will be removed.
Cannot remove driver at hw_path
The definition of the device located at hw_path and controlled by driver cannot be removed from the
kernel. That is driver does not support the
unbind function.
No device associated with special_file
The special file does not map to a device in the system; the file is removed unless the
-k option was
specified.
EXAMPLES
Remove the special file
mux0 from the current directory:
rmsf ./mux0
Remove the system definition of the device associated with /dev/lp0 along with all special files that refer
to the device:
rmsf -a /dev/lp0
Remove the system definitions for all devices associated with hardware path 52.6.0:
rmsf -k -H 52.6.0
Remove all the stale IO nodes and stale device special files from the system:
rmsf -x
Unbind a driver associated with a node corresponding to the hardware path 64000/0xfa00/0x6:
266 Hewlett-Packard Company − 3 − HP-UX 11i Version 3: February 2007