Skip to content

Instantly share code, notes, and snippets.

@filviu
Created August 28, 2014 07:53
Show Gist options
  • Save filviu/7e8f04b1cf6922d65df3 to your computer and use it in GitHub Desktop.
Save filviu/7e8f04b1cf6922d65df3 to your computer and use it in GitHub Desktop.
#!/bin/bash
count=0
for DISK in sda sdb sdc sdd sde sdf; do
/usr/sbin/smartctl --all /dev/$DISK > /var/www/htdocs/status/data/smart$count.txt
((count++))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment