redplumptomato
ADSM.ORG Member
- Joined
- Aug 21, 2012
- Messages
- 69
- Reaction score
- 0
- Points
- 0
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?
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?