zpool-status
--zpool-statusv1.2.0Converts `zpool status` command output to JSON
LinuxmacOSFreeBSDcommand
$ zpool status | jc-rs --zpool-statusA real pair
From the reference corpus (generic/zpool-status-v2.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.
zpool statusgeneric
pool: tank state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://www.sun.com/msg/ZFS-8000-2Q scrub: none requested config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 mirror-0 DEGRADED 0 0 0 c1t0d0 ONLINE 0 0 0 c1t1d0 UNAVAIL 0 0 0 cannot open errors: No known data errors
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[ { "pool": "tank", "state": "DEGRADED", "status": "One or more devices could not be opened. Sufficient replicas exist for\nthe pool to continue functioning in a degraded state.", "action": "Attach the missing device and online it using 'zpool online'.", "see": "http://www.sun.com/msg/ZFS-8000-2Q", "scrub": "none requested", "config": [ { "name": "tank", "state": "DEGRADED", "read": 0, "write": 0, "checksum": 0 }, { "name": "mirror-0", "state": "DEGRADED", "read": 0, "write": 0, "checksum": 0 }, { "name": "c1t0d0", "state": "ONLINE", "read": 0, "write": 0, "checksum": 0 }, { "name": "c1t1d0", "state": "UNAVAIL", "read": 0, "write": 0, "checksum": 0, "errors": "cannot open" } ], "errors": "No known data errors" } ]
Fixture coverage
5/5oracle-valid pairs match under the published structural JSON comparison
Magic syntax
jc-rs zpool statusjc-rs runs the command itself and parses what it prints. Recognised for: `zpool status`Source: crates/jc-rs-parsers/src/misc/zpool_status.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare