No script needed. mminfo can provide this for you so check out the man page
for it.
My cron job sends me weekly stats, I import it into excel and add it up.
Eventually I will send it something that can calculate the stuff and graph
it for management.
crontab entry
30 9 * * 1 /usr/sbin/mminfo -r 'client(25),name(60),totalsize(15),nfiles(10),savetime(20)'
-t 'last week' -o t 2>&1 | mailx -s "Weekly Networker
Stats `date`" you AT yourdomain DOT com
Christopher T. Beers - UNIX Systems Engineer
Syracuse University - Computing and Media Services
250 Machinery Hall Syracuse, NY 13244
(315) 443-4103 Office (315) 443-1621 Fax
--On Friday, February 28, 2003 10:43 AM +0000 "McKechnie, Grant (Contractor)"
<grant_mckechnie AT EU1.BP DOT COM> wrote:
I have many servers backing up across many geographic regions. The problem
is I need to determine exactly how much I am backing via a script. Does any
body have a script to do this. I know all the info is inside the media
database but I am not sure how to get it out.
Help!
--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|