Adic Server Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Computers Adic Server herunter. ADIC Server User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 218
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - Interfacing

The ADICDistributed AML ServerDAS V3.10E Interfacing Guide

Seite 2 - Copyright Notice (Europe)

viii Contents 601626-Bdas_force . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7d

Seite 3

4-58 DAS ACI Functions 601626-BIf the eject area is full the system stops the eject procedure. Depending on the DAS_EJECTAREAFULL environment variable

Seite 4

aci_ejectclean 4-5921 Dec 2001 • EBADCLIENT• ERETRYL• EINUSE• ECANCELED• EDASINT• ENOMATCH• ETIMEOUT• ESWITCHINPROG• ENOPOOL• EAREAFULL• EHICAPINUSE•

Seite 5 - Contents

4-60 DAS ACI Functions 601626-BFigure 4-48 Example of the aci_ejectclean Functionaci_emailThe aci_email function sends email messages. See Figure 4-49

Seite 6 - DAS ACI Functions

aci_flip 4-6121 Dec 2001 Only supported by the Scalar DLC software.Return Values• 0: The call was successful.• -1: The call failed.The external varia

Seite 7 - Contents v

4-62 DAS ACI Functions 601626-BReturn Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the foll

Seite 8

aci_flip 4-6321 Dec 2001 • EBARCODE• EAREAFULLSee Figure 4-51 for an example of the aci_flip function.Figure 4-51 Example of the aci_flip Function/*

Seite 9 - Contents vii

4-64 DAS ACI Functions 601626-Baci_forceThe aci_force function dismounts any cartridge from a specific drive. See Figure 4-52.Figure 4-52 aci_force Fu

Seite 10 - Application Notes

aci_force 4-6521 Dec 2001 • EBADCLIENT• ENOTMOUNTED• ECANCELED• EDASINT• ENOMATCH• ETIMEOUT• ESWITCHINPROG• EHICAPINUSE• ECOORDINATE• EBARCODE• EINVA

Seite 11 - Contents ix

4-66 DAS ACI Functions 601626-Baci_foreignThe aci_foreign function catalogs a foreign volume. SeeFigure 4-54.Figure 4-54 aci_foreign Function CallWhen

Seite 12

aci_foreign 4-6721 Dec 2001 This version does not have a command to display occupied symbolic volsers. Please note this assignment; the symbolic vols

Seite 13

Contents ix21 Dec 2001 Error Recovery Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-3Te

Seite 14

4-68 DAS ACI Functions 601626-BFigure 4-55 Example of the aci_foreign Function.aci_getvolsertodriveThe aci_getvolsertodrive function gets the configur

Seite 15 - Figures xi

aci_getvolsertodrive 4-6921 Dec 2001 Figure 4-57 aci_voltodrive_entry StructureSee Table 4-26 for a description of the parameters for the aci_getvols

Seite 16

4-70 DAS ACI Functions 601626-BFigure 4-58 Example of the aci_getvolertodrive Functionaci_getVolserToSideThe aci_getvolsertoside function returns the

Seite 17 - Figures xiii

aci_getVolserToSide 4-7121 Dec 2001 Figure 4-60 Structure of Type aci_sideinfoThe define ‘ACI_SIDE_NUMBER’ parameter is set, in aci.h, to 2. See Tabl

Seite 18

4-72 DAS ACI Functions 601626-BFigure 4-61 Example of the aci_getvolsertoside Functionaci_initThe aci_init function initializes the AML for client use

Seite 19

aci_init 4-7321 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the following

Seite 20

4-74 DAS ACI Functions 601626-Baci_initializeThe aci_initialize function initializes ACI library for client use. See Figure 4-64.Figure 4-64 aci_initi

Seite 21 - Tables xvii

aci_insert 4-7521 Dec 2001 aci_insertThe aci_insert function inserts volumes into the AML. See Figure 4-66.Figure 4-66 aci_insert Function CallThis f

Seite 22

4-76 DAS ACI Functions 601626-BUse the insert2 function instead of this command. This function experiences difficulties with large I/O units with long

Seite 23 - Introduction

aci_insert2 4-7721 Dec 2001 • EBARCODE• EAREAFULLRefer to Figure 4-67 on page 4-77 for an example of the aci_insert function.Figure 4-67 Example of t

Seite 25 - Organization

4-78 DAS ACI Functions 601626-B• Volsers which already have a entry in the AMU database, will be moved to this position.• Volsers which have no entry

Seite 26 - Associated Documents

aci_insert2 4-7921 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the follow

Seite 27 - Assistance

4-80 DAS ACI Functions 601626-B• EDATABASE• ENOTSUPPHCMD• EAREAEMPTY• ENOPOOL• EBARCODE• EAREAFULLSee Figure 4-70 for an example of the aci_insert2 fu

Seite 28 - 1-6 Introduction

aci_inventory 4-8121 Dec 2001 aci_inventoryThe aci_inventory function performs a physical inventory of the AML. See Figure 4-71.Figure 4-71 aci_inven

Seite 29

4-82 DAS ACI Functions 601626-B• EHICAPINUSE• ECOORDINATE• EBARCODESee Figure 4-72 for an example of the aci_inventory function.Figure 4-72 Example of

Seite 30 - 2-2 DAS ACI

aci_killamu 4-8321 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the follow

Seite 31

4-84 DAS ACI Functions 601626-Baci_listThe aci_list function lists outstanding requests for a client. See Figure 4-75.Figure 4-75 aci_list Function Ca

Seite 32 - ACI Services

aci_list 4-8521 Dec 2001 See Table 4-31 for an explanation of the req_types.Table 4-30 Parameters for the aci_list Function CallParameter Description

Seite 33 - ACI Services 2-5

4-86 DAS ACI Functions 601626-BReturn Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the foll

Seite 34 - 2-6 DAS ACI

aci_list2 4-8721 Dec 2001 aci_list2The aci_list2 function lists executing requests for a client. See Figure 4-78.Figure 4-78 aci_list2 Function CallL

Seite 35 - Media Types

Figures Figure 2-1 Logical Relationship Between AML Components . . . . . . . . . . . . . . .2-3Figure 4-1 aci_barcode Function Call . . . . . . . . .

Seite 36 - DAS Error Codes

4-88 DAS ACI Functions 601626-BSee Table 4-33 for an explanation of the req_types.Table 4-32 Parameters for the aci_list2 Function CallParameter Descr

Seite 37

aci_list_foreign 4-8921 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the f

Seite 38 - 3-2 Safety

4-90 DAS ACI Functions 601626-BFigure 4-81 Example of the Returned StructureRefer to Table 4-34 for a description of the parameters for the aci_list_f

Seite 39 - Hazard Alert Messages

aci_mount 4-9121 Dec 2001 aci_mountThe aci_mount function mounts a volume in a drive. See Figure 4-82Figure 4-82 aci_mount Function CallMount the vol

Seite 40 - Attention

4-92 DAS ACI Functions 601626-B• EDRVOCCUPIED• EPROBVOL• EAMU• EAMUCOMM• EROBOTCOMM• EDASINT• EDEVEMPTY• ENOTAUTH• EUPELSE• EBADCLIENT• ERETRYL• EINUS

Seite 41 - Validity

aci_partial_inventory 4-9321 Dec 2001 Figure 4-83 Example of the aci_mount Functionaci_partial_inventoryThe aci_partial_inventory function inventorie

Seite 42 - 3-6 Safety

4-94 DAS ACI Functions 601626-BThe aci_partial_inventory function is intended for testing and startup. An error function will be displayed in the AMU

Seite 43 - Functions

aci_partial_inventory 4-9521 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of

Seite 44 - 4-2 DAS ACI Functions

4-96 DAS ACI Functions 601626-Baci_perrorThe aci_perror function writes DAS error text to standard error. See Figure 4-86.Figure 4-86 aci_perror Funct

Seite 45

aci_qversion 4-9721 Dec 2001 aci_qversionThe aci_qversion function queries the version string of ACI and DAS component. See Figure 4-88.Figure 4-88 a

Seite 46 - 4-4 DAS ACI Functions

x Figures 601626-BFigure 4-22 aci_drivestatus4 Function Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-29Figure 4-23 Returned Stat

Seite 47

4-98 DAS ACI Functions 601626-BFigure 4-89 Example of the aci_qversion Functionaci_qvolsrangeThe aci_qvolsrange queries the list of available volsers.

Seite 48

aci_qvolsrange 4-9921 Dec 2001 Figure 4-91 Amount of Listed VolsersSee Figure 4-92 for the aci_volserinfo function structure.Figure 4-92 Structure fo

Seite 49

4-100 DAS ACI Functions 601626-BIf the startvolser and endvolser parameters are set to the NULL string ("" or ’\0’), a search will start at

Seite 50

aci_qvolsrange 4-10121 Dec 2001 Return Values• 0: The call was successful.• 1: More data is available.• -1: The call failed.The external variable d_e

Seite 51

4-102 DAS ACI Functions 601626-BFigure 4-93 Example of the aci_qvolsrange Function/* Query volser range */int rc = 0;char szBeginVolser[ ACI_VOLSER_L

Seite 52 - 4-10 DAS ACI Functions

aci_register 4-10321 Dec 2001 aci_registerThe aci_register function registers a client. See Figure 4-94.Figure 4-94 aci_register Function CallClients

Seite 53

4-104 DAS ACI Functions 601626-BReturn Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the fol

Seite 54

aci_register 4-10521 Dec 2001 Figure 4-95 Example of the aci_register Function/* Modify existing client configuration */int rc =0;char *client = &quo

Seite 55

4-106 DAS ACI Functions 601626-Baci_robhomeThe aci_robhome function sets the robot (accessor in Scalar 1000) in the AML to off-line and moves it to th

Seite 56 - 4-14 DAS ACI Functions

aci_robstat 4-10721 Dec 2001 • EHICAPINUSE• ECOORDINATE• EDATABASE• ENOTSUPPHCMDSee Figure 4-97 for an example of the aci_robhome function.Figure 4-9

Seite 57

Figures xi21 Dec 2001 Figure 4-55 Example of the aci_foreign Function. . . . . . . . . . . . . . . . . . . . . . . . . . 4-68Figure 4-56 aci_getvolse

Seite 58 - 4-16 DAS ACI Functions

4-108 DAS ACI Functions 601626-BReturn Values• 0: The call was successful• -1: The call failedThe external variable d_errno is set to one of the follo

Seite 59

aci_scratch_get 4-10921 Dec 2001 Figure 4-99 Example of the aci_robstat Functionaci_scratch_getThe aci_scratch_get function gets a scratch volume. Se

Seite 60 - 4-18 DAS ACI Functions

4-110 DAS ACI Functions 601626-BReturn Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the fol

Seite 61

aci_scratch_info 4-11121 Dec 2001 Figure 4-101 Example of the aci_scratch_get Functionaci_scratch_infoThe aci_scratch_info function gets information

Seite 62

4-112 DAS ACI Functions 601626-BReturn Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the fol

Seite 63

aci_scratch_info 4-11321 Dec 2001 Figure 4-103 Example of the aci_scratch_info Function/* List scratch pool information */int rc;char *pszPoolName =

Seite 64

4-114 DAS ACI Functions 601626-Baci_scratch_set The aci_scratch_set function sets volume status to scratch. See Figure 4-104.Figure 4-104 aci_scratch_

Seite 65

aci_scratch_set 4-11521 Dec 2001 The command will be rejected with the message EOTHERPOOL if the medium already exists in another scratch pool.For ad

Seite 66 - 4-24 DAS ACI Functions

4-116 DAS ACI Functions 601626-Baci_scratch_unsetThe aci_scratch_unset function resets the scratch status of a volume. See Figure 4-106.Figure 4-106 a

Seite 67

aci_scratch_unset 4-11721 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the

Seite 68 - 4-26 DAS ACI Functions

xii Figures 601626-BFigure 4-88 aci_qversion Function Call. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-97Figure 4-89 Example

Seite 69

4-118 DAS ACI Functions 601626-Baci_shutdownThe aci_shutdown function shuts down the DAS software. See Figure 4-108.Figure 4-108 aci_shutdown Function

Seite 70 - 4-28 DAS ACI Functions

aci_snmp 4-11921 Dec 2001 Figure 4-109 Example of the aci_shutdown Functionaci_snmpThe aci_snmp function sends SNMP messages. See Figure 4-110.Figure

Seite 71

4-120 DAS ACI Functions 601626-BThe external variable d_errno is set to one of the following DAS error codes:• ERPC• EINVALID• ETIMEOUT• ESWITCHINPROG

Seite 72 - 4-30 DAS ACI Functions

aci_switch 4-12121 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the follow

Seite 73

4-122 DAS ACI Functions 601626-Baci_unloadThe aci_unload function presses one or more buttons on a drive in the AML. See Figure 4-113.Figure 4-113 aci

Seite 74 - 4-32 DAS ACI Functions

aci_view 4-12321 Dec 2001 aci_viewThe aci_view function is used to view a database entry for a volume. See Figure 4-114.Figure 4-114 aci_view Functio

Seite 75

4-124 DAS ACI Functions 601626-BSee Table 4-53 for an explanation of the table types.Table 4-52 Parameters for the aci_view Function CallParameter Des

Seite 76 - 4-34 DAS ACI Functions

aci_view 4-12521 Dec 2001 See Table 4-54 for an explanation of the table attributes.Return Values• 0: The call was successful.• -1: The call failed.T

Seite 77

4-126 DAS ACI Functions 601626-BFigure 4-116 Example of the aci_view Functionaci_volser_inventoryThe aci_volser_inventory function inventories the vol

Seite 78 - 4-36 DAS ACI Functions

aci_volser_inventory 4-12721 Dec 2001 Return Values• 0: The call was successful• -1: The call failedThe external variable d_errno is set to one of th

Seite 79

Figures xiii21 Dec 2001 Figure 5-1 Example of a Generic aci_async_add() Function . . . . . . . . . . . . . . . . 5-5Figure 5-2 aci_async_add Functio

Seite 80 - 4-38 DAS ACI Functions

4-128 DAS ACI Functions 601626-Baci_volseraccessThe aci_volseraccess function sets ownership of a volser or range of volsers. See Figure 4-118.Figure

Seite 81

aci_volserstatus 4-12921 Dec 2001 • EUPELSE• ERPC• EINVALID• ENOVOLUME• EDASINT• EBADCLIENT• ENOTAUTH• ETIMEOUT• ESWITCHINPROG• EUPOWNaci_volserstatu

Seite 82

4-130 DAS ACI Functions 601626-BFigure 4-120 aci_volser_entry StructureSee Table 4-57 for a description of the parameters for the aci_volserstatus fun

Seite 83

5DAS ACI 3.0 Asynchronous Support LayerOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 84 - 4-42 DAS ACI Functions

5-2 Safety601626-Baci_eject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Seite 85

Overview 5-321 Dec 2001 5-OverviewAsynchronous Support Layer library works as a filter between existing ACI libraries (version 3 or later) and the cl

Seite 86 - 4-44 DAS ACI Functions

5-4 DAS ACI 3.0 Asynchronous Support Layer 601626-B• eject: eject/elect complete volsers• allocv: allocate volser• allocd: allocate drive• script: run

Seite 87

aci_async_add() 5-521 Dec 2001 aci_async_add - adds an entry in the shared memory areaaci_async_create - creates and initializes the shared memory

Seite 88 - 4-46 DAS ACI Functions

5-6 DAS ACI 3.0 Asynchronous Support Layer 601626-Bdas_mountThe aci_async_add function with the das_mount parameter mounts a volume in a drive. See Fi

Seite 89

aci_async_add() 5-721 Dec 2001 das_dismountThe aci_async_add function with the das_dismount parameter dismounts a volume. See Figure 5-4.Figure 5-4 a

Seite 91

5-8 DAS ACI 3.0 Asynchronous Support Layer 601626-Bdas_insertThe aci_async_add function with the das_insert parameter inserts volumes into the AML. Se

Seite 92

aci_async_add() 5-921 Dec 2001 Use the insert2 function instead of this command. This function experiences difficulties with large I/O units with lon

Seite 93

5-10 DAS ACI 3.0 Asynchronous Support Layer 601626-BThe database entry for the volume is not deleted, and the position in the AML that the volume occu

Seite 94 - 4-52 DAS ACI Functions

aci_async_add() 5-1121 Dec 2001 space is needed in the AML. If the volume is re-inserted into the AML, it is stored in the next available position, a

Seite 95

5-12 DAS ACI 3.0 Asynchronous Support Layer 601626-BFigure 5-9 Example of an aci_async_add Function. . ./* * sadmin sample application, dasadmin.c fi

Seite 96 - 4-54 DAS ACI Functions

aci_async_create() 5-1321 Dec 2001 aci_async_create()The aci_async_create function creates a shared memory array of the entry_num size, that will hol

Seite 97

5-14 DAS ACI 3.0 Asynchronous Support Layer 601626-BFigure 5-11 Example if the aci_async_create Functionaci_async_find()The aci_async_find function lo

Seite 98

aci_async_find() 5-1521 Dec 2001 Return ValuesThe call was successful if a pointer to the found value is returned.The call failed if zero is returned

Seite 99

5-16 DAS ACI 3.0 Asynchronous Support Layer 601626-Baci_async_free()The aci_async_free function clears the async_table entry. See Figure 5-14.Figure 5

Seite 100 - Return Values

Macros 5-1721 Dec 2001 All the parameters must comply with the rules for aci_mount function call.The local variables int res must be defined before u

Seite 101 - 21 Dec 2001

Tables Table 2-1 Routines Available with Basic Service Access . . . . . . . . . . . . . . . . . . 2-5Table 2-2 Routines Available with Complete Servi

Seite 102 - 601626-B

5-18 DAS ACI 3.0 Asynchronous Support Layer 601626-BFigure 5-17 aci_force Asynchronous ACI CallAll the parameters must comply with the rules for the a

Seite 103

Macros 5-1921 Dec 2001 aci_ejectThe aci_eject function ejects a range of volumes from the AML. See Figure 5-19.Figure 5-19 aci_eject Asynchronous Fun

Seite 104

5-20 DAS ACI 3.0 Asynchronous Support Layer 601626-BReturn ValuesThe d_errno and d_text globals are copied to the d_errno and d_text fields of the sha

Seite 105

Response Technique 5-2121 Dec 2001 Response TechniqueThis section describes the most desirable response processing technique.SetupThe following code

Seite 106

5-22 DAS ACI 3.0 Asynchronous Support Layer 601626-BSignal Handler RoutineThe following code processes the result of child process work. At the point

Seite 107

Data structures 5-2321 Dec 2001 Data structuresThis section provides and overview of the data structures used in asynchronous ACI data interchange. T

Seite 108 - 4-66 DAS ACI Functions

5-24 DAS ACI 3.0 Asynchronous Support Layer 601626-BFigure 5-23 Common Structure for aci_async_entrystruct _aci_async_entry { pid_t pid;

Seite 109

Parameter Data (Parms Structure) 5-2521 Dec 2001 Parameter Data (Parms Structure)This union contains several structures that hold the data required f

Seite 110 - 4-68 DAS ACI Functions

5-26 DAS ACI 3.0 Asynchronous Support Layer 601626-BResponse Data (Structure)This union contains several structures where the asynchronous call result

Seite 111

Response Data (Structure) 5-2721 Dec 2001 st_insert_responseThis structure is supported by ACI_INSERT macro, described above. If you do not use macro

Seite 112 - 4-70 DAS ACI Functions

ADIC CORPORATE • 11431 WILLOWS ROAD, NE • REDMOND, WASHINGTON, USA • 1-800-336-1233ADIC • 8560 UPLAND DRIVE • PARKER, COLORADO, USA • 1-800-827-3822AD

Seite 113

xvi Tables 601626-BTable 4-19 Parameters for the aci_eject2_complete Function Call. . . . . . . . . . . 4-52Table 4-20 Parameters for the aci_eject3_c

Seite 114 - 4-72 DAS ACI Functions

5-28 DAS ACI 3.0 Asynchronous Support Layer 601626-B

Seite 115

AApplication NotesOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 116

A-2 Application Notes601626-B

Seite 117

Overview A-321 Dec 2001 A-OverviewThis section contains information on error recovery procedures and explanations of terms used throughout this docum

Seite 118

A-4 Application Notes 601626-B6 EPROBVOL The AMS returned a error code from robot control or information about an unrecoverable situation in the AML.

Seite 119

Error Recovery Procedures A-521 Dec 2001 14 EBADHOST DAS was unable to resolve the IP-name to an address, or the address is invalid. Check the TCP/IP

Seite 120 - 4-78 DAS ACI Functions

A-6 Application Notes 601626-B22 ERERTRYL The maximum number of automatic retries for recovering has been exceeded.There is a problem in the AMS.Check

Seite 121

Error Recovery Procedures A-721 Dec 2001 26 ENOTFOUND Problem with parameters in the command. Check the command and confirm the parameters with the A

Seite 122 - 4-80 DAS ACI Functions

A-8 Application Notes 601626-B35 ESWITCHINPROG The commands can not be executed. DAS and AMS are being switched to the other AMU. Wait until the switc

Seite 123

Terms A-921 Dec 2001 TermsThis section contains explanations of terms used throughout this document.45 EUPOWN The Client tried to allocate volsers th

Seite 124 - Attentio

Tables xvii21 Dec 2001 Table 4-52 Parameters for the aci_view Function Call . . . . . . . . . . . . . . . . . . . 4-124Table 4-53 Table Types. . . .

Seite 125

A-10 Application Notes 601626-BAPI Application Program InterfaceA program residing on the client’s platform used to interpret the client’s requests an

Seite 126 - 4-84 DAS ACI Functions

Terms A-1121 Dec 2001 Drive A device used to read and write data on a medium.eject The physical action of removing a medium from an archive. For a ro

Seite 127

A-12 Application Notes 601626-BNetwork The physical and logical connection of computers and peripheral devices that allows communication and data shar

Seite 128

Terms A-1321 Dec 2001 Volser, VSN Vo lume Serial NumberAn up to sixteen-digit alphanumeric designation. It identifies one medium (cartridge, optical

Seite 129

A-14 Application Notes 601626-B

Seite 130 - 4-88 DAS ACI Functions

Index- A -ACI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4ACI (AML Client Interface) . . . . . . . . . . . . . .

Seite 131

in-2 Index 601626-Badd volume to scratch pool . . . . . . . . . . . . . .2-7cancel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Seite 132

Index in-321 Dec 2001 Drive status . . . . . . . . . . . . . . . . . . . . . .4-5, 4-9, 4-21ACI client . . . . . . . . . . . . . . . . . . . . . . .

Seite 133

in-4 Index 601626-BScratch unset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-116Set scratch . . . . . . . . . . . . . . . . . . . . .

Seite 135

1IntroductionOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 136

1-2 Introduction601626-B

Seite 137

Overview 1-321 Dec 2001 1-OverviewThis guide contains information and instructions necessary to program an application for using the ADIC AML via the

Seite 138 - 4-96 DAS ACI Functions

1-4 Introduction 601626-BAssociated DocumentsYou may wish to reference the following documents:• 601324-A DAS V3.1 Release Guide• 601625-A DAS V3.1 Ad

Seite 139

Assistance 1-521 Dec 2001 AssistanceIf problems cannot be solved with the aid of this document or if recommended training is desired, contact the ADI

Seite 140 - 4-98 DAS ACI Functions

1-6 Introduction 601626-B

Seite 141

2DAS ACIOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3DA

Seite 143

2-2 DAS ACI601626-B

Seite 144 - 4-102 DAS ACI Functions

Overview 2-321 Dec 2001 2-OverviewThis section contains an overview of the DAS/2 software and information on AML Client Interface (ACI) services.DAS/

Seite 145

2-4 DAS ACI 601626-BThe DAS server component is an OS/2 program that runs within the AMU controller personal computer (PC). It converts DAS client req

Seite 146

ACI Services 2-521 Dec 2001 ACI Routines - Basic Services Table 2-1 lists the routines that are available to an ACI client with basic service access

Seite 147

2-6 DAS ACI 601626-Baci_eject2 Eject media from AML, and keep database entry for future insert requests. aci_ejectclean Eject clean media from AML, an

Seite 148

ACI Services 2-721 Dec 2001 Media Types The DAS ACI supports a variety of media types. The media type is passed as a parameter to all ACI functions t

Seite 149

2-8 DAS ACI 601626-BDAS Error CodesThe DAS ACI functions return either a successful or failed return code. In case of failure, a DAS error code d_errn

Seite 150

3SafetyOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3Haz

Seite 151

3-2 Safety601626-B

Seite 152

Overview 3-321 Dec 2001 3-OverviewKnowledge and observance of these instructions is imperative for the safe operation of the ADIC Storage Systems AML

Seite 153

iv [Chapter Name]601626-B

Seite 154

3-4 Safety 601626-BSpecially emphasized paragraphs in this guide warn of danger or draw attention to important information. These paragraphs and their

Seite 155

Validity 3-521 Dec 2001 ValidityThese instruction are valid for ADIC Storage Systems AML systems.Supplementary safety provisions for any components u

Seite 156

3-6 Safety 601626-B

Seite 157

4DAS ACI FunctionsOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 158 - 4-116 DAS ACI Functions

4-2 DAS ACI Functions601626-Baci_drivestatus2_one . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 159

4-321 Dec 2001Return Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-76aci_ins

Seite 160

4-4 DAS ACI Functions601626-BReturn Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 161

Overview 4-521 Dec 2001 4-OverviewAll ACI function calls and ACI structures are defined in the aci.h header file. ACI functions return 0 or -1 for su

Seite 162 - 4-120 DAS ACI Functions

4-6 DAS ACI Functions 601626-BThe Scalar 1000 does not support the aci_barcode command (barcode on Scalar 1000 will never read on mount and eject).Use

Seite 163

aci_cancel 4-721 Dec 2001 Figure 4-2 Example of the aci_barcode Functionaci_cancelThe aci_cancel function cancels a specific DAS request. See Figure

Seite 164

Contents 1IntroductionOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 165

4-8 DAS ACI Functions 601626-BThe cancel request cancels the command in the DAS server and the AML. If the request is being acted upon in the AML, DAS

Seite 166 - 4-124 DAS ACI Functions

aci_cleandrive 4-921 Dec 2001 aci_cleandriveThe aci_cleandrive function mounts a cleaning cartridge to a specific drive. See Figure 4-5.Figure 4-5 ac

Seite 167

4-10 DAS ACI Functions 601626-B• ERERTRYL• EINUSE• ECANCELLED• EDASINT• ECLEANING• ETIMEOUT• ESWITCHINPROG• EHICAPINUSE• EBARCODE• EINVALIDDEV• ENOROB

Seite 168 - 4-126 DAS ACI Functions

aci_clientaccess 4-1121 Dec 2001 aci_clientaccessThe aci_clientaccess function modifies the access lists of a client. See Figure 4-6.Figure 4-6 aci_c

Seite 169

4-12 DAS ACI Functions 601626-BThe changes will be lost when the DAS software is shut down. Only use this command if, at the time, you do not have acc

Seite 170

aci_clientaccess 4-1321 Dec 2001 Figure 4-7 Example of the aci_clientaccess Function/* Add a volser range to a clients access list */int rc = 0;enum

Seite 171

4-14 DAS ACI Functions 601626-Baci_clientstatusThe aci_clientstatus function queries client access list configuration. See Figure 4-8.Figure 4-8 aci_c

Seite 172

aci_clientstatus 4-1521 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the f

Seite 173 - Support Layer

4-16 DAS ACI Functions 601626-BFigure 4-10 Example of the aci_clientstatus Functionaci_dismountThe aci_dismount function dismounts a volume. SeeFigure

Seite 174 - 601626-B

aci_dismount 4-1721 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the follo

Seite 175 - Sadmin Sample Application

iv Contents 601626-BMedia Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7

Seite 176 - Sadmin Syntax

4-18 DAS ACI Functions 601626-BFigure 4-12 Example of the aci_dismount Functionaci_driveaccessThe aci_driveaccess function modifies allocation status

Seite 177 - Parameters

aci_driveaccess 4-1921 Dec 2001 The drive can only be put in the DOWN status by ACI_DRIVE_FDOWN if the drive is occupied.A drive may only be availabl

Seite 178

4-20 DAS ACI Functions 601626-BReturn ValuesThe aci_driveaccess returns the following values:• 0: The call was successful.• -1: The call failed.The ex

Seite 179

aci_drivestatus 4-2121 Dec 2001 aci_drivestatusThe aci_drivestatus function queries status of up to 15 drives. See Figure 4-15.Figure 4-15 aci_drives

Seite 180

4-22 DAS ACI Functions 601626-BReturn Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the foll

Seite 181

aci_drivestatus2 4-2321 Dec 2001 Figure 4-18 Returned StatusSee Table 4-8 for a description of the parameters for the aci_drivestatus2 function cal

Seite 182

4-24 DAS ACI Functions 601626-BThe maximum number of drives displayed is 250.aci_drive_entry returned information about the status of the drivesdrive_

Seite 183

aci_drivestatus2 4-2521 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the f

Seite 184

4-26 DAS ACI Functions 601626-BFigure 4-19 Example of the aci_drivestatus2 Functionaci_drivestatus3The aci_drivestatus3 function queries the physical

Seite 185

aci_drivestatus3 4-2721 Dec 2001 Figure 4-20 aci_drivestatus3 Function CallReturn the status of drives which are set to UP for the client with the na

Seite 186

Contents v21 Dec 2001 Return Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-

Seite 187

4-28 DAS ACI Functions 601626-Baci_drive_entry returned information about the status of the drivesdrive_name name of the drive (name used in DAS and A

Seite 188

aci_drivestatus4 4-2921 Dec 2001 Return Values• 0: The call was successful• -1: The call has failedThe external variable d_errno is set to one of the

Seite 189 - Return Value

4-30 DAS ACI Functions 601626-BFigure 4-23 Returned StatusThe variable ACI_SERIAL_NUMBER_LEN is equal to 51.See Table 4-10 for an explanation of the

Seite 190 - Returned values

aci_drivestatus4 4-3121 Dec 2001 Return Values• 0: The call was successful• -1: The call has failedThe external variable d_errno is set to one of the

Seite 191

4-32 DAS ACI Functions 601626-B•ERPC• EINVALID• ETIMEOUT• ESWITCHINPROGRESS• EBADCLIENT• ENOTSUPPHCMDaci_drivestatus_oneThe aci_drivestatus_one functi

Seite 192

aci_drivestatus_one 4-3321 Dec 2001 See Table 4-11 for an explanation of the parameters used for the aci_drivestatus_one function.Return Values• 0:

Seite 193 - Response Technique

4-34 DAS ACI Functions 601626-B•ERPC• EINVALID• ETIMEOUT• ESWITCHINPROGRESS• EBADCLIENT• ENOTSUPPHCMDaci_drivestatus2_oneThe aci_drivestatus2_one func

Seite 194 - Signal Handler Routine

aci_drivestatus2_one 4-3521 Dec 2001 See Table 4-12 for an explanation of the parameters used for the aci_drivestatus2_one function.Return Values• 0:

Seite 195 - Data structures

4-36 DAS ACI Functions 601626-B•ERPC• EINVALID• ETIMEOUT• ESWITCHINPROGRESS• EBADCLIENT• ENOTSUPPHCMDaci_drivestatus3_oneThe aci_drivestatus3_one func

Seite 196

aci_drivestatus3_one 4-3721 Dec 2001 See Table 4-13 for an explanation of the parameters used for the aci_drivestatus3_one function.Return Values•

Seite 197

vi Contents 601626-Baci_getVolserToSide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7

Seite 198 - Response Data (Structure)

4-38 DAS ACI Functions 601626-B•ERPC• EINVALID• ETIMEOUT• ESWITCHINPROGRESS• EBADCLIENT• ENOTSUPPHCMDaci_eif_confThe aci_eif_conf function queries sta

Seite 199

aci_eject 4-3921 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the followin

Seite 200

4-40 DAS ACI Functions 601626-BEject the volumes in volser_range to the eject_area. The media type of the volumes must match that of the eject_area. S

Seite 201 - Application

aci_eject 4-4121 Dec 2001 • ENOVOLUME• EPROBVOL• EAMU• EAMUCOMM• EROBOTCOMM• EDASINT• ENOAREA• ENOTAUTH• EBADCLIENT• ERETRYL• EINUSE• ECANCELED• EDAS

Seite 202 - A-2 Application Notes

4-42 DAS ACI Functions 601626-Baci_eject2The aci_eject2 function ejects a range of volumes from the AML. See Figure 4-34.Figure 4-34 aci_eject2 Functi

Seite 203 - Error Recovery Procedures

aci_eject2 4-4321 Dec 2001 If the eject area is full, the system stops the eject procedure. Depending on the DAS_EJECTAREAFULL environment variable o

Seite 204 - A-4 Application Notes

4-44 DAS ACI Functions 601626-B• ENOTAUTH• EBADCLIENT• ERETRYL• EINUSE• ECANCELED• EDASINT• ENOMATCH• ETIMEOUT• ESWITCHINPROG• EHICAPINUSE• ECOORDINAT

Seite 205 - Error Recovery Procedures A-5

aci_eject2 4-4521 Dec 2001 Figure 4-36 Example of the aci_eject2 Function/* Eject volume but reserve archive location */int rc, i, pnActualCount;char

Seite 206 - A-6 Application Notes

4-46 DAS ACI Functions 601626-Baci_eject3The aci_eject3 function ejects a range of volumes from the AML. See Figure 4-37.Figure 4-37 aci_eject3 Functi

Seite 207 - Error Recovery Procedures A-7

aci_eject3 4-4721 Dec 2001 If the eject area is full, the system stops the eject procedure. Depending on the DAS_EJECTAREAFULL environment variable o

Seite 208 - A-8 Application Notes

Contents vii21 Dec 2001 aci_scratch_info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 209 - Terms A-9

4-48 DAS ACI Functions 601626-B• ENOAREA• ENOTAUTH• EBADCLIENT• ERETRYL• EINUSE• ECANCELED• ENOMATCH• ETIMEOUT• ESWITCHINPROG• EHICAPINUSE• ECOORDINAT

Seite 210 - A-10 Application Notes

aci_eject_ complete 4-4921 Dec 2001 aci_eject_ completeThe aci_eject_complete function ejects volumes and removes the database entries. See Figure 4-

Seite 211 - Terms A-11

4-50 DAS ACI Functions 601626-BReturn Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of the foll

Seite 212 - A-12 Application Notes

aci_eject2_complete 4-5121 Dec 2001 Figure 4-40 Example of the aci_eject_complete Functionaci_eject2_completeThe aci_eject2_complete function ejects

Seite 213 - Terms A-13

4-52 DAS ACI Functions 601626-BSee Table 4-19 for a description of the parameters for the aci_eject2_complete function call.If the eject area is full

Seite 214 - A-14 Application Notes

aci_eject2_complete 4-5321 Dec 2001 Return Values• 0: The call was successful.• -1: The call failed.The external variable d_errno is set to one of th

Seite 215

4-54 DAS ACI Functions 601626-BFigure 4-43 Example of the aci_eject2_complete Functionaci_eject3_completeThe aci_eject3_complete function ejects a ran

Seite 216

aci_eject3_complete 4-5521 Dec 2001 The volser_range field has a maximum size of 512 bytes.See Figure 4-45 for the structure of the aci_ei_info funct

Seite 217 - Index in-3

4-56 DAS ACI Functions 601626-BThe attribute of the coordinate will be set to empty in the AMU database. The volser will be set to 0000000000000000, b

Seite 218

aci_ejectclean 4-5721 Dec 2001 aci_ejectcleanThe aci_ejectclean function ejects all exhausted cleaning cartridges from one Cleanpool. See Figure 4-46

Kommentare zu diesen Handbüchern

Keine Kommentare