/[sysadmin-cookbook]/recepies/smart/dump.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /recepies/smart/dump.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 274 - (show annotations)
Wed Sep 14 23:36:10 2011 UTC (12 years, 7 months ago) by dpavlin
File MIME type: application/x-sh
File size: 337 byte(s)
dump start data into git
1 #!/bin/sh -e
2
3 # cron
4 # */30 * * * * /mnt/smart/dump.sh
5
6 cd /srv/sysadmin-cookbook/recepies/smart
7 # awk '{ if ( $3 >= 2930266584 ) print $4 }'
8
9 driver="-d megaraid,0"
10
11 cat /proc/partitions | grep ' sd.$' | awk '{ print $4 }' | xargs -i sudo sh -cx "smartctl $* $driver -a /dev/{} > smart.{}"
12 git commit -m `date +%Y-%m-%d.%H:%M:%S` -a

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26