You can obtain the performance data that RAID Agent collected from the monitored targets. Note that performance data is provided in CSV format.
HTTP request syntax (URI)
GET <scheme>://<host>:<port>/<application>/<version>/objects/<object-type>?<query-string>
- Additional note
-
- The object-type under the objects domain is formated as "RAID_record-name". For example, if the object-type is RAID_PD_RGC, you can obtain the PD_RGC record information from RAID Agent.
- For query-string, enter a key and its value in pairs in the key=value format. You can enter multiple query strings. To enter multiple query strings, use an ampersand (&) as a separator. An example of specifying the query strings is indicated in "Query string". In addition, the keys and types of values that can be specified are indicated in "Specifiable keys and values in the query strings for obtaining performance data". Note that query strings must be percent-encoded.
Query string
Example of specifying the query strings:
hostName=HOST &agentInstanceName=AgentInstance &startTime=2013-12-01T13:00Z &endTime=2013-12-01T15:00Z &fields=RECORD_TIME%1FLDEV_NUMBER%1FRANDOM_TOTAL_IO_RATE &LDEV_NUMBER=00:00:01 &LDEV_NUMBER=00:00:02
Key |
Value |
Required |
|
---|---|---|---|
Specifiable value |
Remarks |
||
hostName |
Host name |
The name of the RAID Agent host |
Yes |
agentInstanceName |
RAID Agent instance name |
The value that uniquely identifies a RAID Agent instance |
Yes |
startTime1 |
A value that follows the following convention (the extended ISO8601
format) can be specified (Example: startTime=2013-11-20T19:54Z): value = year-month-dayThour:minuteZ2
Note: DIGIT represents a decimal number (0-9) in the ABNF convention. |
The start time (in UTC) of the period for which performance data is to be obtained |
No |
endTime1 |
Same as startTime (Example: endTime=2013-11-21T19:54Z) |
The end time (in UTC) of the period for which performance data is to be obtained |
No |
fields |
A value that has the following convention can be specified. value = 1*VCHAR / value %1Fvalue;2 To specify multiple values3, use %1F as a separator4. |
Record field names For details, see RAID Agent records. |
No |
record-field-name |
A value that follows the following convention can be specified. value = *VCHAR ; 2, 5 To specify multiple values3, use %1F as a separator4. |
Specify the name of a field as a key, and the value of the field as the value for the key. |
No |
granularity |
Specify raw or specify no value. When no value is specified, raw is assumed. Note that this value is not case-sensitive. |
The time granularity of the performance data to be obtained |
No |
accessMode |
Specify s. Note that this value is not case-sensitive. |
Obtaining data by executing a query |
No |
Notes:
|
Request structure
Not applicable.
Response structure
The configuration of the response body is as follows:
FILE = NAME <RecordDelimiter> TYPE <RecordDelimiter> DATA_LINES <RecordDelimiter> <RecordDelimiter> ; NAME = <SelectedFieldName> | NAME <FieldDelimiter> NAME ; TYPE = <DataType> | TYPE <FieldDelimiter> TYPE ; DATA_LINES = DATA | DATA_LINES <RecordDelimiter> DATA_LINES ; DATA = <SelectedFieldValue> | DATA <FieldDelimiter> DATA ;
The response body contains performance data in CSV format. The following table describes the variables used in the response body.
Variable name |
Description |
---|---|
SelectedFieldName_m |
The name of a specific field1 |
FieldDelimiter |
The field separator. A comma (0x09) is used as recommended by RFC4180. |
RecordDelimiter |
The data line separator. An extra delimiter is added to the end of the data to show that the data ends. A CR-LF code (0x0D 0x0A) is used as recommended by RFC4180. |
DataType_m |
The data type of a specific field1 |
SelectedFieldValue_lm |
The value of a specific field that is selected by the function that selects data to be obtained1, 2, 3, 4 |
Notes:
|
Example 1 (when obtaining the PD record information)
Request message by using the curl command
curl -v -u system:manager -X GET https://server_1:22016/Analytics/RAIDAgent/v1/objects/RAID_PD?hostName=agent_1%26agentInstanceName=VSPG1000_instance
Execution result for the request:
Request header
GET /Analytics/RAIDAgent/v1/objects/RAID_PD? hostName=agent_1%26agentInstanceName=VSPG1000_instance HTTP/1.1 Authorization: Basic c3lzdGVtOm1hbmFnZXI= User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 Host: server_1:22016 Accept: */*
Response header
HTTP/1.1 200 OK Date: Fri, 20 Jun 2014 13:09:05 GMT Server: Cosminexus HTTP Server Last-Modified: Fri, 20 Jun 2014 13:00:07 GMT Keep-Alive: timeout=3, max=100 Cache-Control: no-cache Transfer-Encoding: chunked Content-Type: text/csv;charset=utf-8 X-Pad: avoid browser bug
Response body
DKC_SERIAL_NUMBER,VENDOR_ID,DKC_NAME,CACHE_MEMORY_CAPACITY,CACHE_MEMORY_INSTALLED_SIZE,MONITORED_SLPR_NUMBER,COLLECTION_TIME,INTERVAL,INPUT_RECORD_TYPE,RECORD_TIME string(32),string(64),string(64),ulong,ulong,string(8),time_t,ulong,string(8),time_t "10051","HITACHI","VSP G1000",469504,0,"",2014-06-20 13:00:07,3600,"PD",2014-06-20 13:00:07
Example 2 (when obtaining the PI_LDS record information)
Request message by using the curl command
curl -v -u system:manager -X GET https://server_1:22016/Analytics/RAIDAgent/v1/objects/RAID_PI_LDS?hostName=agent_1%26agentInstanceName=VSPG1000_instance
Execution result for the request:
Request header
GET /Analytics/RAIDAgent/v1/objects/RAID_PI_LDS? hostName=agent_1%26agentInstanceName=VSPG1000_instance HTTP/1.1 Authorization: Basic c3lzdGVtOm1hbmFnZXI= User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 Host: server_1:22016 Accept: */*
Response header
HTTP/1.1 200 OK Date: Fri, 20 Jun 2014 13:20:15 GMT Server: Cosminexus HTTP Server Last-Modified: Fri, 20 Jun 2014 13:20:01 GMT Keep-Alive: timeout=3, max=100 Cache-Control: no-cache Transfer-Encoding: chunked Content-Type: text/csv;charset=utf-8 X-Pad: avoid browser bug
Response body
LDEV_NUMBER,READ_IO_COUNT,READ_IO_RATE,READ_HIT_IO_COUNT,READ_HIT_RATE,WRITE_IO_COUNT,WRITE_IO_RATE,WRITE_HIT_IO_COUNT,WRITE_HIT_RATE,READ_MBYTES,READ_XFER_RATE,WRITE_MBYTES,WRITE_XFER_RATE,READ_TOTAL_RESPONSE,READ_RESPONSE_RATE,WRITE_TOTAL_RESPONSE,WRITE_RESPONSE_RATE,TOTAL_RESPONSE_RATE,RANDOM_TOTAL_IO_RATE,SEQUENTIAL_TOTAL_IO_RATE,RANDOM_TOTAL_XFER_RATE,SEQUENTIAL_TOTAL_XFER_RATE,VIRTUAL_SERIAL_NUMBER,VIRTUAL_DKC_NAME,VIRTUAL_LDEV_NUMBER,INTERVAL,INPUT_RECORD_TYPE,RECORD_TIME string(16),ulong,float,ulong,float,ulong,float,ulong,float,ulong,float,ulong,float,double,float,double,float,float,float,float,float,float,string(32),string(32),string(16),ulong,string(8),time_t "00:00:00",0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0.000000000000000E+000,0.0000000E+000,0.000000000000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,"","","",301,"LDS",2014-06-20 13:20:01 "00:00:01",0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0.000000000000000E+000,0.0000000E+000,0.000000000000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,"","","",301,"LDS",2014-06-20 13:20:01 "00:00:02",0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0.000000000000000E+000,0.0000000E+000,0.000000000000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,"","","",301,"LDS",2014-06-20 13:20:01 : : "00:AF:00",0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0,0.0000000E+000,0.000000000000000E+000,0.0000000E+000,0.000000000000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,0.0000000E+000,"","","",301,"LDS2",2014-06-20 13:20:01
Example 3 (when obtaining the PD_PTC record information)
Request message by using the curl command
curl -v -u system:manager -X GET https://server_1:22016/Analytics/RAIDAgent/v1/objects/RAID_PD_PTC?hostName=agent_1%26agentInstanceName=VSPG1000_instance
Execution result for the request:
Request header
GET /Analytics/RAIDAgent/v1/objects/RAID_PD_PTC? hostName=agent_1%26agentInstanceName=VSPG1000_instance HTTP/1.1 Authorization: Basic c3lzdGVtOm1hbmFnZXI= User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 Host: server_1:22016 Accept: */*
Response header
HTTP/1.1 200 OK Date: Fri, 20 Jun 2014 12:36:36 GMT Server: Cosminexus HTTP Server Last-Modified: Fri, 20 Jun 2014 12:00:07 GMT Keep-Alive: timeout=3, max=100 Cache-Control: no-cache Transfer-Encoding: chunked Content-Type: text/csv;charset=utf-8 X-Pad: avoid browser bug
Response body
PORT_NUMBER,PORT_NAME,CHA_NAME,PORT_WWN,PORT_TYPE,PORT_ROLE,PORT_SPEED,SLPR_NUMBER,COLLECTION_TIME,INTERVAL,INPUT_RECORD_TYPE,RECORD_TIME string(8),string(64),string(16),string(32),string(8),string(16),string(8),string(8),time_t,ulong,string(8),time_t "0","CL1-A","CHA-1EU","50060E8007274300","FIBRE","Target","Auto","",2014-06-20 12:00:07,3600,"PTC",2014-06-20 12:00:07 "1","CL1-B","CHA-1EU","50060E8007274301","FIBRE","Target","Auto","",2014-06-20 12:00:07,3600,"PTC",2014-06-20 12:00:07 "2","CL1-C","CHA-1EL","50060E8007274302","FIBRE","External","8Gbps","",2014-06-20 12:00:07,3600,"PTC",2014-06-20 12:00:07 "3","CL1-D","CHA-1EL","50060E8007274303","FIBRE","Target","Auto","",2014-06-20 12:00:07,3600,"PTC",2014-06-20 12:00:07 : : "116","CL8-E","CHA-2RU","","FICON","Target","","",2014-06-20 12:00:07,3600,"PTC",2014-06-20 12:00:07 "117","CL8-F","CHA-2RU","","FICON","Target","","",2014-06-20 12:00:07,3600,"PTC",2014-06-20 12:00:07 "118","CL8-G","CHA-2RL","50060E8007274376","FCoE","Target","10Gbps","",2014-06-20 12:00:07,3600,"PTC",2014-06-20 12:00:07 "119","CL8-H","CHA-2RL","50060E8007274377","FCoE","Target","10Gbps","",2014-06-20 12:00:07,3600,"PTC",2014-06-20 12:00:07
Example 4 (when obtaining the PI_PRCS record information by specifying startTime and endTime)
Request message by using the curl command
curl -v -u system:manager -X GET https://server_1:22016/Analytics/RAIDAgent/v1/objects/RAID_PI_PRCS?hostName=agent_1%26agentInstanceName=VSPG1000_instance %26startTime=2014-06-19T01:00Z%26endTime=2014-06-19T02:30Z
Execution result for the request:
Request header
GET /Analytics/RAIDAgent/v1/objects/RAID_PI_PRCS? hostName=agent_1%26agentInstanceName=VSPG1000_instance %26startTime=2014-06-19T01:00Z%26endTime=2014-06-19T02:30Z HTTP/1.1 Authorization: Basic c3lzdGVtOm1hbmFnZXI= User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 Host: server_1:22016 Accept: */*
Response header
HTTP/1.1 200 OK Date: Fri, 20 Jun 2014 13:10:42 GMT Server: Cosminexus HTTP Server Last-Modified: Thu, 19 Jun 2014 02:29:01 GMT Keep-Alive: timeout=3, max=100 Cache-Control: private, max-age=864000 Transfer-Encoding: chunked Content-Type: text/csv;charset=utf-8
Response body
PROCESSOR_ID,ADAPTOR_ID,CONTROLLER,PROCESSOR_TYPE,PROCESSOR_BUSY_RATE,MAX_PROCESSOR_BUSY_RATE,MAX_BUFFER_LENGTH,BUFFER_IO_COUNT,MAX_BUFFER_IO_COUNT,BUFFER_IO_RATE,MAX_BUFFER_IO_RATE,INTERVAL,INPUT_RECORD_TYPE,RECORD_TIME string(16),string(16),string(8),string(8),float,float,float,float,float,float,float,ulong,string(8),time_t "00","MPB0","","MP",8.8735523E-001,8.8735523E-001,6.5535002E+004,1.0000000E+000,1.0000000E+000,1.5259022E-003,1.5259022E-003,54,"PRCS",2014-06-19 01:14:01 "01","MPB0","","MP",1.2086518E+000,1.2086518E+000,6.5535002E+004,1.0000000E+000,1.0000000E+000,1.5259022E-003,1.5259022E-003,54,"PRCS",2014-06-19 01:14:01 "02","MPB0","","MP",9.0272198E-001,9.0272198E-001,6.5535002E+004,1.0000000E+000,1.0000000E+000,1.5259022E-003,1.5259022E-003,54,"PRCS",2014-06-19 01:14:01 : : "2E","MPB5","","MP",3.0648675E+000,3.0648675E+000,6.5535002E+004,1.0000000E+000,1.0000000E+000,1.5259022E-003,1.5259022E-003,61,"PRCS",2014-06-19 02:29:01 "2F","MPB5","","MP",3.1383426E+000,3.1383426E+000,6.5535002E+004,1.0000000E+000,1.0000000E+000,1.5259022E-003,1.5259022E-003,61,"PRCS",2014-06-19 02:29:01 "_Total","MPB5","","MPB",3.0528414E+000,3.0528414E+000,6.5535002E+004,1.0000000E+000,1.0000000E+000,1.5259022E-003,1.5259022E-003,61,"PRCS",2014-06-19 02:29:01