beautypg.com

Getting started – HP StoreEver ESL G3 Tape Libraries User Manual

Page 12

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:



200
OK

Operation Completed Successfully
Logout
0

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:



library
2U31000077
hp
ESL G3 Series
1
1
528
0
13
1476
1440
48
48
11
11
670H.GS08901
2
4
1
true
0
0
3 days 06h:25m:29s

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