On Wed, 17 Jan 1996 16:46:51 -0600 Susan McClure said:
>I run ADSM/VM. Unfortunately, as we have added users we have not always
>filled in all the contact info or kept it up to date. Now I have >200 clients.
>
>I would like to do a "query node" and get the list of all nodes, and then
>do a "q node nodename f=d" and pick up the contact info for each node.
>
>Does anyone already have an exec or script or whatever that does such a thing
>??
>I would appreciate a copy if you can.
>
>Also- does anyone have anything that would take it a step further- do a
>"q filespace nodename" and pick up the 'capacity' field to see how many bytes
>of data we manage for a particular user.
>
>Thanks.
>Susie McClure
>RICE University
---
Susan,
Susan,
I have done this type of thing quite a bit. Some of it is on the
index.storsys.ibm.com ftp server in adsm/nosuppt. For an example of
parseing query node output, look in
ftp://index.storsys.ibm.com/adsm/nosuppt/daily.backup
for routine GetNodeInfo. This will parse the output from Q N F=D and
set some global variables. If you look, you will see that we have a
syntax for all of the information that we put into the CONTACT field.
Hopefully, by looking at the exec, you should be able to determine what
the syntax is, or modify the routine for your use.
I have also written a rather lengthy "Node Administration Tool" that our
Service HelpDesk folks use to register new users to use ADSM. As part of
this tool, there is a menu that allows them to look at space usage for a
particular node. Here's some sample output from the tool:
+++ Menu for looking at a particular node (not the top-level menu):
--
Query System JASPER.CIT.CORNELL.EDU
Query System JASPER.CIT.CORNELL.EDU
-----------------------------------
1 - EZ-Backup subscription information
2 - Last backup date for each filespace
3 - Invoices
4 - Daily storage usage
5 - Filesystem sizes
6 - ADSM Query Node
X - Return to Main Menu
Enter number or letter to select action to perform:
--
+++ Option 5 output:
+++ Option 5 output:
--
Display Filespace Sizes for JASPER.CIT.CORNELL.EDU
Display Filespace Sizes for JASPER.CIT.CORNELL.EDU
--------------------------------------------------
Filespace Capacity Space (MB)
Filespace Name Type (MB) %Util # Files Occupied
--------------------------------- --------- -------- ----- --------- ----------
/ JFS 8.0 65.5 1137 6.25
/ JFS 8.0 65.5 1137 6.25
/var JFS 32.0 12.9 499 6.88
/usr JFS 408.0 97.9 31083 456.49
/work JFS 408.0 91.6 11225 195.52
--
+++ Option 2 output:
+++ Option 2 output:
--
Display Backup Dates for JASPER.CIT.CORNELL.EDU
Display Backup Dates for JASPER.CIT.CORNELL.EDU
-----------------------------------------------
Filespace Last Backup Last Backup Days
Filespace Name Type Start End ago
---------------------------------- --------- -------------- -------------- ----
/ JFS 01/17/96 01:03 01/17/96 01:09 0.7
/ JFS 01/17/96 01:03 01/17/96 01:09 0.7
/var JFS 01/17/96 01:13 01/17/96 01:15 0.7
/usr JFS 01/17/96 01:09 01/17/96 01:13 0.7
/work JFS 01/17/96 01:15 01/17/96 01:19 0.7
--
+++ Option 4 output (obviously this relies on more than just ADSM queries!):
+++ Option 4 output (obviously this relies on more than just ADSM queries!):
--
Daily Storage Usage - JASPER.CIT.CORNELL.EDU - Jan 1996
Daily Storage Usage - JASPER.CIT.CORNELL.EDU - Jan 1996
-------------------------------------------------------
Date Backup MB Archive MB Total MB Account #
---------- ---------- ---------- ---------- -----------------------
01/01/1996 1891.09 0.00 1891.09 R52-4700
01/01/1996 1891.09 0.00 1891.09 R52-4700
01/02/1996 1891.18 0.00 1891.18 R52-4700
01/03/1996 1891.28 0.00 1891.28 R52-4700
01/04/1996 1891.24 0.00 1891.24 R52-4700
01/05/1996 1892.74 0.00 1892.74 R52-4700
01/06/1996 1891.01 0.00 1891.01 R52-4700
01/07/1996 1892.56 0.00 1892.56 R52-4700
01/08/1996 1891.55 0.00 1891.55 R52-4700
01/09/1996 1893.73 0.00 1893.73 R52-4700
01/10/1996 1893.24 0.00 1893.24 R52-4700
01/11/1996 1895.41 0.00 1895.41 R52-4700
01/12/1996 1895.67 0.00 1895.67 R52-4700
01/13/1996 1893.55 0.00 1893.55 R52-4700
01/14/1996 1894.69 0.00 1894.69 R52-4700
01/15/1996 1892.14 0.00 1892.14 R52-4700
Press ENTER to continue...
--
This give you some idea of what is possible. Let me know if you're
This give you some idea of what is possible. Let me know if you're
interested in any of this code. If so, I will try to spend some time
cleaning it up and make something available. Much of the code is
accounting related, and is therefore dependent on Cornell's accounting
system, so the tool is probably not useful to you "as is".
..Paul
Paul Zarnowski Phone: 607/255-4757
Cornell Information Technologies Fax: 607/255-6523
Cornell University US Mail: 315 CCC, Ithaca, NY 14853-2601
|