Hi,
This may help you. This is what I use on Solaris. You'll have to
adjust it to run on w2k though I'm sure. You just need to do the vmoprmcd
parsing all in perl instead of cheating and using tail and awk like I did.
Good luck,
Nate
#!/usr/local/bin/perl
# run this from cron every 15 min
$file = "/var/tmp/dr-status";
$time = qx/date +'%H:%M'/;
if(! -e $file){
open(FILE, ">".$file);
print FILE "date,\nd1,\nd2,\nd3,\nd4,\nd5,\nd6,\nd7,\nd8,\n";
close FILE;
}
@drives = qx"/usr/openv/volmgr/bin/vmoprcmd -d ds |\
tail -8 | awk '{ print \$6 }'";
unshift @drives, $time;
$count = 0;
@ARGV=$file;
$^I=".bk";
while (<>) {
chomp($_);
$ds = $drives[$count];
chomp($ds);
$_ .= $ds .",\n";
$count +=1;
print;
}
-----Original Message-----
From: robert.vuerstaek AT comparex DOT be [mailto:robert.vuerstaek AT comparex
DOT be]
Sent: Friday, September 12, 2003 5:36 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Drive occupation
Hello,
Has anybody out there a tool to analyze the 'All Log Entries' in order to
find out the drive occupation during a backup session. My environment is a
W2K backupserver 4.5 MP2 with 9 mediaservers and a library with 5 LTO1
drives. Every night I run about 100 backup jobs and I' m interested to know
the timeperiod during wich a tapedrive is used. This could help me to
optimize the sheduling of backup jobs.
Regards
Robert
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|