JSI Tip 6574. Windows Server 2003 provides additional RSM commands.

Jerold Schulman

April 13, 2003

5 Min Read
ITPro Today logo in a gray background | ITPro Today

In tip 3460 How do I use the command line for Removable Storage, I described the syntax for the RSM commands in Windows 2000.

Windows Server 2003 has the following additional commands:

rsm erase /p{g | f}PhysicalMediaID [/tTimeout] [/r{normal | high | low | highest | lowest}] [/b]Parameters/pgPhysicalMediaID - Specifies the tape to erase, using the GUID. /pfPhysicalMediaID -  Specifies the tape to erase, using the friendly name. /tTimeout -  Specifies the command time-out, in milliseconds. The default time-out value is infinite. /r{normal | high | low | highest | lowest} - Optionally specifies the priority with which RSM is to perform                                             the mount operation for the purposes of erasing the tape,                                             with normal being the default. /b -  Hides the text on completion, for scripting purposes. /? - Displays help at the command prompt. 
rsm freemedia {/p{g | f}PhysicalMediaID | /s{g | f}SlotID /l{g | f}ChangerID/LibraryID |               /d{g | f}DriveID /l{g | f}ChangerID/library | /l{g | f}StandaloneLibraryID [/b]Parameters/pgPhysicalMediaID - Specifies the physical media to free, using the GUID. /pfPhysicalMediaID - Specifies the physical media to free, using the friendly name. /sgSlotID - Specifies the slot holding the media to free, using the GUID. /sfSlotID - Specifies the slot holding the media to free, using the friendly name. /lgLibraryID - Specifies the library containing the media to free (for a standalone drive),               or the library containing the slot or drive from which to eject the media (for an automated library),               using the GUID. If you are specifying an automated library,               this switch must be used with the /s or /d switch. /lfLibraryID - Specifies the library containing the media to free (for a standalone drive),               or the library containing the slot or drive from which to eject the media (for an automated library),               using the friendly name. If you are specifying an automated library,               this switch must be used with the /s or /d switch. /dgDriveID - Specifies the drive holding the media to free, using the GUID. /dfDriveID - Specifies the drive holding the media to free, using the friendly name. /b - Displays only the eject operation GUID, for scripting purposes. /? - Displays help at the command prompt. NOTES: You can specify the media to be freed in one of four ways:You can specify the physical media using either the physical media ID (PMID) or the physical media name. You can write a free media label on the media in a specified slot within a specified library. You can write a free media label on the media in a specified drive within a specified library. You can free the media in a standalone drive by specifying its library GUID or friendly name. 
rsm inventory /l{g | f}LibraryID /a{full | fast | default | none | stop}Parameters/lfLibraryID -Specifies the library to inventory, using the friendly name. /lgLibraryID - Specifies the library to inventory, using the GUID. /a{full | fast | default | none | stop} -  Required. Specifies the type of inventory operation to perform.                                           The following table lists valid inventory operations:                                           Value   Description                                            full    Performs a full on-media inventory of the library.                                                    Removable Storage mounts each tape or disk in the library                                                   and reads the on-media identifier.                                            fast    Performs a bar code inventory, if the specified library                                                   has a bar code reader installed. If the library has no bar code reader,                                                   Removable Storage checks the storage slots and reads the                                                   on-media identifier on media in slots that were previously empty.                                            default Performs an inventory using the default method specified in the                                                   library's Properties dialog box.                                           none    Performs no inventory.                                            stop    Stops the current inventory for the specified library,                                                   if one is being performed. /? - Displays help at the command prompt. 
To change the friendly name or description of an RSM objectrsm rename /t{drive | library | changer | storageslot | iedoor | ieport | physical_media| media_pool                     | partition | logical_media | media_type | drive_type | librequest | oprequest | computer}                {/f | /g}ObjectID /nNewName [/dNewDescription] [/b]Parameters/t{ object } - Indicates the type of RSM object you are specifying with its friendly name or GUID. /fObjectID - Specifies the object to be renamed, using its friendly name. /gObjectID - Specifies the object to be renamed, using its GUID. /nNewName - Specifies the new name for the RSM object. /dNewDescription - Specifies the new description for the RSM object. /b - Hides the text on completion, for scripting purposes. /? - Displays help at the command prompt. 
To set the destination for UI messagesrsm ui /oOperation /tUIType /{l | c}{f | g}ContainerID [/dDestination] [/b]Parameters/oOperation - Specifies whether to add or remove items from the list of destinations,              using one of the parameters in the following table:              Value       Description               add         Adds a new destination (computer name) to the list.               delete      Removes an existing destination from the list.               deleteall   Clears the entire destination list. When the destination list is empty,                          UI messages of the type specified by the /t swtich will not appear on any computer. /tUIType - Specifies the type of message for which you are setting the destination,           using one of the parameters in the following table:              Value       Description               INFO        Informational messages               REQ         Messages that are "requesting" in nature               ERR         Error messages /cgContainerID - Specifies the computer object for which you are redirecting messages of the type                 specified by /t, using the object's GUID. /cfContainerID - Specifies the computer object for which you are redirecting messages of the type                 specified by /t, using the object's friendly name. /lgContainerID - Specifies the library object for which you are redirecting messages of the type                 specified by /t, using the object's GUID. /lfContainerID - Specifies the library object for which you are redirecting messages of the type                 specified by /t, using the object's friendly name. /dDestination  - Specifies the computer to which you are redirecting messages. If omitted,                 the local computer is used. /b - Hides the text on completion, for scripting purposes. /? - Displays help at the command prompt. 



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like