Veritas-bu

Re: [Veritas-bu] Tracking Tape Eject

2007-09-12 13:45:46
Subject: Re: [Veritas-bu] Tracking Tape Eject
From: <Mark.Donaldson AT cexp DOT com>
To: <VERITAS-BU AT mailman.eng.auburn DOT edu>
Date: Wed, 12 Sep 2007 11:23:16 -0600
It wouldn't be very had to make a script that used "vmquery -rn X" to
query the daily contents of the library, compare against a list stored
yesterday, and report what had been removed and injected during the
previous cycle.

#!/bin/sh
PATH=$PATH:/usr/openv/volmgr/bin
PROG=`basename $0`
for r in `tpconfig -l | awk '$1=="robot" {print $2}'`
do
  vmquery -rn $r -w | awk 'NR>3 {print $1} >/var/tmp/$PROG.$r.tmp
  if [ -f /var/tmp/$PROG.$r.hist ]
  then
    echo "Removed from library $r"
    diff /var/tmp/$PROG.$r.hist /var/tmp/$PROG.$r.tmp | awk '$1=="<"
{print $2}'
    echo "Added to library $r"
    diff /var/tmp/$PROG.$r.hist /var/tmp/$PROG.$r.tmp | awk '$1==">"
{print $2}'
  fi
  mv /var/tmp/$PROG.$r.tmp /var/tmp/$PROG.$r.hist
done

It can be made a bit prettier but it's functional.

HTH - M

-----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of UlrichJU
Sent: Wednesday, September 12, 2007 5:27 AM
To: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Re: Tracking Tape Eject


I'm using version 6.0 and vault does not work without a license key.  We
tested it once, but my company did not want to pay for it.

+----------------------------------------------------------------------
|This was sent by julrich AT dart DOT biz via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------


_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

<Prev in Thread] Current Thread [Next in Thread>