Wednesday, October 14, 2009

Quarterly Report DPM script

Each quarter we needs to report on disk usage at our sites.
This can be tricky but the following script will help at DPM sites:


DAY=`date +%F`
echo $DAY
for zz in `dpns-ls /dpm/`;do
dpns-du -z -s /dpm/$zz>>Oxford-SE-Usage-$DAY;

You will need to modify it appropriately for your site.
Extra added 20.10.09
This makes use of the dpns-du command in the gridpp-dpm toolkit available from :

Details of the other commands are on the wiki

No comments: