Use the rendev
command to rename a configured device.
See Also:
"Device Commands" for related commandsYou must have the modify administrative domain's configuration right to use the rendev
command.
rend•ev [ --nq ] { old-devicename new-devicename }...
Does not display a confirmation message. If you do not specify this option, then the command displays a confirmation message. The message is described in "Command Execution in Interactive Mode".
Specifies the name of the existing device. Refer to "devicename" for the rules governing device names.
Specifies the name for the device. Refer to "devicename" for the rules governing device names.
Example 2-108 renames two tape devices.
Example 2-108 Renaming a Device
ob> lsdev library lib1 in service drive 1 tape1 in service library lib2 in service drive 1 tape2 in service ob> rendev tape1 t1 tape2 t2 rename device tape1? (a, n, q, y, ?) [y]: y rename device tape2? (a, n, q, y, ?) [y]: y ob> lsdev library lib1 in service drive 1 t1 in service library lib2 in service drive 1 t2 in service