This post is more than 5 years old
4 Posts
1
3178
EMC Isilon OneFS API to get Inventory data
We want to utilize the OneFS Rest API to gather inventory data on each of our clusters.
I was able to set up authentication to the API and query some of the resource URIs. This document lists many of the resource urls that contain performance stats : https://www.emc.com/collateral/TechnicalDocument/docu66301.pdf
However, I'm unable to find and resource URIs that have relevant inventory data.
Could someone please point me to the resource URIs that contain data relevant to inventory?
Here's an example of what we need:
Nodes:
Hostname
UUID and/or Serial Number
Model
CPU
Memory
Network Adapters:
Mac Address
IP Address
Machine connected to
Disks:
Type
Size
Capacity
Percentage used
Machine connected to
Peter_Sero
1.2K Posts
1
March 24th, 2017 06:00
A good start would be:
/platform/3/cluster/nodes/ALL/hardware
/platform/3/cluster/nodes/ALL/status
(you can use "ALL" literally, or insert an individual node number)
Each node a a logical node name (LNN) and an ID.
The above queries list both (as "lnn" and as "id"),
so you can establish a mapping.
In some of the below queries, either LNNs or IDs (as "id" or as "devid") are reported.
For hostnames, get the clustername first:
/platform/3/cluster/identity
then build the nodes' hostnames as "clustername-LNN"
For network interfaces (sorry no MAC addresses):
/platform/3/network/interfaces
For disks:
/platform/3/cluster/nodes/ALL/drives/ALL
Disks current usage (via statistics, so we need to add HTTP GET arguments):
/platform/1/statistics/current?key=node.disk.ifs.bytes.used.all&devid=all
/platform/1/statistics/current?key=node.disk.ifs.bytes.total.all&devid=all
so you can compute percentages from used and total.
hth
-- Peter