EXPORT POLICY (Export a policy directly to another server)

Use this command to export policy information directly to another server on the network. This results in an immediate import on the target server.

To monitor the progress of the import operation, you can issue a QUERY PROCESS command from the target server. See EXPORT ADMIN (Export administrator information) for a list of restrictions that apply to the export function.

Privilege class

To issue this command, you must have system privilege.

Syntax

Read syntax diagramSkip visual syntax diagram
                  .-*---------------.   
>>-EXPort Policy--+-----------------+--------------------------->
                  | .-,-----------. |   
                  | V             | |   
                  '---domain_name-+-'   

                                .-PREVIEWImport--=--No------.   
>--+-------------------------+--+---------------------------+--->
   '-TOServer--=--servername-'  '-PREVIEWImport--=--+-No--+-'   
                                                    '-Yes-'     

   .-Replacedefs--=--No------.   
>--+-------------------------+---------------------------------><
   '-Replacedefs--=--+-No--+-'   
                     '-Yes-'     

Parameters

domain_name
Specifies the policy domains for which information is to be exported. This parameter is optional. The default is all policy domains. Separate multiple names with commas and no intervening spaces. You can use wildcard characters to specify names.
TOServer
Specifies the name of a server to which the export data is sent directly over the network for immediate import.
Important: The target server must be defined on the originating server with the DEFINE SERVER command. The administrator that issues the export command must be defined with the same administrator name and password and have system authority on the target server.

When you specify TOSERVER, you cannot specify the DEVCLASS, VOLUMENAMES, and SCRATCH, USEDVOLUMELIST, and PREVIEW parameters.

PREVIEWImport
Specifies whether to view how much data is transferred, without actually moving any data. This information can be used to determine how much storage pool space is required on the target server. The default is NO.
Valid values are:
Yes
Specifies that you want to preview the results of the import operation on the target server, without importing the data. Information is reported to the server console and the activity log.
No
Specifies that you want the data to be imported on the target server without previewing the results.
Replacedefs
Specifies whether to replace definitions (not file data) on the server. The default is NO.

Valid values are:

Yes
Specifies that definitions are replaced on the server if definitions having the same name as those being imported exist on the target server.
No
Specifies that imported definitions are skipped if their names conflict with definitions that are already defined on the target server.

Example: Export policy to another server

To export policy information directly to SERVERB, issue the following command:
export policy replacedefs=yes toserver=othersrv