Blog by PQR

Tag >> python

It's SAMPLE time with vscsiStats

Posted by: hbr in vscsiStatsscriptpythonesx on

vscsiStats is a new VMware tool that helps give insight in disk IOs and latency and stuff like that. It’s a very useful tool but it dumps data in histograms. Using these in Excel is quite a pain because Excel knows histograms (with add-ins) but only one at a time. If you want a graph a whole LUN or other lower level part of the storage over time, you need to reformat the data. And luckily, ESX, like most Linux versions nowadays, comes with a python interpreter. Now I know a lot of different scripting languages but python wasn’t one of them. So I decided to write a small python script to do the reformatting for me to allow me to draw nice 3D graphics of block size over time.