SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Filespace query
Author Message
Post Filespace query 
Tsm server 5.5.4, clients range from 5.0 through 6.3.

Trying to construct a query to show me all windows nodes, whether they have a filespace systemobject or systemstate, and when it was last backed up.
Q filespace


Comes close, and maybe I'll just need to rattle that data around.

If anyone can help with this query, I'd appreciate it.


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

=

Post Filespace query 
Try script or query from script:

define script A2_Last_Client_Backups description="List of last file space backups for nodes"
update script A2_Last_Client_Backups \
"set sqldisplaymode wide"
update script A2_Last_Client_Backups \
"select node_name, filespace_name, filespace_id, filespace_type, \
cast(substring(cast(backup_start as char(26)) from 1 for 16) as char(16)) as Started, \
cast(substring(cast(backup_end as char(26)) from 1 for 16) as char(16)) as Ended \
from filespaces \
order by node_name, filespace_id"

Grigori G. Solonovitch

Senior Technical Architect

Information Technology Bank of Kuwait and Middle East http://www.bkme.com

Phone: (+965) 2231-2274 Mobile: (+965) 99798073 E-Mail: G.Solonovitch < at > bkme.com

Please consider the environment before printing this Email


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L < at > VM.MARIST.EDU] On Behalf Of Lee, Gary D.
Sent: Wednesday, March 10, 2010 5:02 PM
To: ADSM-L < at > VM.MARIST.EDU
Subject: [ADSM-L] Filespace query

Tsm server 5.5.4, clients range from 5.0 through 6.3.

Trying to construct a query to show me all windows nodes, whether they have a filespace systemobject or systemstate, and when it was last backed up.
Q filespace


Comes close, and maybe I'll just need to rattle that data around.

If anyone can help with this query, I'd appreciate it.


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



Please consider the environment before printing this Email.

"This email message and any attachments transmitted with it may contain confidential and proprietary information, intended only for the named recipient(s). If you have received this message in error, or if you are not the named recipient(s), please delete this email after notifying the sender immediately. BKME cannot guarantee the integrity of this communication and accepts no liability for any damage caused by this email or its attachments due to viruses, any other defects, interception or unauthorized modification. The information, views, opinions and comments of this message are those of the individual and not necessarily endorsed by BKME."

Post Filespace query 
Or you can try this:


Name: SINCELAST_FS
Line Number: 35
Command: select filespaces.node_name,filespaces.filespace_name as "Filespace_Name ",date(filespaces.backup_end)as "Last
Backup",capacity as "Capacity",pct_util as "% Used" from -
Last Update by (administrator): $$CONFIG_MANAGER$$
Last Update Date/Time: 03/09/10 13:34:04

Name: SINCELAST_FS
Line Number: 40
more... (<ENTER> to continue, 'C' to cancel)

Command: filespaces where (($1 < -
Last Update by (administrator): $$CONFIG_MANAGER$$
Last Update Date/Time: 03/09/10 13:34:04

Name: SINCELAST_FS
Line Number: 45
Command: days(current_timestamp) - days(backup_end)) or -
Last Update by (administrator): $$CONFIG_MANAGER$$
Last Update Date/Time: 03/09/10 13:34:04

Name: SINCELAST_FS
Line Number: 50
Command: backup_end is null) and filespaces.node_name in (select nodes.node_name from nodes where domain_name=upper('$2'))
Last Update by (administrator): $$CONFIG_MANAGER$$
Last Update Date/Time: 03/09/10 13:34:04


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L < at > vm.marist.edu] On Behalf Of Grigori Solonovitch
Sent: Wednesday, March 10, 2010 8:14 AM
To: ADSM-L < at > vm.marist.edu
Subject: Re: [ADSM-L] Filespace query

Try script or query from script:

define script A2_Last_Client_Backups description="List of last file space backups for nodes"
update script A2_Last_Client_Backups \
"set sqldisplaymode wide"
update script A2_Last_Client_Backups \
"select node_name, filespace_name, filespace_id, filespace_type, \
cast(substring(cast(backup_start as char(26)) from 1 for 16) as char(16)) as Started, \
cast(substring(cast(backup_end as char(26)) from 1 for 16) as char(16)) as Ended \
from filespaces \
order by node_name, filespace_id"

Grigori G. Solonovitch

Senior Technical Architect

Information Technology Bank of Kuwait and Middle East http://www.bkme.com

Phone: (+965) 2231-2274 Mobile: (+965) 99798073 E-Mail: G.Solonovitch < at > bkme.com

Please consider the environment before printing this Email


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L < at > VM.MARIST.EDU] On Behalf Of Lee, Gary D.
Sent: Wednesday, March 10, 2010 5:02 PM
To: ADSM-L < at > VM.MARIST.EDU
Subject: [ADSM-L] Filespace query

Tsm server 5.5.4, clients range from 5.0 through 6.3.

Trying to construct a query to show me all windows nodes, whether they have a filespace systemobject or systemstate, and when it was last backed up.
Q filespace


Comes close, and maybe I'll just need to rattle that data around.

If anyone can help with this query, I'd appreciate it.


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



Please consider the environment before printing this Email.

"This email message and any attachments transmitted with it may contain confidential and proprietary information, intended only for the named recipient(s). If you have received this message in error, or if you are not the named recipient(s), please delete this email after notifying the sender immediately. BKME cannot guarantee the integrity of this communication and accepts no liability for any damage caused by this email or its attachments due to viruses, any other defects, interception or unauthorized modification. The information, views, opinions and comments of this message are those of the individual and not necessarily endorsed by BKME."

Post Filespace query 
SELECT Left(CHAR(BACKUP_END),19) as "LAST COMPLETE BACKUP", Char(NODE_NAME,10) as "NODE NAME", -
Left(FILESPACE_NAME,25) as "FILESPACE NAME ", FILESPACE_TYPE as "FILE SYSTEM TYPE" -
From FILESPACES Where BACKUP_END is not null -
and FILESPACE_NAME in ('SYSTEM OBJECT', 'SYSTEM SERVICES', 'SYSTEM STATE') -
Order by "LAST COMPLETE BACKUP" Asc

Post Filespace query 
-----Gary Lee wrote: -----

Tsm server 5.5.4, clients range from 5.0 through 6.3.

Trying to construct a query to show me all windows nodes, whether
they have a filespace systemobject or systemstate, and when it was
last backed up.
Q filespace

Comes close, and maybe I'll just need to rattle that data around.

If anyone can help with this query, I'd appreciate it.

Other respondants have covered the matter of finding the last
backup date for existing system file backups. You can find
find Windows client nodes with no 'SYSTEM OBJECT' or 'SYSTEM
STATE' backups as follows:

select node_name from nodes where platform_name='WinNT' and
node_name not in (select node_name from filespaces where
filespace_name in ('SYSTEM OBJECT', 'SYSTEM STATE'))

We are starting to see small numbers of Windows 2008 client
systems. These use a new naming convention for filespaces
containing system file backups, such as:

WIN2008SRV\SystemState\NULL\System State\SystemState

for a test system named win2008srv.

Post Filespace query 
It's not just Win2008, the new naming convention for SystemState started
at the 5.5 client, so you'll see it for Win2K3 as well. I think this
will get it..

select ... where upper(filespace_name) like '%SYSTEMSTATE%'



-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L < at > VM.MARIST.EDU] On Behalf Of
Thomas Denier
Sent: Wednesday, March 10, 2010 10:47 AM
To: ADSM-L < at > VM.MARIST.EDU
Subject: Re: [ADSM-L] Filespace query

-----Gary Lee wrote: -----

Tsm server 5.5.4, clients range from 5.0 through 6.3.

Trying to construct a query to show me all windows nodes, whether
they have a filespace systemobject or systemstate, and when it was
last backed up.
Q filespace

Comes close, and maybe I'll just need to rattle that data around.

If anyone can help with this query, I'd appreciate it.

Other respondants have covered the matter of finding the last
backup date for existing system file backups. You can find
find Windows client nodes with no 'SYSTEM OBJECT' or 'SYSTEM
STATE' backups as follows:

select node_name from nodes where platform_name='WinNT' and
node_name not in (select node_name from filespaces where
filespace_name in ('SYSTEM OBJECT', 'SYSTEM STATE'))

We are starting to see small numbers of Windows 2008 client
systems. These use a new naming convention for filespaces
containing system file backups, such as:

WIN2008SRV\SystemState\NULL\System State\SystemState

for a test system named win2008srv.

Post Filespace query 
Wanda, that did it. My life just got easier.

Thanks.



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


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L < at > VM.MARIST.EDU] On Behalf Of Prather, Wanda
Sent: Thursday, March 11, 2010 1:32 PM
To: ADSM-L < at > VM.MARIST.EDU
Subject: Re: [ADSM-L] Filespace query

It's not just Win2008, the new naming convention for SystemState started
at the 5.5 client, so you'll see it for Win2K3 as well. I think this
will get it..

select ... where upper(filespace_name) like '%SYSTEMSTATE%'



-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L < at > VM.MARIST.EDU] On Behalf Of
Thomas Denier
Sent: Wednesday, March 10, 2010 10:47 AM
To: ADSM-L < at > VM.MARIST.EDU
Subject: Re: [ADSM-L] Filespace query

-----Gary Lee wrote: -----

Tsm server 5.5.4, clients range from 5.0 through 6.3.

Trying to construct a query to show me all windows nodes, whether
they have a filespace systemobject or systemstate, and when it was
last backed up.
Q filespace

Comes close, and maybe I'll just need to rattle that data around.

If anyone can help with this query, I'd appreciate it.

Other respondants have covered the matter of finding the last
backup date for existing system file backups. You can find
find Windows client nodes with no 'SYSTEM OBJECT' or 'SYSTEM
STATE' backups as follows:

select node_name from nodes where platform_name='WinNT' and
node_name not in (select node_name from filespaces where
filespace_name in ('SYSTEM OBJECT', 'SYSTEM STATE'))

We are starting to see small numbers of Windows 2008 client
systems. These use a new naming convention for filespaces
containing system file backups, such as:

WIN2008SRV\SystemState\NULL\System State\SystemState

for a test system named win2008srv.

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB