HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

m
mc(1M) mc(1M)
twice per invocation.
-d <element_type><num>
Specifies the element type and slot number for the move medium destination. There
should be no space between the element type and the slot number. For example,
-dD3
specifies a Data Transfer element in slot number 3. This option cannot be specified more
than twice per invocation.
RETURN VALUE
mc returns 0 upon successful completion and -1 otherwise.
DIAGNOSTICS
ERROR: 0x5 Illegal Request: 0x3b0d Medium Destination element full
The above error message could be a result of the command
mc -s S2 -d D1 that was used to
move media to an embedded drive that is already full.
ERROR: /dev/scsi/3: No such file or directory
If the default SCSI pass-through device file does not exist and no other device file is specified, then the
above error message will be printed.
EXAMPLES
Using a DDS-2 autoloader with a six-cartridge magazine as an example:
To see the status of the autoloaders Data Transfer and Storage element types:
mc -r DS
The following shows an example of output from the above command. The output indicates that there is an
item of media in slot 2 (ST_slot_2), an item of media in the embedded drive (DT_slot_1), and all the other
slots are empty.
DT_slot_1 FULL
ST_slot_1 EMPTY
ST_slot_2 FULL
ST_slot_3 EMPTY
ST_slot_4 EMPTY
ST_slot_5 EMPTY
ST_slot_6 EMPTY
To move media from an embedded drive to slot 5 and then move media from slot 2 to an embedded drive:
mc -s D1 -d S5 -s S2 -d D1
To check if a move from a Data Transfer element to a Storage element is possible:
mc -c DS
The following shows an example of output from the above command. The output indicates that moves from
Data Transfer element types to Storage element types are valid.
DT->ST: TRUE
WARNINGS
Note for all HP DDS autoloaders: After the mc command has been used for the first time, the autoloader
will enter into random mode. Once in random mode, all front panel button features are disabled except for
the Eject Button. To go back to stacker mode, the magazine must be ejected and then reinserted.
Note for some autoloaders or libraries: The media must be unloaded using the mt offline command
prior to using the mc command.
DEPENDENCIES
The mc command supports all HP-supported devices that comply with the SCSI-2 Medium Changer com-
mand specification.
HP-UX 11i Version 1: September 2005 2 Hewlett-Packard Company Section 1M477