Removes a device from the system.
rmdev -l Name [ -d | -S ] [ -f File ] [ -h ] [ -q ] [ -R ]
The rmdev command unconfigures or both unconfigures and undefines the device specified with the device logical name (the -l Name flag). The default action unconfigures the device while retaining its device definition in the Customized Devices object class.
If you specify the -S flag, the rmdev command sets the device to the Stopped state for devices that support the Stopped state. If you specify the -d flag, the rmdev command deletes the device definition from the Customized Devices object class (undefines). If you do not specify the -d flag, the rmdev command sets the device to the Defined state (unconfigures). If you specify the -R flag, the rmdev command acts on any children of the device as well.
You can use the Devices application in Web-based System Manager to change device characteristics.
You could also use the System Management Interface Tool (SMIT) smit rmdev fast path to run this command.
-d | Removes the device definition from the Customized Devices object class. This flag cannot be used with the -S flag. |
-f File | Reads the needed flags from the File parameter. |
-h | Displays the command usage message. |
-l Name | Specifies the logical device, indicated by the Name parameter, in the Customized Devices object class. |
-q | Suppresses the command output messages from standard output and standard error. |
-R | Unconfigures the device and its children. When used with the -d or -S flags, the children are undefined or stopped, respectively. |
-S | Makes the device unavailable by only calling the Stop method if the device has a Stop method. This flag cannot be used with the -d flag. |
Privilege Control: Only the root user and members of the system group should have execute (x) access to this command.
Auditing Events:
Event | Information |
---|---|
DEV_Stop | Device name |
DEV_Unconfigure | Device name |
DEV_Remove | Device name |
cd0 defined
cd0 deleted
ent0 stopped
/usr/sbin/rmdev | Contains the rmdev command. |
The chdev command, lsattr command, lsconn command, lsdev command, lsparent command, mkdev command.
Device Overview for System Management in AIX 5L Version 5.2 System Management Guide: Operating System and Devices.
For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.2 Web-based System Manager Administration Guide.