Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Content Management Script Parameters

Use the contentManagement.pl script to export content from one JSA deployment and import it to another deployment.

The following table describes the parameters for the contentManagement.pl script and the actions to which each parameter applies.

/opt/qradar/bin/contentManagement.pl --action [action_type] [script_parameters]

Table 1: ContentManagement.pl Script Parameters

Parameter

Description

-a[action_type]

or

--action[action_type]

Required. Specifies the action.

Valid action types are export, search, import, and update.

The import action adds only content that does not exist in the deployment.

-c[content_type]

or

--content-type[content_type]

Used with the export and search actions. Specifies the type of content.

When used with the export action, you can specify -c all or -c package, or you can type the Content Type Identifiers for Exporting Custom Content. When you use -c package, you must specify the --file or --name parameters.

When used with the search action, you must specify the Content Type Identifiers for Exporting Custom Content. You cannot use -c package or -c all with the search action.

-d

or

--debug

Used with all actions.

Use debug level logging when you run the contentManagement.pl script to see more detailed information, such as logs for customer support.

-e

or

--include-reference-data-elements

Used with the export action.

Set this flag to include reference data keys and elements in the export.

Reference data keys and reference data elements are applicable to the referencedata content type. This parameter is applicable only when you export reference data, or content items that are dependent on reference data.

-f[file_path]

or

--file[file_path]

Used with export, import, and update actions.

When used with the export action, specifies the path and file name of the text file that contains the list of custom content items that you want to export. The first time you use the --file parameter, a package template file is written to the /store/cmt/packages directory so that you can reuse it.

When used with the import or update action, specifies the file that contains the content items to import. Valid file types are zip, targz, and xml.

The filename and path are case-sensitive.

-g

or

--global-view

Used with the export action.

Includes accumulated data in the export.

-h[action_type]

or

--help[action_type]

Used with all actions.

Displays help that is specific to the action_type. When no action_type is specified, displays a general help message.

-i[content_identifier]

or

--id[content_identifier]

Used with the export action.

. You can specify all to Exporting All Custom Content Of a Specific Type.

-n[name]

or

--name[name]

Used with the export action.

Specifies the name of the package template file that contains the list of custom content to export.

The package template file is created the first time that you use the --file parameter. The --name parameter assumes that the package template file is in the /store/cmt/packages directory.

You must specify the --file or --name parameter when --content-type package is used.

-o[filepath]

or

--output-directory[filepath]

Used with the export action.

Specifies the full path to the directory where the export file is written.

If no output directory is specified, the content is exported to the current directory. If the specified output directory does not exist, it is created.

-q

or

--quiet

Used with all actions. No output appears on the screen.

-r[regex]

or

--regex[regex]

Used with the search action.

When searching, you must use the --regex parameter to specify the content to search for. All content that matches the expression is displayed.

-t[compression_type]

or

--compression-type[compression_type]

Used with the export action.

Specifies the compression type of the export file. Valid compression types are ZIP and TARGZ (case sensitive). If you do not specify a compression type, the default compression type is ZIP.

-u[user]

or

--user[user]

Used with the import action.

Specifies the user that replaces the current owner when you import user-specific data. The user must exist on the target system before you import the content.

-v

or

--verbose

Used with all actions.

Use when you log in to view default-level information for the content management tool.