Viewing tape devices on Solaris hosts


I have been repairing our backup environment for the past few weeks, and have encountered several nifty tools in the Netbackup volumen management bin directory. Once of these tools is the scan utility, which displays the robots and tape devices visible to a system:

$ /usr/openv/volmgr/bin/scan |more

------------------------------------------------------------
Device Name : "/dev/rmt/0cbn"
Passthru Name: "/dev/sg/c0tw500104f0005f027cl0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "STK T9940B 1.35"
Vendor ID : "STK "
Product ID : "T9940B "
Product Rev: "1.35"
Serial Number: "479000037011"
WWN : ""
WWN Id Type : 0
Device Identifier: ""
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0

<.....>

This utility is extremely useful for getting the device paths for a specific tape device, and for viewing the information returned from a SCSI INQUIRY command. Viva la scan!

This article was posted by Matty on 2007-07-29 14:05:00 -0400 EDT