Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 1996 12:09:09 +0200 (SAT)
From:      John Hay <jhay@mikom.csir.co.za>
To:        dufault@hda.com (Peter Dufault)
Cc:        kallio@beeblebrox.pccc.jyu.fi, questions@freebsd.org, hardware@freebsd.org
Subject:   Re: HP C1553A Autoloading DDS-2 DAT tape drive control?
Message-ID:  <199604251009.MAA25078@zibbi.mikom.csir.co.za>
In-Reply-To: <199601262348.SAA08084@hda.com> from "Peter Dufault" at Jan 26, 96 06:48:44 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I also got a HP Autoloader and except for two small changes which I attach
at the end, it works fine.

Thanks, it saved me quite a lot of effort trying to figure it out.

John
-- 
John Hay -- John.Hay@mikom.csir.co.za

> > 
> > Hi, we have HP C1553A Autoloading DDS2 DAT tape drives attached to 
> > a FreeBSD node. Is there a program available  that would allow me to 
> > fully manipulate the drive?
> > 
> > I have code for HPUX and Solaris, but it is so OS dependend I cannot 
> > compile it in FreeBSD.
> 
> You can use scsi(8) to send commands to the device.  Something like
> this (I didn't run this - this is a dramatization based on that C
> code) saved as dds_changer and made executable.  As a raw-device-name
> you must use something that accepts the SCSI ioctl calls - the
> control device for whatever it comes on line as will.
> 
> #!/bin/sh
> PATH="/sbin:/usr/sbin:/bin:/usr/bin"; export PATH
> 
> usage()
> {
> 	echo "Usage: dds_changer [123456ne] raw-device-name
> 	echo "1..6 = Select cartridge"
> 	echo "next cartridge"
> 	echo "eject magazine"
> 	exit 2
> }
> 
> if [ $# -ne 2 ] ; then
>     usage
> fi
> 
> cdb3=0
> cdb4=0
> cdb5=0
> 
> case $1 in
>      [123456])
>        cdb3=$1
>        cdb4=1
>        ;;
>      n)
>        ;;
>      e)
>        cdb5=0x80
>        ;;
>      ?)
>        usage
>        ;;
> esac
> 
> scsi -f $2 -s 100 -c "1b 0 0 v v v" $cdb3 $cdb4 $cdb5
> 


*** dds_changer.org	Thu Apr 25 09:51:07 1996
--- dds_changer	Thu Apr 25 11:59:24 1996
***************
*** 3,9 ****
  
  usage()
  {
! 	echo "Usage: dds_changer [123456ne] raw-device-name
  	echo "1..6 = Select cartridge"
  	echo "next cartridge"
  	echo "eject magazine"
--- 3,9 ----
  
  usage()
  {
! 	echo "Usage: dds_changer [123456ne] raw-device-name"
  	echo "1..6 = Select cartridge"
  	echo "next cartridge"
  	echo "eject magazine"
***************
*** 33,37 ****
         ;;
  esac
  
! scsi -f $2 -s 100 -c "1b 0 0 v v v" $cdb3 $cdb4 $cdb5
  
--- 33,37 ----
         ;;
  esac
  
! scsi -f $2 -s 100 -c "1b 0 0 $cdb3 $cdb4 $cdb5"
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604251009.MAA25078>