ADSM-L

Re: [ADSM-L] Select statement

2008-01-04 14:02:25
Subject: Re: [ADSM-L] Select statement
From: Larry Peifer <Larry.Peifer AT SCE DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Fri, 4 Jan 2008 11:01:46 -0800
This is what I run to get that kind of information:

select library_name,volume_name from libvolumes where status='Scratch'

select stgpool_name,status,count(*) from volumes where scratch='YES' group
by stgpool_name,status

 select library_name, last_use, status, count(status) from libvolumes
group by library_name,last_use,status

select (sum(total_mb)/1024)/1024 TOTAL_TB_ON_TAPE FROM auditocc
( you need to have run 'audit licenses' just prior to this query in order
to update auditocc table)

select count(*) "Tape Volumes OnLine" from libvolumes

 select library_name,count(*) SCRATCH_VOLUMES, (count(*) * 200)
G_bytes_FREE from libvolumes where status='Scratch' group by library_name

Hope that helps.




"Ribeiro, Ricardo" <Ricardo.Ribeiro AT SCHWAB DOT COM>
Sent by: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
01/04/2008 10:20 AM
Please respond to
"ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>


To
ADSM-L AT VM.MARIST DOT EDU
cc

Subject
Re: [ADSM-L] Select statement






No, I need one that tells me how many I used and not how many I have...
Thanks!

-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Choudarapu, Ramakrishna (GTI)
Sent: Friday, January 04, 2008 11:17 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: [ADSM-L] Select statement

We use this to find out the scratch counts:

select library_name, status, count(*) as VOL_COUNT from libvolumes group
by library_name,status

Is this the one, you are looking for?

-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Ribeiro, Ricardo
Sent: Friday, January 04, 2008 1:12 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: [ADSM-L] Select statement


Hello,
Does anyone has a select statement I can use to find out how many tapes
I used on a daily basis?
Thanks!
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or
proprietary, and if you are not an intended recipient, please notify the
sender, do not use or share it and delete it. Unless specifically
indicated, this message is not an offer to sell or a solicitation of any
investment products or other financial product or service, an official
confirmation of any transaction, or an official statement of Merrill
Lynch. Subject to applicable law, Merrill Lynch may monitor, review and
retain e-communications (EC) traveling through its networks/systems. The
laws of the country of each sender/recipient may impact the handling of
EC, and EC may be archived, supervised and produced in countries other
than the country in which you are located. This message cannot be
guaranteed to be secure or error-free. This message is subject to terms
available at the following link:
http://www.ml.com/e-communications_terms/. By messaging with Merrill
Lynch you consent to the foregoing.
--------------------------------------------------------

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