Академический Документы
Профессиональный Документы
Культура Документы
The Administrative macro command looks at all storage pools that are designated as primary
storage pools, calculates the number of TB in each pool, and sums up the results.
The Administrative macro is executed using a Tivoli Storage Manager command line
administrative client. To execute the administrative macro, do the following:
1. Download the appropriate Administrative macro. The tsm_db_cap_v5.macro is used to
measure capacity for a version 5 server and the tsm_db_cap_v6.macro is used to measure
capacity for a version 6.1 or 6.2 server. And the macro tsm_db_cap_v63.macro is used to
measure capacity for a version 6.3 server.
2. The macro should be run from a Microsoft Windows, Unix, or Linux workstation where the
Tivoli Storage Manager command line administrative client is installed.
3. Open a command window on the machine where the macro will be run.
For Microsoft Windows, open a "Command Prompt" command window. For example, this can
typically be found from Start Programs->Accessories->Command Window.
For Unix or Linux, there are many ways to accomplish this. For example, if you are using
telnet or scp through Putty to access the machine, you can run the command in step 4 from
there. Alternatively, you could start an xTerm or other terminal window and run it from there
as well.
4. From an operating system command window such as a Windows "Command Prompt" or an
xTerm, invoke the Tivoli Storage Manager command line administrative client as follows:
dsmadmc -id=<yourid> -password=<yourpassword> -dataonly=yes outfile=<capacity_file_name> macro <macro_name>
The input parameters that must be specified by the administrator when this is executed are
the items enclosed in '<' and '>' respectively. The specific input parameters are:
<yourid> - This is the administrative user id that will be used to connect to the server.
<yourpassword> - This is the password for the administrative user id that will be used to
connect to the server.
<capacity_file_name> - The results from the macro will be stored to this file. Select an
appropriate file name use. For example, consider using the server name such as
"server1.capacity".
<macro_name> - The name of the macro to be run, this is either the tsm_db_cap_v5.macro
or tsm_db_cap_v6.macro depending upon which version server you are collecting capacity
information.
5. Repeat step 2 for each server. To run this for other servers, update <yourid>,
<yourpassword>, <capacity_file_name>, and <macro_name> accordingly. Also consider
using the "-server=<servername>" parameter when invoking dsmadmc and use that to control
which server this is being run against.
Notes about use and running of the capacity measurement macro:
Run the macro as described in step 4.
The macro is a command macro intended to be run from the TSM command line
administrative client as shown.
Do not try to run this as a TSM script, such as using the "RUN <name here>"
command.
Do not start the command line administrative client and try to invoke it from within a
running client. The output formatting as controlled by the "-dataonly=yes" flag is
important to how this is run. Running the macro differently than as shown can result
in failures or a capacity report that is difficult to read because it is not formatted
correctly.