Export one I/O sample as JSON
Build a paste-ready command, then review its compatibility and effects before running it.
iostat -o JSON -x 1 1read-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementsiostatiostat must be installed and available on PATH.
Version supportiostat Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signals{"sysstat":{"hosts":[{"statistics":[{"disk":[{"disk_device":"sda","util":5.1}]}]}]}}Representative successful output; values vary with the selected target and system state.
Known errorsiostat: command not foundiostat is missing or is not available on PATH.
Verifyiostat -o JSON -x 1 1The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01iostatCommandRuns the iostat stage of this one-liner.
02-oOptionSelects an output file or output format for this command.
03JSONArgumentPasses JSON to iostat.
04-xOptionConfigures iostat with the -x option.
051ArgumentPasses 1 to iostat.
061ArgumentPasses 1 to iostat.
Example input
iostat -o JSON -x 1 1
Example output
{"sysstat":{"hosts":[{"statistics":[{"disk":[{"disk_device":"sda","util":5.1}]}]}]}}
Illustrative output — exact values vary by system and data.
Official sources