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 current
    FactoryTalk Directory
    policy settings:
    • In
      FactoryTalk Administration Console
      , select
      System
      >
      Policies
      >
      FactoryTalk Administration Console
      >
      Feature Security
      >
      Properties
      >
      Export Policies
      >
      Configure Security
      .
  • To successfully export policies, ensure the user has the following permissions to all areas of the
    FactoryTalk 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
  1. Export global
    FactoryTalk Directory
    policies to the current folder
    "C:\Program Files (x86)\Common Files\Rockwell\FTPolicyExportTool.exe" -sso -g -p ".\Policy.xml"
  2. Export local
    FactoryTalk Directory
    security 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
Have questions or feedback about this documentation? Please submit your feedback here.
Normal