and the rest of it...
This commit is contained in:
23
disk_space/duc_automated.sh
Normal file
23
disk_space/duc_automated.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
|
||||
#Create index
|
||||
time duc index / --fs-exclude=nfs
|
||||
|
||||
|
||||
#Produce report
|
||||
cd /root
|
||||
TODAY="$(date +%m-%d)"
|
||||
REPORT_FILENAME="$(hostname).$TODAY.png"
|
||||
duc graph /
|
||||
mv duc.png $REPORT_FILENAME
|
||||
|
||||
|
||||
#Send report to central server
|
||||
scp -i /root/.ssh/duc_rsa $REPORT_FILENAME duc_user@txn04-slack-master.tplab.tippingpoint.com:/var/www/html/space/
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user