Administrative command-line interface
Overview
You can use the administrative nevisIDM command-line interface (CLI) to create and manage instances of nevisIDM. The command-line interface consists of the following commands:
Static commands
nevisidm pkg
Prints out the current component version.
nevisidm inst
Lists instances.
nevisidm inst create <instance>
Creates a new instance, by creating a directory under /var/opt/nevisidm, copying template files from /opt/nevisidm, and replacing the variables in the template. Registers the component instance as a service in system.d.
Uses key=value command line arguments for the variable replacement in the template files. Uses the INST_CUSTOM_TEMPLATE=<path> command line argument to provide custom configuration templates.
nevisidm inst exists <instance>
Checks the existence of the instance directory.
nevisidm inst remove <instance>
Stops the running instance.
Creates a backup of the instance, by zipping the instance directory. Removes the instance directory /var/opt/nevisidm/<instance>. Removes the system.d service entries.
Instance commands
nevisidm <instance> start
Starts instance via system.d.
nevisidm <instance> stop
Stops instance via system.d.
nevisidm <instance> restart
Calls stop and start.
nevisidm <instance> status
Shows the aggregate status of the instance.
nevisidm <instance> config
Edits the application configuration.
nevisidm <instance> config env
Edits the environment configuration.
nevisidm <instance> config vmargs
Edits the configuration file containing the JVM arguments. This is an alias of the config env command.
nevisidm <instance> config log
Edits the log configuration.
nevisidm <instance> config server
Edits the instance server configuration.
nevisidm <instance> log
Lists the server log files.
When you execute a command without specifying the instance name, the command is performed against the default nevisidm instance.
Setting up servers
The base command for creating an instance is:
nevisidm inst create <name>
This will create an instance using default settings for all configurations. Depending on your requirements or environment this might not result in a working setup out of the box.
The template files for configuration can be found at /opt/nevisidm/template/conf.
Overriding default variables from command line arguments
To use values specific to your requirements, you can provide key=value pairs in the command line after the instance name:
nevisidm inst create <instance> INST_CUSTOM_TEMPLATE="/tmp/my_templates" IDMDB_USERNAME="UIDM03"
The default teamplates do not contain such variables. Define custom templates to use this functionality.
Overriding default variables from files
A properties file can be used to store and override multiple variables. A properties file can be leveraged like this:
nevisidm inst create <instance> /tmp/setup.properties
Where the /tmp/setup.properties contains key value pairs like this:
INST_CUSTOM_TEMPLATE=/tmp/my_templates
IDMDB_USERNAME=UIDM03
The values specified in command line arguments will overwrite variables defined in a properties file.
All files ending with *.properties will be loaded.