Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # zpool list
- NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
- tank 54.5T 36.0T 18.5T - 35% 66% 1.00x ONLINE -
- #!/bin/sh
- #
- STATUS=$(/sbin/zpool list | grep tank | grep ONLINE)
- if [ $? -gt 0 ]; then
- echo "Problems"
- exit 1
- else
- echo all system go!
- exit 0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement