SUMMARY: Verifying st.conf

From: Marco Greene <mwegreene_at_hotmail.com>
Date: Thu Jun 26 2003 - 13:59:45 EDT
Thanks to Jay Lessert.  I have confirmed this to be the case.

-----Original Message-----
From: Jay Lessert [mailto:jayl@accelerant.net] 
Sent: June 26, 2003 1:13 PM
To: Marco Greene
Subject: Re: Verifying st.conf


On Thu, Jun 26, 2003 at 08:26:51AM -0400, Marco Greene wrote:
> Hi all,
> 	Got a quick question about st.conf.  How do you verify that your
> tape drive loaded in the settings within st.conf?  i.e.  If you typed in
> "Compaq SLT" did that take or should you have had a few more spaces.  I
> can't seem to find any documentation on how to check that?

The st(7D) man page alludes to it vaguely.  :-)

st(7D): The formal syntax is:
st(7D): 
st(7D):      tape-config-list = <triplet> [, <triplet> *];
st(7D):       where
st(7D): 
st(7D):      <triplet> := <vid+pid>, <pretty print>, <data-property-name>
st(7D):      and
st(7D): 
st(7D):      <data-property-name> = <version>, <type>, <bsize>,
st(7D):              <options>, <number of densities>,
st(7D):              <density> [, <density>*], <default-density>;
st(7D): 
st(7D):      <vid+pid> is the string that is returned by the tape  device
st(7D):      on a SCSI inquiry command.
st(7D): 
st(7D):      <pretty print> is used to report the device on the  console.
st(7D):      This  string  may  have  zero  length,  in  which  case  the
st(7D):      <vid+pid> will be used to report the device.

<vid+pid> is your "Compaq   SLT" (with, for example, *exactly* three
spaces, the sort of thing you are worried about).

<pretty print> is the "Compaq Gazingabyte Tape", so your tape-config-list
looks something like:

tape-config-list =
	"Compaq   SLT",	"Compaq Gazingabyte Tape",	"CSLT-200";

If the <pretty print> string shows up /var/adm/messages at boot time,
then the st driver matched st.conf with the device.

If *only* the <vid+pid> shows up (in single-quotes, I think), then
it was not matched.

I believe the same holds true for 'mt -f /dev/rmt/xxx status'.

-- 
Jay Lessert                               jay_lessert@accelerant.net
Accelerant Networks Inc.                       (voice)1.503.439.3461
Beaverton OR, USA                                (fax)1.503.466.9472
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Jun 26 14:03:55 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:15 EST