Exaforge

Cloud, DevOps, Evangelism

Unisphere for VMAX API & Carbon/Graphite

Recently, a customer asked me how they could get performance data from their Symmetrix array into Graphite, their metrics graphing tool of choice.

I originally went straight to my old standby of 'symstat', which is good, but doesn't have an easy-to-parse output.  Unlike many other SYMCLI commands, it doesn't have an XML output, so it becomes quite an exercise to parse the data.  Nontheless, I did it, and you can find the file here:

https://github.com/mcowger/randompython/blob/master/symmcarbon.py

However, I decided I'd rather use the newly-available Unisphere for VMAX REST API.  I found some interesting things.  You'll need Unisphere for VMAX 1.5.1 or later to use this.

Without further ado, here is a script that pulls the total system IOPs from the Symmetrix and pushes it into Carbon/Graphite using the MetricLineReceiver method.

https://github.com/mcowger/randompython/blob/master/symmREST.py