maniu@securebrain.com:~/dataprotector# vi lib_scsi



DAL BMA

C:\Program Files\OmniBack\bin>uma -ioctl scsi3:0:3:0
*** PROGRAM: UMA        VERSION: HP OpenView Storage Data Protector A.05.00

*** (c) Copyright Hewlett-Packard Company 2002
*** License is restricted for use with licensed
*** HP OpenView Storage Data Protector products.

scsi3:0:3:0> help
Commands:
        inq                      read SCSI inquiry data
        res                      reserve ioctl device
        rel                      release ioctl device
        init                     init element status
        addr                     read element addresses
        offl <drive>          put drive off-line
        sense                    read sense data
        modesense [page]         read mode sense data
        pos <slot>               position element
        move <from> <to [0|1]   move element
        stat {[<slot>|D|T|X|S]}  read element status
        test                     test unit ready
        doorlock [1|0]           locking or unlocking library door
        bye, exit, quit          terminate program execution
scsi3:0:3:0> stat
Element Status (T=Transport, X=Im/Export, D=Drive, S=Storage):
          0 T1   Empty  "" ""

         10 X1   Empty  "" ""

        500 D1   Empty  "" ""

        1000 S1   Full  "" ""
        1001 S2   Full  "" ""
        1002 S3   Full  "" ""
        1003 S4   Full  "" ""
        1004 S5   Full  "" ""
        1005 S6   Full  "" ""
        1006 S7   Full  "" ""
        1007 S8   Full  "" ""
        1008 S9   Empty "" ""
scsi3:0:3:0> move s5 d1
scsi3:0:3:0> stat
Element Status (T=Transport, X=Im/Export, D=Drive, S=Storage):
          0 T1   Empty  "" ""

         10 X1   Empty  "" ""

        500 D1   Full   "" "" from S5

        1000 S1   Full  "" ""
        1001 S2   Full  "" ""
        1002 S3   Full  "" ""
        1003 S4   Full  "" ""
        1004 S5   Empty "" ""
        1005 S6   Full  "" ""
        1006 S7   Full  "" ""
        1007 S8   Full  "" ""
        1008 S9   Empty "" ""
scsi3:0:3:0>
 per fare l'operazione inversa: scsi3:0:3:0> move d1 s5
bisogna:
-- lanciare uma con tutti i device: 
C:\Program Files\OmniBack\bin>uma -ioctl scsi3:0:3:0 -device /dev/rmt../../ /dev/rmt../../ 

/dev/rmt../../
-- mettere il drive offline (ovvero per scaricare il nastro dal drive)
scsi3:0:3:0>offl d3
scsi3:0:3:0> move d1 s5





:q!