samlibcfg - Oracle HSM direct attached tape library commands
∕opt∕SUNWsamfs∕sbin∕samlibcfg
[\fB-a\]
[-i
wwn∕sgen∕samst path]
[-e
eq]
[-g
]
[-v
]
[-h
]
SUNWsamfs
The samlibcfg
command detects and configures all the direct attached
tape libraries. It finds the device paths for the media changers and tape
drives and generates an output which is used in the mcf file. The library
inventory (tape cartridge barcodes) is stored at
∕tmp∕LIBRARYfamily set.mediatype for each of
the libraries and the media types available.
The environment variable TAPE_LIBS can be also set to "all" or a list of wwns and∕or sgen∕samst paths for configuration.
These commands accept the following options:
-a
Displays the output with all the device paths for the media changers and the tape drives.
-i
wwn∕sgen∕samst pathThe -i option allows the user to list specific wwns or sgen or samst paths for configuration.
-e
eqThe -e option enables to configure with a user specified starting equipment ordinal number eq. By default, the starting equipment number is 80.
-g
The -g option outputs the generic device types (rb, tp) in the configuration.
-v
This is a verbose option and displays the configuration with debug information.
-h
Displays usage and help information for the command.
Example 1. The following example outputs the direct attached libraries
server# samlibcfg -a ∕dev∕scsi∕changer∕c5t500104F000B9A40Bd0 80 sn LIBRARY1 on ∕dev∕rmt∕0cbn 81 li LIBRARY1 on ∕dev∕rmt∕1cbn 82 li LIBRARY1 on ∕dev∕rmt∕2cbn 83 li LIBRARY1 on
Example 2. The following example specifies a wwn as a argument
server# samlibcfg -i ∕dev∕scsi∕changer∕c5t500104F000B9A40Bd0 ∕dev∕scsi∕changer∕c5t500104F000B9A40Bd0 80 sn LIBRARY1 on ∕dev∕rmt∕0cbn 81 li LIBRARY1 on ∕dev∕rmt∕1cbn 82 li LIBRARY1 on ∕dev∕rmt∕2cbn 83 li LIBRARY1 on
Example 3. The following example specifies a different starting equipment number
server# export TAPE_LIBS="all" server# samlibcfg -e 10 ∕dev∕scsi∕changer∕c5t500104F000B9A40Bd0 10 rb LIBRARY1 on ∕dev∕rmt∕0cbn 11 tp LIBRARY1 on ∕dev∕rmt∕1cbn 12 tp LIBRARY1 on ∕dev∕rmt∕2cbn 13 tp LIBRARY1 on
∕etc∕opt∕SUNWsamfs∕mcf
The configuration file for a StorageTek QFS or Oracle HSM file system