Operating System - HP-UX
1833776 Members
2345 Online
110063 Solutions
New Discussion

cstm script for DLT drives

 
SOLVED
Go to solution
A. Daniel King_1
Super Advisor

cstm script for DLT drives

Hi, folks.

I'm trying to write a script using cstm to display the current status (selclass ???;info;infolog) of our DLT tape drives, and I can't seem to get the syntax right.

What is the correct syntax for selclass (or other) to get all DLT drives on the system?

Thanks.
Command-Line Junkie
2 REPLIES 2
S.K. Chan
Honored Contributor
Solution

Re: cstm script for DLT drives

Break it down by "type" and "qualifier", like so ..
# echo "selclass type tape qualifier dlt;info;wait;infolog"|cstm > /tmp/dlt.data
The type would be "tape" and the qualifier would be "dlt". I did not have the chance to test but I think it should work.
A. Daniel King_1
Super Advisor

Re: cstm script for DLT drives

It worked like a charm. Thanks.
Command-Line Junkie