Running ObjectManager commands
ibmcloud openpages CLI to run ObjectManager commands.The ObjectManager command file is named ObjectManager.cmd on computers running a Microsoft Windows operating system. The command file is named ObjectManager.sh on computers running a Linux® operating system.
ObjectManager.sh|.cmd <command> config|c <authentication> [parameters]The ObjectManager command line must be:
- Run from the
bindirectory. - Typed on a single line (no line breaks) in a command window.
ObjectManager command-line parameters
You can use various commands and parameters with the ObjectManager tool.
<command>- Required.Value can be one of the following commands:
dumpord: Dumps (exports) data.loadorl: Loads (imports) data from a single loader file.validateorv: Validates and verifies the data in a loader file.batchorb: Runs ObjectManager in batch processing mode. Use batch mode to load multiple loader files in a single session. For more information, see Batch loader file syntax.
<authentication>- The authentication method that you need to use depends on the deployment type that you are using.
- IBM OpenPages on Cloud and IBM OpenPages on premises
- Use
<user>and<password>. - IBM® Software Hub
- Use one of the following combinations:
-
jwtand a IBM Software Hub JSON Web Token (JWT) - Your IBM Software Hub username and your IBM Software Hub API key
You generate the API Key in IBM Software Hub. For more information, see Generating API keys for authentication..
To see examples of using these parameters, see Load command syntax.
-
- Watsonx.governance as a Service on AWS
- Use
apikey <apikey>.Replace
<apikey>with your API key.You generate API keys in the IBM SaaS Console. For more information, see Creating API keys
-
<loader-file-path> - Optional.
The file path to a single XML loader file.
The current directory is used if no file path is specified.
The ObjectManager.log file is written to this directory.
-
<loader-file-prefix> - Optional.
The user-defined portion of the loader file name.
By default, the ObjectManager tool attempts to load from or write to the file
op-config.xml, if no prefix is specified. -
<batch-loader-dir> - Required when you are using
batchmode.The file path to the XML loader files that are listed in the
<batch-loader-list-file>. You can use a parent directory if loader files are in multiple subdirectories under that directory. -
<batch-loader-list-file> - Required when you are using
batchmode.The fully qualified file path and name of a text document that contains a list of loader files for batch processing.
Load command syntax
data1-op-config.xml that resides in the c:\import folder to import
data into IBM OpenPages.
Procedure
Dump command syntax
config1-op-config.xml prefix that resides in the
c:\export folder. If the folder does not already exist, the ObjectManager tool creates it.
Procedure
Batch loader file syntax
A batch loader list file is typically a text (.txt) file that
contains a list of the XML loader files for batch processing by the ObjectManager tool.
ObjectManager batch|b config|c <authentication> <batch-loader-dir> <batch-loader-list-file> - <batch-loader-dir> is the full path to the directory that contains the loader files. The loader files can be in sub directories under the <batch-loader-dir>.
- <batch-loader-list-file> is the full path and filename of the batch
loader list file. This file is typically a
.txtfile
- Any line starting with a number sign (
#) is considered a comment. - Any line starting with greater than sign (
>) is written to the screen for display. - All other lines are assumed to be the relative path to a loader file.
# If the <batch-loader-dir> was given as
# c:\temp\myfiles, the following lines would
# write the "Loading…" message and then attempt to load the file
# c:\temp\myfiles\sample-add-user-op-config.xml
> Loading example 1…
sample-add-user
# The following lines would write the "Loading…" message and then attempt
# to load the files:
# c:\temp\loaders\samplefxrates-op-config
# c:\temp\loaders\samplecurrencyfield-op-config
# c:\temp\loaders\samplecurrencies-op-config
> Loading examples 2-4…
loaders\samplecurrencyfield
loaders\samplecurrencies
loaders\samplefxratesThe sample file also shows how you can display an
informational loading
message (line starting with >) on the
screen.
For this example, name the file my_loader_list.txt and save it in the
c:\sample_batch\ directory.
my_loader_list.txt file to load or import data.- The
<batch-loader-dir>is c:\temp\myfiles. The\myfilesdirectory is used for the<batch-loader-dir>parameter because it includes the sample-add-user-op-config.xml and the\loaderssubdirectory, which contains the other files to load. - The
<batch-loader-list-file>is the full path and name of the batch loader list file. For this example,the path is c:\sample_batch\my_loader_list.txt.