17.12 ioutils exportpolicy (exporting security policy settings)
Functionality
This command exports security policy settings to a specified file.
For an environment with multiple JP1/IT Desktop Management 2 systems configured, this command enables security policy settings created on one management server to be reused on another management server.
Execute this command on a management server.
Format
ioutils exportpolicy -export export-file-name -name security-policy-name[ -s]
Argument
- -export export-file-name
-
Specify the absolute path (within 259 bytes) of the XML file to export.
- -name security-policy-name
-
Specify a security policy name to export.
- -s
-
Overwrites the file even if a file with the same file name already exists at the export destination. If this argument is not specified and a file with the same file name already exists, an overwrite confirmation message appears. In this case, the system cancels the output or overwrites the file according to the administrator's reply.
Storage location
JP1/IT Desktop Management 2-installation-folder\mgr\bin\
You can execute this command without specifying a storage location for the executable file, by using the command prompt provided by JP1/IT Desktop Management 2.
Notes
-
Execute this command when the management server setup is completed and the management server is running.
-
This command cannot be simultaneously executed by multiple users.
-
This command cannot be executed simultaneously with any of the following commands:
-
exportdb
-
importdb
-
ioassetsfieldutil export
-
ioassetsfieldutil import
-
ioutils exportasset
-
ioutils exportdevice
-
ioutils exportdevicedetail
-
ioutils exportfield
-
ioutils exportfilter
-
ioutils exportoplog
-
ioutils exporttemplate
-
ioutils exportupdategroup
-
ioutils exportupdatelist
-
ioutils importasset
-
ioutils importexlog
-
ioutils importfield
-
ioutils importfilter
-
ioutils importpolicy
-
ioutils importtemplate
-
ioutils importupdategroup
-
ioutils importupdatelist
-
reorgdb
-
startservice
-
stopservice
-
updatesupportinfo
-
deletenwgroup
-
distributelicense
-
-
If a package is specified as a auto-enforce program for mandatory software defined in a security policy, the security policy cannot be exported.
Return value
The following table shows the return values of the ioutils exportpolicy command.
Return value |
Description |
---|---|
0 |
The command finished normally. |
11 |
The format for specifying the command arguments is invalid. |
12 |
The specified folder is invalid, the disk does not have sufficient capacity, or the folder does not exist. |
15 |
A file access error occurred when outputting the file, or the disk does not have sufficient capacity. |
31 |
Another command is being executed. |
51 |
You do not have the permissions to execute this command. |
54 |
The management server has not been set up. |
75 |
The specified security policy does not exist. |
85 |
A package exists. |
101 |
Command execution failed because there is not enough memory, or due to some other reason. |
120 |
A database access error occurred. |
150 |
The command execution was interrupted due to some other error. |
Example
The following example shows use of this command to export security policy settings called "policy for development group" to C:\temp\exportpolicy.xml.
ioutils exportpolicy -export C:\temp\exportpolicy.xml -name "policy for development group" -s
Related Topics: