Hi, If you take a close look at the ndmp.org ftp site (ftp.ndmp.org), you'll see a test application built on top of the SDK called ndmptest. This contains code to manipulate a SCSI library via NDMP and has been compiled for use on a Solaris system. The code resides in /pub/version.2/contrib and is *very* interactive, but it provides the next layer on top of the SDK (ndmp_api) to build test applications that you're after. The test application provides a menu of options for each NDMP defined interface:
ndmp_test -host filer
**************************************** * * * NDMP Test Application * * * ****************************************
Received ndmp_notify_connected request: version:2 reason:CONNECTED Connection successful
Enter Command > h
Help Menu ---------
C - Connect Interface Menu CA - Connect Client Authentication CC - Connect Close CO - Connect Open CS - Connect Server Authentication D - Data Interface Menu DA - Data Abort DB - Data Start Backup DE - Data Get Env DG - Data Get State DR - Data Start Recover DS - Data Stop H - This Help Menu I - Config Interface Menu IA - Config Get Authentication Attributes IB - Config Get Backup Type Attributes IH - Config Get Host Info IM - Config Get Mover Type M - Mover Interface Menu MA - Mover Abort MB - Mover Set Record (Block) Size MC - Mover Close MG - Mover Get State ML - Mover Listen MO - Mover Continue MR - Mover Read MS - Mover Stop MW - Mover Set Window S - Scsi Interface Menu SC - Scsi Close SG - Scsi Get State SI - Scsi Inquiry SMM - Scsi Move Medium SMS - Scsi Mode Sense SN - Scsi Initialize Element Status SO - Scsi Open SRB - Scsi Reset Bus SRE - Scsi Read Element Status SRP - Scsi Read Position SRT - Scsi Reset Target SS - Scsi Set Target STP - Toggle DLT PERFMODE STU - Scsi Test Unit Ready T - Tape Interface Menu TC - Tape Close TM - Tape MTIO TO - Tape Open TS - Tape Get State X - Exit Program
Enter Command > S
Scsi Interface Menu -------------------
SC - Scsi Close SG - Scsi Get State SI - Scsi Inquiry SMM - Scsi Move Medium SMS - Scsi Mode Sense SN - Scsi Initialize Element Status SO - Scsi Open SRB - Scsi Reset Bus SRE - Scsi Read Element Status SRP - Scsi Read Position SRT - Scsi Reset Target SS - Scsi Set Target STP - Toggle DLT PERFMODE STU - Scsi Test Unit Ready
Enter Command >
The code is presented as reference code and "use at your own risk".
Cheers, Grant
-----Original Message----- From: cng1@cecil.muscat.com [mailto:cng1@cecil.muscat.com] Sent: Tuesday, June 08, 1999 2:45 PM To: toasters@mathworks.com Subject: Re: DLT library controls
grdodson@lexmark.com wrote:
ndmp-probe - a "probe-scsi" like command to find where NDMP devices are (not as obvious as you would think) ndmp-index - a program which maps out the robot's state using SCSI "Read Element Status" commands ndmp-move - a program that orders the robot to "Move Medium" Unfortunately I cannot share my work without getting the corporate lawyers involved
Gah, this sounds like exactly the sort of thing I and I imagine many others would like. If anyone does have code to do this and can release it then please do so. If nobody has then I'll have a look at the ndmp sdk and see how far I get (probably nowhere but its worth a go).
Chris