Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 libiodrivesdk.so or an already-existing utility to do this job.


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

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

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

[driver]
total_ioDimms=4
ioDrive_Duos=2
driver_version=unavailable
sdk_api_version=unavailable

[adapter 1]
product_name=IBM 640GB High IOPS MD Class PCIe Adapter
product_number=68Y7381
…

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

share|improve this question

1 Answer 1

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 1.2.7.2. –  MikeyB Sep 9 '11 at 4:00

Your Answer

 
discard

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.