Use the EXPORT POLICY command to export policy information for one or more policy domains from an ADSM server to sequential media.
The EXPORT POLICY command exports policy information and client node data such as:
You can use the QUERY ACTLOG command to view the actual status information indicating the size and the success or failure of the export operation. You can also view this information from the server console.
This command generates a background process that can be canceled with the CANCEL PROCESS command. If an EXPORT POLICY background process is canceled, the sequential media holding the exported data are incomplete and should not be used for importing data. To display information on background processes, use the QUERY PROCESS command.
Privilege Class
To issue this command, you must have system privilege.
Syntax
>>-EXPort Policy---+--------------------+----------------------->
| .-,------------. |
| V | |
'----domainname---+--'
.-Preview--=--No----------------.
>---+-------------------------------+--------------------------->
| (1) (2) |
'-Preview-----------=--+-No--+--'
'-Yes-'
>----+-----------------------------+---------------------------->
| (1) |
'-DEVclass------=devclassname-'
.-Scratch--=--Yes-----------.
>---+---------------------------+------------------------------->
| (2) |
'-Scratch-------=--+-Yes-+--'
'-No--'
.-,--------.
(2) V |
>----VOLumenames------=--+---volname---+--+--------------------->
'-FILE:filename--'
>---+---------------------------+------------------------------><
'-USEDVolumefile--=filename-'
1 | If PREVIEW=NO, a device class must be specified. |
2 | If PREVIEW=NO and SCRATCH=NO, one or more volumes must be specified. |
Parameters
The items in the list are separated by commas, with no intervening spaces. You can use pattern-matching expressions to specify names. All matching policy domains are included in the list. If you do not specify a value for this parameter, information related to all policy domains is exported.
If the mount limit for the device class specified has already been reached (all drives are busy) when the export runs, ADSM automatically cancels lower priority operations, such as reclamation, to make a mount point available for the export.
Use the following naming conventions when specifying volumes for each device type.
Possible values are:
For example, to use volumes TAPE01, TAPE02, TAPE03, specify the following:
VOLUMENAMES=TAPE01,TAPE02,TAPE03
For example, to use volumes TAPE01, TAPE02, and TAPE03, create a file named TAPEVOL that contains these lines:
TAPE01 TAPE02 TAPE03
You can then specify the volumes for the command as follows:
VOLUMENAMES=FILE:TAPEVOL
If the file you specify is created without errors, it can be used as input to the IMPORT command on the VOLUMENAMES=FILE:filename parameter. This file will contain comment lines with the date and time the export was done, and the command issued to create the export.
| Note: | If you specify this parameter with an existing filename, the existing file will be overwritten with the new information. |
Examples
Task
Export the policy information related to all domains whose names begin with a D to tape volume DMT002, assigned to the CLASS4 device class. Allow the server to use scratch volumes.
The number and type of objects exported are reported to the system console and in the activity log.
Related Commands
Table 98. Commands Related to EXPORT POLICY
| Command | Description |
|---|---|
| CANCEL PROCESS | Cancels a background server process. |
| EXPORT ADMIN | Copies administrative information to external media. |
| EXPORT NODE | Copies client node information to external media. |
| EXPORT SERVER | Copies all or part of the server to external media. |
| IMPORT POLICY | Restores policy information from external media. |
| QUERY ACTLOG | Searches for and displays messages from the server activity log. |
| QUERY PROCESS | Displays information about one or all background server processes. |