Import a configuration from a file

Build 1501 on 14/Nov/2017  This topic last edited on: 10/Oct/2016, at 17:08

Important: importing of an inappropriate file or wrong changes can put at stake the production! Have a last good backup file ready!

You can import a GN4 configuration item from a file. This is needed after you modified the configuration file, to load it into the GN4 system.

Apply the import method, described in the following text, to the configuration files (xxx_TabItems, xxx_Config, ServerConfig etc), workflows, feeds, XSL files etc.

To import configuration item from a file into the database (version 2.5 or newer)

<cmd4path>\cmd4 config -in <filepath> -srvurl http://<servername>/I4 -username <username> -password <password>

or

<cmd4path>\cmd4 config -in <filepath> -srvurl http://<servername>/GN4 -username <username> -password <password>

To import configuration item from a file into the database (version 2.1 to 2.4)

<cmd4path>\cmd4 config -in <filepath> -srvurl http://<servername>/GN4/adminsrv.asmx -username <username> -password <password>

Notes

Replace <cmd4path> with the path of your GN4 application folder.

Replace <itemname> with the name of the item (without .xml extension).

Replace <filepath> with the full path to the file to be imported or exported, including file extension.

Replace <servername> with the real name of your GN4 server.

Replace <username> with the name of a GN4 user who has administrative permissions.

Replace <password> with the password of the <username> GN4 user.

Replace <fullpath> with the drive letter and the path to the file, including extension.

For a full list of command options, see cmd4 config.

See also

Identifying the right import/export method