The relem program sends a READ ELEMENT STATUS command to all changers, or to the (optionally, with the -a option) named device.
The following example describes the format and options available for the relem program:
relem [-a b.t.l] [-fvtb] [-m {0|1|2}] [-r element-address.number-of-elements] |
Use the -a b.t.l option to select a specific ordinal SCSI address, where "b" is the logical SCSI bus, "t" is the SCSI target, and "l" is the SCSI lun on that target (for example, scsidev@0.4.0).
Use the -b option to have the returned element status data dumped as ASCII hexadecimal codes, rather than decoded information.
Use the -f option to receive full, somewhat verbose output.
Use the -m {0|1|2} option to indicate the method for obtaining element status data. If you specify -m 1, element status data is fetched for each element type (for example, all drive elements are read at once, then all slot elements, and so forth). If you specify the default method -m 2, element data is fetched on a per element basis.
Use the -r element-address.number-of-elements option to read a range of addresses, where element-address is the starting decimal address (in the autochanger's numbering sequence) of the element to start from and number-of-elements is the number of elements of status to read.
Use the -t option to print any volume tags encountered.