Getting started – HP StoreEver ESL G3 Tape Libraries User Manual

Page 12

Advertising
background image

For example, using the curl utility, where –b specifies the file where the original cookie is stored,
and –X specifies the type of HTTP command to issue:

curl -b cookie.txt -X DELETE http://library1.mydomain.com/aml/users/login

The library will return:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:WSResultCode xmlns:n s2="http://automatedMediaLibrary/">
<code>200</code>
<description>OK</description>
<summary>Operation Completed Successfully</summary>
<action>Logout</action>
<customCode>0</customCode>
</ns2:WSResultCode>

Getting started

The outline below links typical library and drive operations to their Web Services URIs. This is not
a complete list of every command available, but provides an easy reference to get started.

For example, using the curl utility, you can quickly retrieve the library version and configuration
information, where –b specifies the file where the original cookie is stored and –X specifies the
type of HTTP command to issue:

curl -b cookie.txt -X GET
http://library1.mydomain.com/aml/physicalLibrary

The library will return data similar to the following:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:physicalLibrary xmlns:ns2="http://automatedMediaLibrary/">
<name>library</name>
<serialNumber>2U31000077</serialNumber>
<vendorId>hp</vendorId>
<productId>ESL G3 Series</productId>
<mode>1</mode>
<state>1</state>
<mediaInStorageCount>528</mediaInStorageCount>
<mediaInDriveCount>0</mediaInDriveCount>
<mediaInIeCount>13</mediaInIeCount>
<storageSlotCount>1476</storageSlotCount>
<assignedStorageSlotCount>1440</assignedStorageSlotCount>
<ieSlotCount>48</ieSlotCount>
<assignedIeSlotCount>48</assignedIeSlotCount>
<driveCount>11</driveCount>
<assignedDriveCount>11</assignedDriveCount>
<firmwareVersion>670H.GS08901</firmwareVersion>
<roboticsGeneration>2</roboticsGeneration>
<moduleCount>4</moduleCount>
<towerCount>1</towerCount>
<parkingModules>true</parkingModules>
<cleaningSlotCount>0</cleaningSlotCount>
<cleaningMediaCount>0</cleaningMediaCount>
<libraryUpTime>3 days 06h:25m:29s</libraryUpTime>
</ns2:physicalLibrary>

Below is a list of commands for requesting basic information:

Basic discovery or ‘ping’:

“URI: aml/” (page 14)

Library version and configuration info:

“URI: aml/physicalLibrary” (page 41)

Robot information:

“URI: aml/devices/robots” (page 19)

Drive information:

“URI: aml/drives” (page 22)

Media information:

“URI: aml/media” (page 25)

Sensor information:

“URI: aml/system/sensors” (page 50)

12

Interface description

Advertising