Importing Profiles from the Command Line

  

DEVELOPER

The Profile Import utility provides a simple way for you to import PROIV profile objects from a directory containing JSON files, from the same or a different machine. Refer JSON Export and Character Encodings other than UTF-8 for additional information.

When you run the Import utility from the command line, the selected PROIV objects such as Operators and/or Projects are imported into your PROIV environment.

The following files can be imported:

·         PROIV Operators, these files will have a .p4op extension and will contain all operator related data.

·         PROIV Projects, these files will have a .p4pr extension and contain all project related data.

To import, simply execute the runproiv script in UNIX with the following parameters:

    ./runproiv.sh /proivhome/config/decvt100.properties %%% %%% projects myimportedresults.txt /proivhome/boots/Jsonimport import 2>&1 > runproiv.log

     

    Field

    Description

    Config File

    The location of the configuration file you will use to launch the PROIV session. Command line execution must use a non gui character based terminal type.

    PROIV Company Division

    Must be %%% to successfully execute this functionality. This operator is included as part of the standard distribution.

    PROIV Operator

    Must be %%% to successfully execute this functionality. This operator is included as part of the standard distribution.

    Profile Type

    This will be "operators" or "projects".

    Results File

    Output of the results (including any exceptions). This file will reside in the boots folder if no path is specified

    Import Folder Location

    This is the folder where the individual json files (.p4op/.p4pr) will reside.

    Action Type

    For imports, this must be "import".

1. Reserved PROIV operator %%%% must be present in your PROIV environment.

Comment on this topic

Topic ID: 500804