Results 1 to 6 of 6
Thread: Number of tape per node
-
09-09-2010, 11:03 AM #1
Number of tape per node
Hi,
I wish to have a script that allows me to know the number of tape used by a specific node from a storage pool specific.
Thanks in advance for your help.Christophe Chirat - TSM Consultant for LGS Inc
Tivoli Storage Manager 6.2 "Implementation" Certified
ITIL Certified
LinkedIn
-
09-09-2010, 11:17 AM #2Newcomer
- Join Date
- Oct 2009
- Posts
- 48
- Thanks
- 0
- Thanked 0 Times in 0 Posts
select distinct(volume_name) from volumeusage where node_name='NODENAME' and stgpool_name='STGPOOLNAME'
-
09-09-2010, 11:22 AM #3
Unfortunately this doesn't work.
Christophe Chirat - TSM Consultant for LGS Inc
Tivoli Storage Manager 6.2 "Implementation" Certified
ITIL Certified
LinkedIn
-
09-09-2010, 11:27 AM #4Newcomer
- Join Date
- Oct 2009
- Posts
- 48
- Thanks
- 0
- Thanked 0 Times in 0 Posts
It should work ...This is the output from one of the tsm servers which we are handling.Please try once again
tsm: *****>select distinct(volume_name) from volumeusage where node_name='VAL89709' and stgpool_name='WIN_PRI'
VOLUME_NAME
------------------
TN40756
TN41120
-
09-09-2010, 11:36 AM #5
tsm : *********>select distinct(volume_name) from volumeusage where node_name='DMZ00DMZQC00055' and stgpool_name='lto3_pool'
ANR2034E SELECT: No match found using this criteria.
ANS8001I Code de retour 11.
OR
tsm : TCN00QUBC00076>Select distinct node_name,volume_name,stgpool_name from volumeusage where node_name='DMZ00DMZQC00055' and stgpool_name='LTO3_POOL'
I would like a script that makes me the total number of tapes.HTML Code:NODE_NAME VOLUME_NAME STGPOOL_NAME ------------------ ------------------ ------------------ DMZ00DMZQC00055 300011 LTO3_POOL DMZ00DMZQC00055 300016 LTO3_POOL DMZ00DMZQC00055 300021 LTO3_POOL DMZ00DMZQC00055 300028 LTO3_POOL DMZ00DMZQC00055 300038 LTO3_POOL
-
09-09-2010, 11:59 AM #6
The solution:
select count(distinct volume_name) as "Number of tapes" FROM volumeusage where stgpool_name='STGPOOL_NAME' and node_name='NODE_NAME'
or
select stgpool_name, count(distinct volume_name) as "Number of tapes" FROM volumeusage where node_name='NODE_NAME' GROUP BY stgpool_nameLast edited by chris_magic; 09-09-2010 at 12:29 PM.
Christophe Chirat - TSM Consultant for LGS Inc
Tivoli Storage Manager 6.2 "Implementation" Certified
ITIL Certified
LinkedIn
Similar Threads
-
ANR2716E after changing Node IP-Number
By Ziegenhardt in forum TSM ClientReplies: 3Last Post: 04-30-2009, 02:32 PM -
High number of tapes used by node
By Leandro Freitas in forum Backup / Archive DiscussionReplies: 7Last Post: 09-12-2008, 01:47 PM -
How to find out number of backed up versions of all files of a node.
By mohit in forum TSM Documentation,Tips and TricksReplies: 1Last Post: 07-06-2006, 08:10 PM -
How to find out number of backed up versions of all files of a node.
By mohit in forum Backup / Archive DiscussionReplies: 0Last Post: 04-05-2006, 04:30 AM -
number of tapes of one restore incremental of a TSM node
By jomamilo in forum Administrative ClientReplies: 4Last Post: 02-28-2006, 02:01 PM


Reply With Quote
