Export policies via the command line
Beginning with
FactoryTalk Services Platform
version 6.30, users can export policies with FTPolicyExport Tool
. The policies can be exported from the FactoryTalk Administration Console
interface and the command line.The exported policies are limited to the policies accessible by the logged-on user. If the logged-on user does not have Read, Execute, or List Children permissions for a policy or its parent folders, that policy is not exported.
Use an XML or text comparison tool to determine policy changes between exported policy files.
Prerequisites
- To successfully export policies, ensure the user has the permission to export the currentFactoryTalk Directorypolicy settings:
- In, selectFactoryTalk Administration ConsoleSystem>Policies>>FactoryTalk Administration ConsoleFeature Security>Properties>Export Policies>Configure Security.
- To successfully export policies, ensure the user has the following permissions to all areas of theFactoryTalk Directory:
- Common > Read
- Common > Execute
- Common > List Children
Command-line Parameters
When executing the export utility from the command line, use the following syntax: "
FTPolicyExportTool.exe.-sso [-g/ -l] -p
"Parameters | Description |
---|---|
-sso | Required. Uses single sign-on for authentication. |
-g /-l | Required. Specifies the FactoryTalk Directory you need to log in and export policies. "g" means the Global (network) directory. "l" means the Local directory. |
-p | Required. Specifies the location to save the exported XML file. |
Examples of exporting policies via commands
- Export globalFactoryTalk Directorypolicies to the current folder"C:\Program Files (x86)\Common Files\Rockwell\FTPolicyExportTool.exe" -sso -g -p ".\Policy.xml"
- Export localFactoryTalk Directorysecurity policies to a specified folder"C:\Program Files (x86)\Common Files\Rockwell\FTPolicyExportTool.exe" -sso -l -p "C:\Users\Public\Documents\Policy.xml"
Provide Feedback