ADSM-L

[ADSM-L] Fw: Select statement

2008-01-15 18:18:49
Subject: [ADSM-L] Fw: Select statement
From: Nicholas Cassimatis <nickpc AT US.IBM DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 15 Jan 2008 18:13:33 -0500
What about something along these lines - I can never get the math to work
right on SELECT statements (I'd just run two, and do the math myself...)

(select count(*) from volhistory where type='STGNEW') - (select count(*)
from volhistory where usage='STGDELETE')  [that's a minus sign between the
two statements]

That's how many tapes went into pools, and came out of pools, through the
day.  If you assume that the DBBackups/Snapshots are a wash - the same
number expire as are created daily, you have how many tapes TSM used.  If
you do exports, backupsets, etc, you'll need to add statements to grab
those values as well.

Nick Cassimatis
<Prev in Thread] Current Thread [Next in Thread>
  • [ADSM-L] Fw: Select statement, Nicholas Cassimatis <=