rmsf.1m (2012 03)

r
rmsf(1M) rmsf(1M)
NAME
rmsf - remove a special (device) file
SYNOPSIS
/sbin/rmsf [[-a-k][
-m]] [-D directory ][-q-v][
-c] special_file ...
/sbin/rmsf [-C class -d
driver ][-D directory ][-m][-c] -H
hw_path [-k][-q-v]
/sbin/rmsf -L
/sbin/rmsf -u -H hw_path
/sbin/rmsf -x -H hw_path
DESCRIPTION
The
rmsf command removes one or more special files from the
/dev directory and potentially removes
information about the associated device or devices with H/W type
DEVICE, TGT_PATH or a LUN_PATH,
(see ioscan(1M)) from the system.
If no options are specified,
rmsf removes only the special_file specified on the command line. The -k
option causes rmsf to remove the definition of the device from the system without removing any special
files. The -a option causes rmsf
to remove the device definition and all special files that map to it from
the
/dev directory (or the directory specified with the -D option).
When the specified special_file or hw_path belongs to a persistent device type, the device corresponding to
special_file or hw_path should not be in an open state in order for the command to complete successfully.
When the
-c option is used along with a persistent device type special_file or LUN hw_path, the com-
mand executes and displays Critical Resource Analysis (CRA) on the corresponding device before remov-
ing the special_file or hw_path . Other than with persistent device type special_file or LUN hw_path , the
-c option will be ignored by the command for any other type of special_file or hw_path . Use of the
-q
(quiet) option along with -c suppresses the display of Critical Resource Analysis (CRA) report.
Without the
-D option, if special_file is specified with a relative path, the path is treated relative to the
default device directory /dev.Ifspecial_file is specified with an absolute path and the
-D option is also
used, the special_file with absolute path will have precedence over the
-D option.
Note that if special_file belongs to a node for which H/W type is not
DEVICE, the device definition will
not be removed from the system and the special_file will be removed if it is a leaf node.
If a
-H hw_path is specified, special files are removed as follows:
If hw_path belongs to a node with H/W type
DEVICE, all special files mapping to devices at that
hardware path and the system definition of those devices are removed. If the hw_path belongs to
LUN hardware path of a node of type
DEVICE, the device should not be in an open state for the
command to complete successfully.
If hw_path belongs to a node with H/W type
LUN_PATH, all legacy special files mapping to dev-
ices at that hardware path, as well as the system definition of those devices, are removed.
If hw_path belongs to a node for which H/W type is
TGT_PATH, no special files are removed;
only corresponding node is removed.
If hw_path belongs to a node for which H/W type is not any of the above mentioned types, then a
special file is removed as follows:
If it is a leaf node, only special files for that node will be removed.
If the node has children, then a warning message will be issued and system definition of all
the children devices and their special files are removed.
The
-C and -d options remove only those special files that are associated with the given device driver or
that belong to the given device class, respectively. This is useful when there is more than one type of spe-
cial file mapped to a single hardware path. These options are not supported with the class or device
drivers which do not have a hardware module on the system; for example, the pseudo class.
If the
-k option is specified, the definition of all devices at that hardware path are removed from the sys-
tem, again without removing any special files.
The
-v (verbose) option displays the name of each special file as it is deleted. The -q (quiet) option
suppresses the deletion message.
HP-UX 11i Version 3: March 2012 1 Hewlett-Packard Company 1

Summary of content (4 pages)