Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a requirement to write a script that collects inventory data of FusionIO drives from a Linux server.

The only method that I've been able to find is the fio-status utility, but it's designed to output human-readable text, not machine-parsable text. I could scrape it, but that's dirty.

I checked /proc/fusion but it doesn't have enough information to be of any use.

I'm hoping there's a better way, be it some sort of way to interface with or an already-existing utility to do this job.

I was originally using v1.2.7.2. On Shane's recommendation I upgraded to

fio-status now has a -fk option that outputs:

sles11-live:~ # fio-status -fk
; Retrieving Fusion-io product information...


[adapter 1]
product_name=IBM 640GB High IOPS MD Class PCIe Adapter

Ugh, I was hoping for JSON but beggars can't be choosers.

share|improve this question
up vote 1 down vote accepted

Try fio-status -fx for XML, or fio-status -fj for JSON.

If they don't work, mind checking which version of the tool you've got?

Edit: Well, let's post-date this answer. These options will be available in 3.0.

share|improve this answer
It accepts those commands without modifying the output. fio-status version – MikeyB Sep 9 '11 at 4:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.