zfs/cmd/zpool/zpool.d
Giuseppe Di Natale 099700d9df zpool iostat/status -c improvements
Users can now provide their own scripts to be run
with 'zpool iostat/status -c'. User scripts should be
placed in ~/.zpool.d to be included in zpool's
default search path.

Provide a script which can be used with
'zpool iostat|status -c' that will return the type of
device (hdd, sdd, file).

Provide a script to get various values from smartctl
when using 'zpool iostat/status -c'.

Allow users to define the ZPOOL_SCRIPTS_PATH
environment variable which can be used to override
the default 'zpool iostat/status -c' search path.

Allow the ZPOOL_SCRIPTS_ENABLED environment
variable to enable or disable 'zpool status/iostat -c'
functionality.

Use the new smart script to provide the serial command.

Install /etc/sudoers.d/zfs file which contains the sudoer
rule for smartctl as a sample.

Allow 'zpool iostat/status -c' tests to run in tree.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6121 
Closes #6153
2017-06-05 10:52:15 -07:00
..
README Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
ata_err zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
cmd_to zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
defect zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
enc Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
encdev Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
fault_led Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
health zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
hours_on zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
iostat Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
iostat-1s Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
iostat-10s Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
label Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
locate_led Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
lsblk zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
media zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
model Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
nonmed zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
off_ucor zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
pend_sec zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
pwr_cyc zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
r_proc zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
r_ucor zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
realloc zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
rep_ucor zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
serial zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
ses zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
size Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
slaves Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
slot Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
smart zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
smartx zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
temp zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
upath Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
vendor Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
w_proc zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
w_ucor zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00

README

This directory contains scripts that can be run the zpool status/iostat
-c option:

	zpool status -c script1,script2, ...

	zpool iostat -vc script1,script2, ...

Some scripts output different values depending on the symlink name that is
used to run them.  See the zpool(8) man page for more details.