Results 1 to 3 of 3
-
11-27-2012, 02:21 PM #1Newcomer
- Join Date
- Aug 2012
- Posts
- 44
- Thanks
- 16
- Thanked 0 Times in 0 Posts
Script to show occupancy on stgpool for inactive nodes
Hi there,
We have this script (which I got from another site) which shows us node data grouped by stgpool. However, I'd like to know the occupancy of all nodes, grouped by stgpool, but, inactive only.
Here is what we use now:
SELECT node_name, filespace_name, stgpool_name, SUM(logical_mb) AS "Total MB" FROM occupancy WHERE node_name='NOCD1' GROUP BY node_name, filespace_name, stgpool_name ORDER BY filespace_name
How can I get the above to show nodes that have not accessed the server in 30 days or more?
-
11-29-2012, 08:12 AM #2Senior Member
- Join Date
- Jul 2008
- Location
- Birmingham, UK
- Posts
- 529
- Thanks
- 0
- Thanked 4 Times in 4 Posts
Hi
This should do what you want..
SELECT aa.node_name, bb.filespace_name, bb.stgpool_name, SUM(bb.logical_mb) AS "Total MB" FROM nodes aa, occupancy bb where aa.lastacc_time<=(current_timestamp - 30 days) and aa.node_name=bb.node_name group by aa.node_name, bb.filespace_name, bb.stgpool_name ORDER BY bb.filespace_name
Hope that helps
-
11-30-2012, 08:59 AM #3Newcomer
- Join Date
- Aug 2012
- Posts
- 44
- Thanks
- 16
- Thanked 0 Times in 0 Posts
Similar Threads
-
Show size of Inactive Files
By redplumptomato in forum ScriptingReplies: 0Last Post: 09-14-2012, 03:52 PM -
Occupancy of inactive files
By dreamz in forum Backup / Archive DiscussionReplies: 7Last Post: 05-19-2009, 09:59 AM -
Query Active or Inactive file occupancy
By Netscape in forum TSM ServerReplies: 5Last Post: 12-14-2007, 10:40 AM -
Occupancy by all nodes in one query.
By zeke in forum Performance TuningReplies: 6Last Post: 07-07-2006, 03:06 AM -
Occupancy Script for Inactive files
By jfsilverman in forum ScriptingReplies: 3Last Post: 09-19-2005, 08:02 AM


Reply With Quote
