iostat: -n parameter in RHE 7.3

Latest response

In RHEL 6.5, it was possible to run
/usr/bin/iostat -dn -p none

and get NFS stats with headers like:
Filesystem: rBlk_nor/s wBlk_nor/s rBlk_dir/s wBlk_dir/s rBlk_svr/s wBlk_svr/s ops/s rops/s wops/s

In RHEL7.3: the -n option is no longer available and the suggestion is to use:
/usr/sbin/nfsiostat

however this comes back with headers that look like:
lookup: ops/s kB/s kB/op retrans avg RTT (ms) avg exe (ms)

This is a problem because we are using a parser to extract data from the iostat command for monitoring purposes. Obviously we could write a new parser, however...

Ubunto seems to come with a version of nfsiostat (written by a RedHat developer) that produces output in the iostat format.
Is it possible to get hold of this script on Redhat: or has someone written one that produces equivalent output?

Responses

nfsiostat on RHEL7 comes bundled with nfs-utils package.

What you need is nfsiostat-sysstat which comes bundled with sysstat package.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.