HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
m
mc(1M) mc(1M)
NAME
mc - media changer manipulation utility
SYNOPSIS
mc [-p device][-a num][
-q][-c <src_element_type><dest_element_type>]
mc [-p device][-b 0
|1][-l 0|1][-e element_type]
mc [-p device][-n drive_number][
-r element_type]
mc [-p device] -s <element_type><num>
-d <element_type><num>
mc [-h |-?]
DESCRIPTION
The mc utility provides users with a command-line interface to send media manipulation commands to an
autoloader or media changer device. It takes "element types" as arguments to most of the options. The
valid element types (element_types) are:
D Specifies a Data Transfer (DT) element.
I Specifies an Import/Export (IE) element.
M Specifies a Medium Transport (MT) element.
S Specifies a Storage (ST) element.
An example of a Data Transfer element is the embedded tape drive(s) of the autoloader. An example of an
Import/Export element is the slot(s) by which an item of the media may be inserted or removed from the
autoloader. An example of a Medium Transport element is the robotic picker assembly of the autoloader.
An example of a Storage element is the media slot(s) of the autoloader.
Please see examples below for usage.
Options
mc recognizes the following options and arguments:
-a num Prints the SCSI bus address of the drive slot specified by num.
-b 0|1 Issue a Reserve (1) or Release (0) SCSI command to the device.
-c <src_element_type><dest_element_type>
Determines whether a move from source to destination is valid. Uses device capabilities
mode page and will return TRUE or FALSE. There should be no spaces in the source and
destination element type values. For example,
-c DS specifies a Data Transfer element as
the source and a Storage element as the destination.
-e element_type
Prints out the number of elements of element type. See element types above. Multiple
types can be specified. For example, -e IDSM specifies all the valid element types.
-h|-? Prints out usage description.
-l 0|1 Allow (0) or prevent (1) media removal.
-n num Prints the serial number of the drive in the slot specified by num (if information is avail-
able).
-p device Specifies the pass-through device file to the library device. If the LIBRARY environment
variable is set then the -p option may be omitted.
-q Prints out Vendor ID, Product ID and Product Rev standard inquiry information.
-r element_type
Prints out the status (FULL/EMPTY/NONE) of element slots of element type(s). See ele-
ment types above. If barcode information is supported by the device, this will be appended
to the status. Multiple types can be specified. For example, -r IDSM specifies all the
valid element types.
-s <element_type><num>
Specifies the element type and slot number (<num>) for the move medium source. There
should be no space between the element type and the slot number. For example, -sS1
specifies a Storage element in slot number 1. This option cannot be specified more than
Section 1M−−476 Hewlett-Packard Company − 1 − HP-UX 11i Version 1: September 2005