How to Map Host and STA Drive Identifiers
STA does not know the host's logical device ID for a drive. To identify a drive, you must manually map the host drive identifiers to the STA identifiers such as drive serial number, World Wide Name (WWN), or physical location.
Mainframe Identifiers
Mainframe hosts use a four-digit hexadecimal drive ID (0000–FFFF) to identify a drive. To map the host identifiers to the STA identifiers, you can use Oracle's Enterprise Library Software (ELS) Display DRives command on the mainframe host. The IDEntity option lists the mainframe hexadecimal ID, serial number, and WWN for each drive. Following is an example of the command output.
Sample ELS Display DRives Command Output
DISPLAY DRIVES IDENTITY
.SLS4633I Display Drives Command 994
DRIVE LOCATION MODEL WORLD WIDE NAME SERIAL NUMBER
0A10 00:02:01:08 T9840D 50:01:04:F0:00:79:18:CD 5700GU008737
0A11 00:02:01:09 T9840D 50:01:04:F0:00:79:18:C1 5700GU006080
0B04 01:01:01:14 T9940B 50:01:04:F0:00:89:A7:74 479000025047
0B05 01:02:01:14 T9940B 50:01:04:F0:00:89:A7:44 479000026693
0B06 01:02:01:15 T1B35 50:01:04:F0:00:89:A7:68 572004003720
0B07 01:02:01:11 T1B35 50:01:04:F0:00:89:A7:68 572004003720
You can issue this command from a variety of locations on the mainframe host, including the operator console or an SMCUUUI utility batch job. Optionally, you can save the output of the command to a.csv or .xml file. See the ELS Command, Control Statement, and Utility Reference manual for complete details about usage, syntax, and options.
Open Systems Identifiers
On open systems hosts (Linux and Solaris), logical device names for tape drives are found in the /dev/rmt directory. To map the host logical names to the STA identifiers, you can do a long listing (ls -l) of this directory. The command output shows the logical device name and the pointer to the raw device file, which includes the WWN for the drive. Following is an example of the output on Linux; the logical device name and WWN for each drive are highlighted in bold type.
Sample Linux /dev/rmt Directory Listing
# ls -l /dev/rmt lrwxrwxrwx 1 root root 86 Jan 31 16:31 /dev/rmt/0cbn ->../../devices/pci@79,0/pci10de,377@a/pci1077,171@0/fp@0,0/tape@w500104f000b8050e,0:cbn lrwxrwxrwx 1 root root 86 Jan 31 16:31 /dev/rmt/1cbn ->../../devices/pci@79,0/pci10de,377@a/pci1077,171@0/fp@0,0/tape@w500104f000b80511,0:cbn #