Re: sql query question

2013-11-07 Thread Erwann Simon
Hi Gary,

From a client perspective, I would simply use a query backup command: dsmc q 
ba c:\ -subdir=no

-- 
Best regards / Cordialement / مع تحياتي
Erwann SIMON

- Mail original -
De: Gary Lee g...@bsu.edu
À: ADSM-L@VM.MARIST.EDU
Envoyé: Jeudi 7 Novembre 2013 15:14:57
Objet: [ADSM-L] sql query question

I want a list of all top level directories on a windows file system; 
specifically, c:.

How can I get this from tsm?


The problem is I need to restore several directories, back to a machine with a 
replaced hard disk.
However, I am totally blind, and unable to use the gui; so thought I would 
create a macro to restore each top level directory, and then call it with a 
schedule.

Thanks for any assistance.


Gary Lee
Senior System Programmer
Ball State University
phone: 765-285-1310

 


Re: sql query question

2013-11-07 Thread Ehresman,David E.
Gary,

I think this will give you want you want.  Change the node_name  for your 
environment:

select filespace_name,hl_name,ll_name from backups where node_name='DEEHRE01' 
and state='ACTIVE_VERSION' and type='DIR' and hl_name='\'

David



-Original Message-
From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Lee, 
Gary
Sent: Thursday, November 07, 2013 9:15 AM
To: ADSM-L@VM.MARIST.EDU
Subject: [ADSM-L] sql query question

I want a list of all top level directories on a windows file system; 
specifically, c:.

How can I get this from tsm?


The problem is I need to restore several directories, back to a machine with a 
replaced hard disk.
However, I am totally blind, and unable to use the gui; so thought I would 
create a macro to restore each top level directory, and then call it with a 
schedule.

Thanks for any assistance.


Gary Lee
Senior System Programmer
Ball State University
phone: 765-285-1310

 


Re: sql query question

2013-11-07 Thread Dwight Cook
Select distinct node_name,type,filespace_name,hl_name,ll_name from backups
where node_name='desirednodename' and type=DIR and
filespace_name='\\nodename\c$' and hl_name='\' order by node_name,
type,filespace_name,hl_name,ll_name

It will run a while though...

-Original Message-
From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of
Lee, Gary
Sent: Thursday, November 07, 2013 8:15 AM
To: ADSM-L@VM.MARIST.EDU
Subject: [ADSM-L] sql query question

I want a list of all top level directories on a windows file system;
specifically, c:.

How can I get this from tsm?


The problem is I need to restore several directories, back to a machine with
a replaced hard disk.
However, I am totally blind, and unable to use the gui; so thought I would
create a macro to restore each top level directory, and then call it with a
schedule.

Thanks for any assistance.


Gary Lee
Senior System Programmer
Ball State University
phone: 765-285-1310


Re: SQL query question

2009-01-29 Thread Loon, EJ van - SPLXM
Hi Andy!
It works great, thank you VERY much!!! 
Kind regards,
Eric van Loon
KLM Royal Dutch Airlines


-Original Message-
From: ADSM: Dist Stor Manager [mailto:ads...@vm.marist.edu] On Behalf Of
Andrew Raibeck
Sent: dinsdag 27 januari 2009 14:30
To: ADSM-L@VM.MARIST.EDU
Subject: Re: SQL query question

Hi Eric,

You need to add an WHERE additional criterion like this:

   occupancy.node_name = nodes.node_name

Best regards,

Andy

Andy Raibeck
IBM Software Group
Tivoli Storage Manager Client Product Development Level 3 Team Lead
Internal Notes e-mail: Andrew Raibeck/Tucson/i...@ibmus Internet e-mail:
stor...@us.ibm.com

IBM Tivoli Storage Manager support web page:
http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageMan
ager.html


The only dumb question is the one that goes unasked.
The command line is your friend.
Good enough is the enemy of excellence.

ADSM: Dist Stor Manager ADSM-L@VM.MARIST.EDU wrote on 01/27/2009
05:18:06 AM:

 [image removed]

 SQL query question

 Loon, EJ van - SPLXM

 to:

 ADSM-L

 01/27/2009 05:18 AM

 Sent by:

 ADSM: Dist Stor Manager ADSM-L@VM.MARIST.EDU

 Please respond to ADSM: Dist Stor Manager

 Hi *SM-ers!
 I'm trying to create an SQL query to list all filespaces with more 
 than 500 Gb. stored in TSM, but only for nodes belonging to a certain 
 department. I want to use the contact field for this, but I must be 
 doing something wrong, because it still lists all nodes. Here's what I

 created thus far:

 select occupancy.node_name as Node Name, occupancy.filespace_name as

 File System, cast(float(occupancy.physical_mb) as dec(10,0)) as 
 Megabytes from occupancy, nodes where occupancy.stgpool_name like 
 '%PRI%' and nodes.contact='Linux Department' and occupancy.physical_mb
 =50

 Could someone help me with creating the correct SQL statement?
 Thank you VERY much in advance!!
 Kindest regards,
 Eric van Loon
 KLM Royal Dutch Airlines


 **
 For information, services and offers, please visit our web site:
 http://www.klm.com. This e-mail and any attachment may contain 
 confidential and privileged material intended for the addressee only. 
 If you are not the addressee, you are notified that no part of the 
 e-mail or any attachment may be disclosed, copied or distributed, and 
 that any other action related to this e-mail or attachment is strictly

 prohibited, and may be unlawful. If you have received this e-mail by 
 error, please notify the sender immediately by return e-mail, and 
 delete this message.

 Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or 
 its employees shall not be liable for the incorrect or incomplete 
 transmission of this e-mail or any attachments, nor responsible for 
 any delay in receipt.
 Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal 
 Dutch Airlines) is registered in Amstelveen, The Netherlands, with 
 registered number 33014286
 **
**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. 

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**


Re: SQL query question

2009-01-27 Thread Andrew Raibeck
Hi Eric,

You need to add an WHERE additional criterion like this:

   occupancy.node_name = nodes.node_name

Best regards,

Andy

Andy Raibeck
IBM Software Group
Tivoli Storage Manager Client Product Development
Level 3 Team Lead
Internal Notes e-mail: Andrew Raibeck/Tucson/i...@ibmus
Internet e-mail: stor...@us.ibm.com

IBM Tivoli Storage Manager support web page:
http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html


The only dumb question is the one that goes unasked.
The command line is your friend.
Good enough is the enemy of excellence.

ADSM: Dist Stor Manager ADSM-L@VM.MARIST.EDU wrote on 01/27/2009
05:18:06 AM:

 [image removed]

 SQL query question

 Loon, EJ van - SPLXM

 to:

 ADSM-L

 01/27/2009 05:18 AM

 Sent by:

 ADSM: Dist Stor Manager ADSM-L@VM.MARIST.EDU

 Please respond to ADSM: Dist Stor Manager

 Hi *SM-ers!
 I'm trying to create an SQL query to list all filespaces with more than
 500 Gb. stored in TSM, but only for nodes belonging to a certain
 department. I want to use the contact field for this, but I must be
 doing something wrong, because it still lists all nodes. Here's what I
 created thus far:

 select occupancy.node_name as Node Name, occupancy.filespace_name as
 File System, cast(float(occupancy.physical_mb) as dec(10,0)) as
 Megabytes from occupancy, nodes where occupancy.stgpool_name like
 '%PRI%' and nodes.contact='Linux Department' and occupancy.physical_mb
 =50

 Could someone help me with creating the correct SQL statement?
 Thank you VERY much in advance!!
 Kindest regards,
 Eric van Loon
 KLM Royal Dutch Airlines


 **
 For information, services and offers, please visit our web site:
 http://www.klm.com. This e-mail and any attachment may contain
 confidential and privileged material intended for the addressee
 only. If you are not the addressee, you are notified that no part
 of the e-mail or any attachment may be disclosed, copied or
 distributed, and that any other action related to this e-mail or
 attachment is strictly prohibited, and may be unlawful. If you have
 received this e-mail by error, please notify the sender immediately
 by return e-mail, and delete this message.

 Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
 and/or its employees shall not be liable for the incorrect or
 incomplete transmission of this e-mail or any attachments, nor
 responsible for any delay in receipt.
 Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
 Dutch Airlines) is registered in Amstelveen, The Netherlands, with
 registered number 33014286
 **