NuoDB Command Reference
Global Arguments
Argument | Description | Default |
---|---|---|
|
the REST API server to send request to |
|
|
emit HTTP request and response logging; to emit this logging separately from standard output, the file descriptor 5 can be redirected, e.g. |
|
|
show the full JSON response; if several responses are generated by a command, they are output as concatenated JSON |
|
|
show the specified fields of the JSON response; multiple fields can be specified as a comma-separated list, and nested fields can be specified using the syntax |
|
|
client key-pair if server requires client authentication (see 'needClientAuth' REST setting); specified as a single file containing both certificate and private key, or as '<certificate>,<private key>' |
|
|
client basic credentials in the format '<username>:<password>'; this takes precedence over --client-key |
|
|
trusted certificate used to verify the server when using HTTPS; if no argument is specified then the default set of trusted CA certificates for the system is used |
|
|
if specified, then server verification is disabled; this takes precedence over --verify-server |
archive
Subcommands
create archive
create a database archive
nuocmd create archive [-h] --db-name DB_NAME
(--server-id SERVER_ID | --is-external)
--archive-path ARCHIVE_PATH
[--journal-path JOURNAL_PATH]
[--snapshot-archive-path SNAPSHOT_ARCHIVE_PATH]
[--restored] [--archive-id ARCHIVE_ID]
[--passive | --observes [OBSERVES [OBSERVES ...]]]
Argument | Description | Default |
---|---|---|
|
the name of the database for the archive |
|
|
the ID of the server for the archive |
|
|
whether this archive will be externally started |
|
|
the path of the archive directory |
(required) |
|
the path of the journal directory |
|
|
the path of the snapshot archive directory |
|
|
whether the archive being restored from existing data |
|
|
if specified, the archive ID of the removed archive |
|
|
whether the archive should passively observe all storage groups that it serves |
|
|
list of storage groups the archive should observe passively |
delete archive
delete a non-running database archive
nuocmd delete archive [-h] --archive-id ARCHIVE_ID [--purge]
Argument | Description | Default |
---|---|---|
|
the ID of the archive to delete |
(required) |
|
whether to remove the archive permanently |
set archive
Set the specified archive to either regular server or passive observer of storage groups
nuocmd set archive [-h] --archive-id ARCHIVE_ID
[--active | --serves SG_NAME [SG_NAME ...]]
[--passive | --observes SG_NAME [SG_NAME ...]]
Argument | Description | Default |
---|---|---|
|
The id of the archive |
(required) |
|
Promote the specified archive to an active server of all storage groups that it serves |
|
|
Promote the specified archive to an active server of the named storage groups |
|
|
Demote the specified archive to a passive observer of all storage groups that it serves |
|
|
Demote the specified archive to a passive observer of the named storage groups |
archives
Subcommands
get archives
show database archives
nuocmd get archives [-h] [--db-name DB_NAME] [--removed]
Argument | Description | Default |
---|---|---|
|
the name of the database to list archives for |
|
|
show removed archives |
show archives
show database archives
nuocmd show archives [-h] [--db-name DB_NAME] [--removed]
[--archive-format ARCHIVE_FORMAT]
[--removed-archive-format REMOVED_ARCHIVE_FORMAT]
[--process-format PROCESS_FORMAT]
[--exited-process-format EXITED_PROCESS_FORMAT]
Argument | Description | Default |
---|---|---|
|
the name of the database to list archives for |
|
|
show removed archives |
|
|
format string for archives |
|
|
format string for removed archives |
|
|
format string for processes |
|
|
format string for exited processes |
|
certificate
Subcommands
import certificate
import a certificate into a truststore
nuocmd import certificate [-h] --keystore KEYSTORE
[--store-type {JKS,PKCS12}] [--alias ALIAS]
[--store-password STORE_PASSWORD]
--truststore TRUSTSTORE
[--truststore-type {JKS,PKCS12}]
[--truststore-password TRUSTSTORE_PASSWORD]
[--for-recovery] [--nuokey-cmd NUOKEY_CMD]
Argument | Description | Default |
---|---|---|
|
the keystore containing the certificate |
(required) |
|
the type of the keystore; is derived from --keystore value if not specified (choices: |
|
|
the alias of the certificate; is derived from --keystore value if not specified |
|
|
the password for the keystore; can also be specified via standard input |
|
|
the keystore containing trusted certificates |
(required) |
|
the type of the truststore; is derived from --truststore value if not specified (choices: |
|
|
the password for the truststore; can also be specified via standard input |
|
|
store the certificate so that it is protected from truststore updates made using |
|
|
the path to the nuokeymgr executable |
|
show certificate
output key-pair or certificate from a keystore as a base64-encoded string according to RFC-7468
nuocmd show certificate [-h] --keystore KEYSTORE
[--store-type {JKS,PKCS12}] [--alias ALIAS]
[--store-password STORE_PASSWORD]
[--key-password KEY_PASSWORD | --prompt-key-password]
[--cert-only] [--nuokey-cmd NUOKEY_CMD]
Argument | Description | Default |
---|---|---|
|
the keystore to extract key-pair or certificate from |
(required) |
|
the type of the keystore; is derived from --keystore value if not specified (choices: |
|
|
the alias of the key-pair or certificate; is derived from --keystore value if not specified |
|
|
the password for the keystore; can also be specified via standard input |
|
|
the password for the private key; if --key-password and --prompt-key-password are not specified, defaults to --store-password value |
|
|
whether to prompt for private key password if --key-password is not specified |
|
|
whether to only export the certificate |
|
|
the path to the nuokeymgr executable |
|
sign certificate
sign a certificate in a keystore with a CA certificate
nuocmd sign certificate [-h] --keystore KEYSTORE
[--store-type {JKS,PKCS12}] [--alias ALIAS]
[--store-password STORE_PASSWORD] --ca-keystore
CA_KEYSTORE [--ca-store-type {JKS,PKCS12}]
[--ca-alias CA_ALIAS]
[--ca-store-password CA_STORE_PASSWORD]
[--update]
[--sub-altnames [SUB_ALTNAMES [SUB_ALTNAMES ...]]]
[--resolve-san] [--validity VALIDITY]
[--start-date START_DATE] [--ca]
[--nuokey-cmd NUOKEY_CMD]
Argument | Description | Default |
---|---|---|
|
the keystore containing the certificate to sign |
(required) |
|
the type of the keystore; is derived from --keystore value if not specified (choices: |
|
|
the alias of the certificate; is derived from --keystore value if not specified |
|
|
the password for the keystore; can also be specified via standard input |
|
|
the keystore containing the CA certificate |
(required) |
|
the type of the CA keystore; is derived from --ca-keystore value if not specified (choices: |
|
|
the alias of the CA certificate; is derived from --ca-keystore value if not specified |
|
|
the password for the CA keystore; can also be specified via standard input |
|
|
whether to update the keystore with the signed certificate; if not specified, the certificate chain is written to standard output |
|
|
list of subjectAltNames for the certificate; must be prefixed by type, e.g. dns:hostname |
|
|
whether to resolve subjectAltName using DNS, e.g. dns:hostname |
|
|
the validity in days of the certificate |
|
|
start date of the certificate |
|
|
whether the generated certificate should be used as CA |
|
|
the path to the nuokeymgr executable |
|
core-file
Subcommands
get core-file
download the core file for a running database process
nuocmd get core-file [-h] --start-id START_ID [--output OUTPUT]
[--output-dir OUTPUT_DIR]
[--socket-read-timeout SOCKET_READ_TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the start ID of the process to get core file for |
(required) |
|
the output file or format for output file |
|
|
the directory to store core file in; the actual file path will be resolved relative to this directory |
|
|
The maximum time (in seconds) to block waiting for data from an engine |
data-encryption
Subcommands
check data-encryption
check that the specified storage password is current and ensure that it is propagated to all admin servers and database processes
nuocmd check data-encryption [-h] --db-name DB_NAME --password PASSWORD
[--existing-passwords [EXISTING_PASSWORDS [EXISTING_PASSWORDS ...]]]
[--config-update-timeout CONFIG_UPDATE_TIMEOUT]
[--timeout TIMEOUT | --wait-forever]
Argument | Description | Default |
---|---|---|
|
the name of the database to check |
|
|
the storage password to verify and propagate to all admin servers and database processes |
(required) |
|
any other storage passwords needed to decrypt archives in the specified database |
|
|
How long (in seconds) to wait for configuration to be updated for each process |
|
|
How long (in seconds) to wait for data encryption check to pass |
|
|
Wait forever for data encryption check to pass |
update data-encryption
update storage password used for transparent data encryption of archives
nuocmd update data-encryption [-h] --db-name DB_NAME --new-password
NEW_PASSWORD
(--current-password CURRENT_PASSWORD | --is-initial-password)
[--existing-passwords [EXISTING_PASSWORDS [EXISTING_PASSWORDS ...]]]
[--config-update-timeout CONFIG_UPDATE_TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the name of the database whose storage password to update |
|
|
the new storage password to use with the specified database |
(required) |
|
the current storage password, used for verification |
|
|
whether the --new-password value is the initial storage password for the database |
|
|
any other storage passwords needed to decrypt archives in the specified database |
|
|
How long (in seconds) to wait for configuration to be updated for each process |
database
Subcommands
capture database
capture the state of a running database
nuocmd capture database [-h] --db-name DB_NAME --capture-file
CAPTURE_FILE
Argument | Description | Default |
---|---|---|
|
the name of the database to capture |
|
|
the path to the file to write startplan to |
(required) |
check database
Check the status of a database
nuocmd check database [-h] --db-name DB_NAME
[--timeout TIMEOUT | --wait-forever]
[--check-running | --check-syncing]
[--num-processes NUM_PROCESSES]
[--check-liveness CHECK_LIVENESS]
[--wait-for-acks] [--fail-on-process-exit]
Argument | Description | Default |
---|---|---|
|
The name of the database to check |
|
|
How long (in seconds) to wait for database check to pass |
|
|
Wait forever for database check to pass |
|
|
Check that the database is in the RUNNING state |
|
|
Check that all processes in the database are in the SYNCING or RUNNING state |
|
|
Check that the database contains the specified number of processes |
|
|
Check that all processes have responded within the specified number of seconds |
|
|
If specified along with --timeout, wait for messages to be received from all processes while the command is running |
|
|
If specified along with --timeout, fail-fast if a process exits while the command is running |
connect database
establish a SQL connection with a database
nuocmd connect database [-h] --db-name DB_NAME
(--server-id SERVER_ID | --this-server)
[--user USER] [--password PASSWORD]
[--nuosql-cmd NUOSQL_CMD]
[--connection-properties [CONNECTION_PROPERTIES [CONNECTION_PROPERTIES ...]]]
Argument | Description | Default |
---|---|---|
|
the name of the database to connect to |
|
|
the ID of the server to use to obtain SQL connection |
|
|
whether to obtain SQL connection through API server |
|
|
the database user; alternatively, can be specified using the NUOSQL_USER environment variable |
|
|
the database password; alternatively, can be specified using the NUOSQL_PASSWORD environment variable, or via standard input |
|
|
the command to invoke the NuoSQL executable |
|
|
connection properties for connection request |
|
create database
create a database
nuocmd create database [-h] --db-name DB_NAME --dba-user DBA_USER
--dba-password DBA_PASSWORD
[--te-server-ids TE_SERVER_IDS [TE_SERVER_IDS ...]]
[--capture-file CAPTURE_FILE | --nuodb-cmd NUODB_CMD]
[--no-autostart] [--is-external]
[--archive-assignment ARCHIVE_ASSIGNMENT [ARCHIVE_ASSIGNMENT ...]]
[--region-assignment [REGION_ASSIGNMENT [REGION_ASSIGNMENT ...]]]
[--default-options [DEFAULT_OPTIONS [DEFAULT_OPTIONS ...]]]
[--sms-running-timeout SMS_RUNNING_TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the name of the database |
|
|
the database administrator user |
|
|
the database administrator password |
|
|
the IDs of the servers to start TEs on |
|
|
the path to the file to capture database to |
|
|
the command to invoke the NuoDB executable, if starting externally (deprecated) |
|
|
do not automatically start database |
|
|
whether database processes will be started externally (deprecated) |
|
|
mapping of archive ID to server ID, for external start (deprecated) |
|
|
mapping of server ID to region name (deprecated) |
|
|
default options for database processes; see https://doc.nuodb.com/nuodb/latest/reference-information/database-options |
|
|
timeout for SMs to become RUNNING before starting TEs |
delete database
delete a non-running database
nuocmd delete database [-h] --db-name DB_NAME [--purge]
Argument | Description | Default |
---|---|---|
|
the name of the database to delete |
|
|
Removes historical database state data from the Admin Domain. |
diagnose database
diagnose database (internal use only)
nuocmd diagnose database [-h] --db-name DB_NAME
[--output-dir OUTPUT_DIR] [--timeout TIMEOUT]
action target [arguments [arguments ...]]
Argument | Description | Default |
---|---|---|
|
name of the database to diagnose |
|
|
directory for output files |
|
|
timeout in seconds |
|
|
diagnose action to perform |
|
|
target of diagnose action |
|
|
diagnose operation arguments |
enforce database
start a database
nuocmd enforce database [-h] --capture-file CAPTURE_FILE
[--incremental | --unconditional]
[--nuodb-cmd NUODB_CMD]
[--sms-running-timeout SMS_RUNNING_TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the path to the capture file to enforce |
(required) |
|
start the database incrementally based on running state |
|
|
start any non-running database processes regardless of the database state |
|
|
the command to invoke the NuoDB executable, if starting externally (deprecated) |
|
|
timeout for SMs to become RUNNING before starting TEs |
get database
get database state for a specific database
nuocmd get database [-h] --db-name DB_NAME
Argument | Description | Default |
---|---|---|
|
the name of the database |
|
handoff database
Handoff the database, making the passive datacenter active
nuocmd handoff database [-h] --db-name DB_NAME
(--archive-ids ID [ID ...] | --all-observer-archive-ids)
[--oldest-acceptable OLDEST_ACCEPTABLE]
[--timeout TIMEOUT]
Argument | Description | Default |
---|---|---|
|
The name of the database to hand off |
|
|
The archive ids in the passive datacenter being promoted |
|
|
Use all observers in handoff |
|
|
Optional. If provided, handoff will only proceed if the most recent consistent state available, to which the databse state would be reset, is after the provided date/time. Timestamp must be in the form 'YYYY-MM-DDThh:mm:ss' |
|
|
The number of seconds to wait for each step of handoff |
|
hotcopy database
issue a hot-copy request on a database
nuocmd hotcopy database [-h] --db-name DB_NAME --type
{simple,full,incremental,journal} [--shared]
[--default-backup-dir DEFAULT_BACKUP_DIR]
[--process-filter PROCESS_FILTER | --backup-dirs [BACKUP_DIRS [BACKUP_DIRS ...]]]
[--max-rate MAX_RATE]
[--partial-storage-groups] [--timeout TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the name of the database to hot-copy |
|
|
the type of hot-copy to perform; |
(required) |
|
whether the backup location specified by --default-backup-dir is on shared storage |
|
|
backup location to use for any archive that does not have a backup location associated with it by --backup-dirs; if --process-filter is used, the --default-backup-dir should be supplied and provides the backup location prefix for filtered archives |
|
|
if specified, filter database processes to only hot-copy those that match |
|
|
map of archive ID to backup location to use for that archive |
|
|
maximum I/O rate in MB/sec |
|
|
hot copy an archive set that does not include all the storage groups defined in the database; restoring from such a backup could cause data loss or inconsistent data; by default all database storage groups must be included |
|
|
if specified, the time to wait in seconds for the hot-copy to complete; if not specified, the request is issued asynchronously |
show database
show database state
nuocmd show database [-h] --db-name DB_NAME
[--num-incarnations NUM_INCARNATIONS | --all-incarnations | --skip-exited]
[--db-format DB_FORMAT]
[--process-format PROCESS_FORMAT]
[--exited-process-format EXITED_PROCESS_FORMAT]
Argument | Description | Default |
---|---|---|
|
the database name |
|
|
the number of incarnations to show starting from current |
|
|
show all incarnations |
|
|
skip exited processes |
|
|
format string for databases |
|
|
format string for processes |
|
|
format string for exited processes |
|
shutdown database
shutdown all database processes for a database
nuocmd shutdown database [-h] --db-name DB_NAME
Argument | Description | Default |
---|---|---|
|
the name of the database to shutdown |
|
start database
start a database
nuocmd start database [-h] --db-name DB_NAME
[--te-server-ids TE_SERVER_IDS [TE_SERVER_IDS ...]]
[--archive-assignment ARCHIVE_ASSIGNMENT [ARCHIVE_ASSIGNMENT ...]]
[--incremental | --unconditional]
[--nuodb-cmd NUODB_CMD]
[--sms-running-timeout SMS_RUNNING_TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the name of the database to start |
|
|
the IDs of the servers to start additional TEs on |
|
|
mapping of archive ID to server ID, for external start (deprecated) |
|
|
start the database incrementally based on running state |
|
|
start any non-running database processes regardless of the database state |
|
|
the command to invoke the NuoDB executable, if starting externally (deprecated) |
|
|
timeout for SMs to become RUNNING before starting TEs |
database-connectivity
Subcommands
get database-connectivity
get the connectivity graph for a database
nuocmd get database-connectivity [-h] --db-name DB_NAME
[--with-node-ids] [--suppress-errors]
Argument | Description | Default |
---|---|---|
|
the database to get connectivity information for |
(required) |
|
whether to return connectivity graph with node IDs as keys instead of start IDs |
|
|
whether to suppress errors messages when collecting connectivity information |
show database-connectivity
show the connectivity graph for a database
nuocmd show database-connectivity [-h] --db-name DB_NAME
[--with-node-ids]
[--last-ack-threshold LAST_ACK_THRESHOLD]
Argument | Description | Default |
---|---|---|
|
the database to show connectivity graph for |
(required) |
|
whether to show connectivity graph with node IDs as keys instead of start IDs |
|
|
the threshold in seconds to display time since last ack |
|
database-options
Subcommands
update database-options
update database options
nuocmd update database-options [-h] --db-name DB_NAME
[--default-options [DEFAULT_OPTIONS [DEFAULT_OPTIONS ...]]]
[--replace-all]
Argument | Description | Default |
---|---|---|
|
the name of the database |
|
|
default options for database processes; see https://doc.nuodb.com/nuodb/latest/reference-information/database-options |
|
|
whether to completely replace the existing options with the supplied options, rather than merging the two |
database-version
Subcommands
upgrade database-version
upgrade the database version
nuocmd upgrade database-version [-h] --db-name DB_NAME
(--version VERSION | --max-version)
Argument | Description | Default |
---|---|---|
|
the database upgrade |
(required) |
|
the version to upgrade to |
|
|
upgrade to maximum available version |
database-versions
Subcommands
show database-versions
show the database version for all processes in the database
nuocmd show database-versions [-h] --db-name DB_NAME
[--process-format PROCESS_FORMAT]
Argument | Description | Default |
---|---|---|
|
the database to show database versions for |
(required) |
|
format string for processes |
|
diagnose-info
Subcommands
get diagnose-info
download server logs for all reachable admin processes and cores for all reachable engine processes
nuocmd get diagnose-info [-h] [--output-dir OUTPUT_DIR]
[--no-pack | --print-to-stdout]
[--include-cores] [--live-cores]
[--collect-cores]
[--modified-after MODIFIED_AFTER]
[--socket-read-timeout SOCKET_READ_TIMEOUT]
[--include-sensitive-files]
Argument | Description | Default |
---|---|---|
|
the directory to store diagnose info in |
|
|
if specified, do not pack all diagnose info into a single ZIP file |
|
|
Print packed zip to stdout |
|
|
whether to include cores from engine processes; this is shorthand for "--collect-cores --live-cores" |
|
|
whether to stream live cores from running engine processes |
|
|
whether to collect cores created by engine processes |
|
|
collect files modified after specified date. The value is converted to epoch timestamp using the client time zone. Timestamp must be in the form 'YYYY-MM-DDThh:mm:ss' |
|
|
The maximum time (in seconds) that we will block waiting for data from an engine |
|
|
whether to include potentially sensitive files, such as audit logs |
documentation
Subcommands
generate documentation
generate documentation for all nuocmd subcommands in AsciiDoc format
nuocmd generate documentation [-h] [--group-by-noun]
[--command-handler COMMAND_HANDLER]
[--title TITLE]
Argument | Description | Default |
---|---|---|
|
if specified, group generated documentation by noun rather than verb |
|
|
name of command handler class to generate documentation for |
|
|
title to use for page |
domain
Subcommands
show domain
show summary of domain state
nuocmd show domain [-h] [--server-format SERVER_FORMAT]
[--db-format DB_FORMAT]
[--process-format PROCESS_FORMAT]
[--client-token CLIENT_TOKEN]
[--include-tombstone-databases]
Argument | Description | Default |
---|---|---|
|
format string for servers |
|
|
format string for databases |
|
|
format string for processes |
|
|
message to display in admin log |
|
|
include tombstones for deleted databases |
hotcopy
Subcommands
cancel hotcopy
cancel a running hot-copy
nuocmd cancel hotcopy [-h] --coordinator-start-id COORDINATOR_START_ID
--hotcopy-id HOTCOPY_ID [--timeout TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the start ID of the SM coordinating the hot-copy to cancel |
(required) |
|
the ID of the hot-copy request to cancel |
(required) |
|
if specified, the time to wait in seconds for the cancellation to be processed; it not specified, cancellation is issued asynchronously |
hotcopy-info
Subcommands
get hotcopy-info
get all hot-copy info for a database or an SM
nuocmd get hotcopy-info [-h]
(--db-name DB_NAME | --coordinator-start-id COORDINATOR_START_ID)
[--timeout TIMEOUT] [--running-for RUNNING_FOR]
Argument | Description | Default |
---|---|---|
|
the name of the database to get hot-copy statuses for |
|
|
the start ID of the SM to get hot-copy statuses for |
|
|
the timeout for the management request sent to the SMs to obtain hot-copy statuses |
|
|
if specified, filter hot-copy statuses to only include ones that have been running for the specified amount of time or longer; this value can be specified using |
show hotcopy-info
show all hot-copy info for a database
nuocmd show hotcopy-info [-h] --db-name DB_NAME [--timeout TIMEOUT]
[--running-for RUNNING_FOR]
[--process-format PROCESS_FORMAT]
[--hotcopy-format HOTCOPY_FORMAT]
Argument | Description | Default |
---|---|---|
|
the name of the database to show hot-copy statuses for |
(required) |
|
the timeout for the management request sent to the SMs to obtain hot-copy statuses |
|
|
if specified, filter hot-copy statuses to only include ones that have been running for the specified amount of time or longer; this value can be specified using |
|
|
format string for processes |
|
|
format string for hot-copy statuses |
|
hotcopy-status
Subcommands
get hotcopy-status
get the status of a hot-copy request
nuocmd get hotcopy-status [-h] --coordinator-start-id
COORDINATOR_START_ID --hotcopy-id HOTCOPY_ID
[--timeout TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the start ID of the SM coordinating the hot-copy |
(required) |
|
the ID of the hot-copy request |
(required) |
|
if specified, the time to wait in seconds for the hot-copy to complete; if not specified, the status is polled without waiting |
keypair
Subcommands
create keypair
create a key-pair
nuocmd create keypair [-h] --keystore KEYSTORE
[--store-type {JKS,PKCS12}] [--alias ALIAS]
[--store-password STORE_PASSWORD]
[--key-password KEY_PASSWORD | --prompt-key-password]
[--dname DNAME]
[--sub-altnames [SUB_ALTNAMES [SUB_ALTNAMES ...]]]
[--resolve-san] [--algorithm {RSA,DSA,EC}]
[--validity VALIDITY] [--start-date START_DATE]
[--ca]
Argument | Description | Default |
---|---|---|
|
the keystore to store the generated key-pair into, which will be created if it does not exist |
(required) |
|
the type of the keystore; is derived from --keystore value if not specified (choices: |
|
|
the alias to store the key-pair as; is derived from --keystore value if not specified |
|
|
the password for the keystore; can also be specified via standard input |
|
|
the password for the private key; if --key-password and --prompt-key-password are not specified, defaults to --store-password value |
|
|
whether to prompt for private key password if --key-password is not specified |
|
|
the distinguished name of the certificate |
|
|
list of subjectAltNames for the certificate; must be prefixed by type, e.g. dns:hostname |
|
|
whether to resolve subjectAltName using DNS, e.g. dns:hostname |
|
|
the key algorithm (choices: |
|
|
the validity in days of the certificate |
|
|
start date of the certificate |
|
|
whether the generated certificate should be used as CA |
license
Subcommands
check license
check supplied license
nuocmd check license [-h] --license-file LICENSE_FILE
Argument | Description | Default |
---|---|---|
|
the license file to check |
(required) |
set license
set the license for the domain
nuocmd set license [-h] --license-file LICENSE_FILE [--allow-downgrade]
Argument | Description | Default |
---|---|---|
|
the license file to install |
(required) |
|
whether to install the license regardless of whether it is a downgrade from the current license |
load-balancer
Subcommands
load-balancer-config
Subcommands
get load-balancer-config
get load-balancer configuration for all databases
nuocmd get load-balancer-config [-h]
set load-balancer-config
set a load-balancer configuration
nuocmd set load-balancer-config [-h] (--db-name DB_NAME | --is-global)
[--default DEFAULT | --unregister-default]
[--prefilter PREFILTER | --unregister-prefilter]
Argument | Description | Default |
---|---|---|
|
the name to register default for |
|
|
whether to register the global default |
|
|
the default load-balancer to register |
|
|
whether to unregister the current default |
|
|
the prefilter to register |
|
|
whether to unregister the current prefilter |
log-messages
Subcommands
get log-messages
get log messages from running database processes
nuocmd get log-messages [-h] --log-options LOG_OPTIONS
[LOG_OPTIONS ...]
[--db-name DB_NAME | --start-id START_ID]
[--engine-file ENGINE_FILE]
Argument | Description | Default |
---|---|---|
|
the log levels and categories to enable |
|
|
the database to log messages for |
|
|
the running process to log messages for |
|
|
write logging to this file on engine hosts |
show log-messages
show log messages from running database processes
nuocmd show log-messages [-h] --log-options LOG_OPTIONS
[LOG_OPTIONS ...]
[--db-name DB_NAME | --start-id START_ID]
[--log-format LOG_FORMAT]
[--engine-file ENGINE_FILE]
Argument | Description | Default |
---|---|---|
|
the log levels and categories to enable |
|
|
the database to log messages for |
|
|
the running process to log messages for |
|
|
format string for process log messages |
|
|
write logging to this file on engine hosts |
process
Subcommands
check process
Check the status of a process
nuocmd check process [-h] --start-id START_ID
[--check-running | --check-exited]
[--check-liveness CHECK_LIVENESS] [--wait-for-ack]
[--timeout TIMEOUT | --wait-forever]
Argument | Description | Default |
---|---|---|
|
the Start ID of the process to check |
(required) |
|
Check that the process is in the RUNNING state |
|
|
Check that the process has exited |
|
|
Check that the process has responded within the specified number of seconds |
|
|
If specified along with --timeout, wait for a message to be received from the process while the command is running |
|
|
How long (in seconds) to wait for process check to pass |
|
|
Wait forever for process check to pass |
diagnose process
diagnose process (internal use only)
nuocmd diagnose process [-h] --start-id START_ID
[--output-dir OUTPUT_DIR] [--timeout TIMEOUT]
action target [arguments [arguments ...]]
Argument | Description | Default |
---|---|---|
|
name of the database to diagnose |
(required) |
|
directory for output files |
|
|
timeout in seconds |
|
|
diagnose action to perform |
|
|
target of diagnose action |
|
|
diagnose operation arguments |
shutdown process
shutdown a database process
nuocmd shutdown process [-h] --start-id START_ID
[--evict | --kill | --kill-with-core]
[--timeout TIMEOUT]
Argument | Description | Default |
---|---|---|
|
the start ID of the process to shutdown |
(required) |
|
evict process from database and remove it from the domain state, even if it is unresponsive or no longer running; this command may not actually cause an unresponsive process to shutdown, in which case it would have to be killed manually by the user |
|
|
forcibly kill process |
|
|
forcibly kill process and dump core |
|
|
the timeout in seconds to wait for the process to disconnect from the admin server; if not specified, the shutdown request is issued without waiting |
start process
start a database process
nuocmd start process [-h] --db-name DB_NAME
(--server-id SERVER_ID | --this-server)
[--engine-type {TE,SM,SSM}]
[--archive-id ARCHIVE_ID]
[--expected-incarnation EXPECTED_INCARNATION]
[--nuodb-cmd NUODB_CMD]
[--options [OPTIONS [OPTIONS ...]]]
[--labels [LABELS [LABELS ...]]]
Argument | Description | Default |
---|---|---|
|
the name of the database for the process |
|
|
the ID of the server the process belongs to |
|
|
whether to start process through API server |
|
|
the engine type (choices: |
|
|
the ID of the archive if engine-type is SM or SSM |
|
|
the expected incarnation for the database in the form '<major>[.<minor>]' |
|
|
the command to invoke the NuoDB executable, if starting externally (deprecated) |
|
|
options for database process; see https://doc.nuodb.com/nuodb/latest/reference-information/database-options |
|
|
labels for engine process |
raftlog
Subcommands
show raftlog
display contents of Raft log
nuocmd show raftlog [-h] [--nuoadmin-jar NUOADMIN_JAR]
[--raftlog-dir RAFTLOG_DIR] [--one-line]
Argument | Description | Default |
---|---|---|
|
path to nuoadmin.jar |
|
|
path to raftlog file |
|
|
whether to display the contents of each entry in one line |
region
Subcommands
region-assignment
Subcommands
add region-assignment
add servers to a region (deprecated)
nuocmd add region-assignment [-h] --db-name DB_NAME
(--region-name REGION_NAME | --region-id REGION_ID)
--server-ids SERVER_IDS [SERVER_IDS ...]
Argument | Description | Default |
---|---|---|
|
the name of the database to add the region mapping for |
|
|
the name of the region to add servers to |
|
|
the ID of the region to add servers to |
|
|
the IDs of the servers to add to region |
(required) |
remove region-assignment
remove servers from their current region (deprecated)
nuocmd remove region-assignment [-h] --db-name DB_NAME --server-ids
SERVER_IDS [SERVER_IDS ...]
Argument | Description | Default |
---|---|---|
|
the name of the database to remove the region mapping for |
|
|
the IDs of the servers to remove from region |
(required) |
regions
Subcommands
show regions
show regions (deprecated)
nuocmd show regions [-h] --db-name DB_NAME
[--region-format REGION_FORMAT]
[--process-format PROCESS_FORMAT]
Argument | Description | Default |
---|---|---|
|
the database to show regions for |
|
|
format string for regions |
|
|
format string for processes |
|
report-timestamp
Subcommands
handoff report-timestamp
Query the storage managers to report latest state that will remain after handoff from active to passive datacenter
nuocmd handoff report-timestamp [-h] --db-name DB_NAME --archive-ids ID
[ID ...] [--timeout TIMEOUT]
Argument | Description | Default |
---|---|---|
|
The name of the database to hand off |
|
|
All archives in the passive datacenter |
(required) |
|
The number of seconds to wait for all specified archives to be online |
|
reset-state
Subcommands
handoff reset-state
Reset the state of the database for handoff from active to passive datacenter
nuocmd handoff reset-state [-h] --db-name DB_NAME --commits COMMIT
[COMMIT ...] --epoch EPOCH --leaders SG_ID
AR_ID [SG_ID AR_ID ...]
Argument | Description | Default |
---|---|---|
|
The name of the database to hand off |
|
|
The list of commit sequence numbers of the restored state as reported by handoff report-timestamp (in the form x x x … with no commas) |
(required) |
|
The epoch of the restored state as reported by handoff report-timestamp |
(required) |
|
The mapping of storage groups to leader archives (in the form <storage group id> <archive id> <storage group id> <archive id> …) as reported by handoff report-timestamp |
(required) |
role
Subcommands
create role
create a new role
nuocmd create role [-h] --name NAME
[--sub-roles [SUB_ROLES [SUB_ROLES ...]]]
[--any-method | --method {PUT,GET,POST,DELETE}]
[--url URL]
[--query-param-constraints [QUERY_PARAM_CONSTRAINTS [QUERY_PARAM_CONSTRAINTS ...]]]
[--path-param-constraints [PATH_PARAM_CONSTRAINTS [PATH_PARAM_CONSTRAINTS ...]]]
[--payload-param-constraints [PAYLOAD_PARAM_CONSTRAINTS [PAYLOAD_PARAM_CONSTRAINTS ...]]]
Argument | Description | Default |
---|---|---|
|
the name of the role to create |
(required) |
|
the sub-roles for the role |
|
|
authorize all request methods for role |
|
|
the request method to authorize for the role (choices: |
|
|
the URL to authorize for the role, excluding the hostname and port (e.g. /api/1/databases) |
|
|
constraints to enforce on query parameters |
|
|
constraints to enforce on path parameters |
|
|
constraints to enforce on payload parameters |
role-privileges
Subcommands
add role-privileges
add privileges to an existing role
nuocmd add role-privileges [-h] --name NAME
[--sub-roles [SUB_ROLES [SUB_ROLES ...]]]
[--any-method | --method {PUT,GET,POST,DELETE}]
[--url URL]
[--query-param-constraints [QUERY_PARAM_CONSTRAINTS [QUERY_PARAM_CONSTRAINTS ...]]]
[--path-param-constraints [PATH_PARAM_CONSTRAINTS [PATH_PARAM_CONSTRAINTS ...]]]
[--payload-param-constraints [PAYLOAD_PARAM_CONSTRAINTS [PAYLOAD_PARAM_CONSTRAINTS ...]]]
Argument | Description | Default |
---|---|---|
|
the name of the role to update |
(required) |
|
the sub-roles to add |
|
|
authorize all request methods for role |
|
|
the request method to authorize for the role (choices: |
|
|
the URL to authorize for the role, excluding the hostname and port (e.g. /api/1/databases) |
|
|
constraints to enforce on query parameters |
|
|
constraints to enforce on path parameters |
|
|
constraints to enforce on payload parameters |
remove role-privileges
remove privileges from an existing role
nuocmd remove role-privileges [-h] --name NAME
[--sub-roles [SUB_ROLES [SUB_ROLES ...]]]
[--any-method | --method {PUT,GET,POST,DELETE}]
[--url URL]
[--query-param-constraints [QUERY_PARAM_CONSTRAINTS [QUERY_PARAM_CONSTRAINTS ...]]]
[--path-param-constraints [PATH_PARAM_CONSTRAINTS [PATH_PARAM_CONSTRAINTS ...]]]
[--payload-param-constraints [PAYLOAD_PARAM_CONSTRAINTS [PAYLOAD_PARAM_CONSTRAINTS ...]]]
Argument | Description | Default |
---|---|---|
|
the name of the role to update |
(required) |
|
the sub-roles to remove |
|
|
authorize all request methods for role |
|
|
the request method to authorize for the role (choices: |
|
|
the URL to authorize for the role, excluding the hostname and port (e.g. /api/1/databases) |
|
|
constraints to enforce on query parameters |
|
|
constraints to enforce on path parameters |
|
|
constraints to enforce on payload parameters |
role-templates
Subcommands
add role-templates
add set of privileges to an existing role
nuocmd add role-templates [-h] --name NAME [--accessor]
[--domain-admin] [--db-admin DB_NAME]
[--hotcopy-admin DB_NAME]
Argument | Description | Default |
---|---|---|
|
the name of the role to update |
(required) |
|
Add privileges to invoke |
|
|
Add privileges to manage admin layer |
|
|
Add privileges to manage a database |
|
|
Add privileges to invoke hotcopy on a database and view hotcopy status |
remove role-templates
remove set of privileges from an existing role
nuocmd remove role-templates [-h] --name NAME [--accessor]
[--domain-admin] [--db-admin DB_NAME]
[--hotcopy-admin DB_NAME]
Argument | Description | Default |
---|---|---|
|
the name of the role to update |
(required) |
|
Remove privileges to invoke |
|
|
Remove privileges to manage admin layer |
|
|
Remove privileges to manage a database |
|
|
Remove privileges to invoke hotcopy on a database and view hotcopy status |
server
Subcommands
check server
Check the status of the API server
nuocmd check server [-h] [--timeout TIMEOUT | --wait-forever]
[--check-active] [--check-connected]
[--check-converged]
Argument | Description | Default |
---|---|---|
|
How long (in seconds) to wait for server check to pass |
|
|
Wait forever for server check to pass |
|
|
Check that server is ACTIVE |
|
|
Check that server is CONNECTED, to verify that it is reachable by its advertised address |
|
|
Check that server has the same commit index as the leader |
delete server
remove a server from the raft membership remove all process and archive state for a server
nuocmd delete server [-h] --server-id SERVER_ID
Argument | Description | Default |
---|---|---|
|
the ID of the server to remove from the membership |
(required) |
shutdown server
shutdown a server
nuocmd shutdown server [-h] (--server-id SERVER_ID | --this-server)
[--evict-local]
Argument | Description | Default |
---|---|---|
|
the ID of the server to shut down |
|
|
shutdown the server hosting this API server |
|
|
evict processes local to the server being shutdown; this command may not actually cause an unresponsive process to shutdown, in which case it would have to be killed manually by the user |
server-config
Subcommands
get server-config
get the NuoAdmin service server configuration
nuocmd get server-config [-h] (--server-id SERVER_ID | --this-server)
[--property-key PROPERTY_KEY]
Argument | Description | Default |
---|---|---|
|
the ID of the NuoAdmin server |
|
|
get the configuration of the API server |
|
|
get only a specific property |
server-logs
Subcommands
get server-logs
download the server logs for the API server
nuocmd get server-logs [-h] [--output OUTPUT] [--include-core-files]
[--dump-threads] [--unpack]
[--modified-after MODIFIED_AFTER]
[--include-sensitive-files]
Argument | Description | Default |
---|---|---|
|
the output file or directory to save the ZIP file containing server logs to |
|
|
whether to include core files of exited engine processes in the logs ZIP file |
|
|
whether to include a thread dump of the admin process in the logs ZIP file |
|
|
whether to unpack the downloaded ZIP file |
|
|
collect files modified after specified date. The value is converted to epoch timestamp using the client time zone. Timestamp must be in the form 'YYYY-MM-DDThh:mm:ss' |
|
|
whether to include potentially sensitive files, such as audit logs |
server-processes
Subcommands
shutdown server-processes
shutdown database processes connected to an admin server
nuocmd shutdown server-processes [-h] --server-id SERVER_ID
[--db-name DB_NAME]
[--evict | --kill | --kill-with-core]
[--timeout TIMEOUT]
Argument | Description | Default |
---|---|---|
|
shut down all processes connected to the admin server with this server id |
(required) |
|
only shut down processes if they belong to this database |
|
|
evict processes from database and remove them from the domain state, even if they are unresponsive or no longer running; this command may not actually cause an unresponsive process to shutdown, in which case it would have to be killed manually by the user |
|
|
forcibly kill processes |
|
|
forcibly kill processes and dump core |
|
|
the timeout in seconds to wait for a process to disconnect from its admin server; if not specified, the shutdown request is issued without waiting |
servers
Subcommands
check servers
Check the status of admin servers
nuocmd check servers [-h] [--timeout TIMEOUT | --wait-forever]
[--check-active] [--check-connected]
[--check-leader] [--num-servers NUM_SERVERS]
[--check-liveness CHECK_LIVENESS]
[--wait-for-acks] [--check-converged]
Argument | Description | Default |
---|---|---|
|
How long (in seconds) to wait for server check to pass |
|
|
Wait forever for server check to pass |
|
|
Check that all servers are ACTIVE |
|
|
Check that all servers are CONNECTED to the server performing check |
|
|
Check that all servers agree on a leader |
|
|
Check that membership size equals specified number |
|
|
Check that all servers have responded within the specified number of seconds |
|
|
If specified along with --timeout, wait for messages to be received from all servers while the command is running |
|
|
Check that all servers have the same commit index. This implies --check-leader. |
sql-connection
Subcommands
check sql-connection
check if the database is up and accepting client connections
nuocmd check sql-connection [-h] --db-name DB_NAME
[--connection-properties [CONNECTION_PROPERTIES [CONNECTION_PROPERTIES ...]]]
[--any-te]
[--timeout TIMEOUT | --wait-forever]
[--user USER] [--password PASSWORD]
[--nuosql-cmd NUOSQL_CMD]
Argument | Description | Default |
---|---|---|
|
the database name in the SQL connection request |
|
|
connection properties for connection request |
|
|
ignore default load balancing policies and return an arbitrary TE |
|
|
how long (in seconds) to wait for the check to pass |
|
|
wait forever for the process check to pass |
|
|
a database user to test. If omitted, check whether there is a suitable TE to service the SQL connection request without making a connection. |
|
|
the database user password |
|
|
None |
|
get sql-connection
get TE to service a SQL connection
nuocmd get sql-connection [-h] --db-name DB_NAME
[--connection-properties [CONNECTION_PROPERTIES [CONNECTION_PROPERTIES ...]]]
Argument | Description | Default |
---|---|---|
|
the name of the database to get a SQL connection for |
|
|
connection properties for connection request |
|
startplan
Subcommands
get startplan
get the startplan for a database
nuocmd get startplan [-h] --db-name DB_NAME --output-file OUTPUT_FILE
[--te-server-ids TE_SERVER_IDS [TE_SERVER_IDS ...]]
[--archive-assignment ARCHIVE_ASSIGNMENT [ARCHIVE_ASSIGNMENT ...]]
[--one-time]
Argument | Description | Default |
---|---|---|
|
the name of the database |
|
|
the path to the file to capture database to |
(required) |
|
the IDs of the servers to start additional TEs on |
|
|
mapping of archive ID to server ID, for external start |
|
|
get a startplan for one-time use |
storage-group
Subcommands
add storage-group
add a storage group to a set of archives
nuocmd add storage-group [-h] --db-name DB_NAME --sg-name SG_NAME
--archive-ids ARCHIVE_IDS [ARCHIVE_IDS ...]
Argument | Description | Default |
---|---|---|
|
the name of the database |
|
|
the name of the storage group to add |
(required) |
|
the IDs of the archives to add storage group to |
(required) |
delete storage-group
remove a storage group from the database
nuocmd delete storage-group [-h] --db-name DB_NAME --sg-name SG_NAME
Argument | Description | Default |
---|---|---|
|
the name of the database |
|
|
the name of the storage group to delete |
(required) |
remove storage-group
remove a storage group from a set of archives
nuocmd remove storage-group [-h] --db-name DB_NAME --sg-name SG_NAME
--archive-ids ARCHIVE_IDS [ARCHIVE_IDS ...]
Argument | Description | Default |
---|---|---|
|
the name of the database |
|
|
the name of the storage group to remove |
(required) |
|
the IDs of the archives to remove storage group from |
(required) |
storage-groups
Subcommands
get storage-groups
get storage groups for a database
nuocmd get storage-groups [-h] --db-name DB_NAME
Argument | Description | Default |
---|---|---|
|
the name of the database to list storage groups for |
|
show storage-groups
show storage groups for a database
nuocmd show storage-groups [-h] --db-name DB_NAME
[--storage-group-format STORAGE_GROUP_FORMAT]
[--process-format PROCESS_FORMAT]
Argument | Description | Default |
---|---|---|
|
the name of the database to list storage groups for |
|
|
format string for storage groups |
|
|
format string for leader candidate processes |
|
trusted-certificate
Subcommands
add trusted-certificate
add a trusted certificate to all admin servers and engine processes
nuocmd add trusted-certificate [-h] --alias ALIAS --cert CERT
(--timeout TIMEOUT | --no-wait)
Argument | Description | Default |
---|---|---|
|
the alias of the certificate; this is a name used to refer to the certificate |
(required) |
|
the certificate to add to truststore as a PEM-encoded file |
(required) |
|
the number of seconds to wait for the certificate to be propagated to all admin servers and engine processes |
|
|
do not wait for certificate to be propagated |
user
Subcommands
create user
create a new user
nuocmd create user [-h] --name NAME [--roles ROLES [ROLES ...]]
(--password PASSWORD | --cert CERT)
[--nuokey-cmd NUOKEY_CMD]
Argument | Description | Default |
---|---|---|
|
the name of the user to create |
(required) |
|
the roles for the user |
|
|
the user password, if basic authentication is to be used |
|
|
the user PEM file, if certificate authentication is to be used; if the file does not exist, a new key-pair is generated |
|
|
the path to the nuokeymgr executable |
|
user-credentials
Subcommands
update user-credentials
update credentials for an existing user
nuocmd update user-credentials [-h] --name NAME
(--password PASSWORD | --cert CERT)
[--nuokey-cmd NUOKEY_CMD]
Argument | Description | Default |
---|---|---|
|
the name of the user to update |
(required) |
|
the user password, if basic authentication is to be used |
|
|
the user PEM file, if certificate authentication is to be used; if the file does not exist, a new key-pair is generated |
|
|
the path to the nuokeymgr executable |
|
user-roles
Subcommands
update user-roles
update roles for an existing user
nuocmd update user-roles [-h] --name NAME
[--roles-to-add [ROLES_TO_ADD [ROLES_TO_ADD ...]]]
[--roles-to-remove [ROLES_TO_REMOVE [ROLES_TO_REMOVE ...]]]
Argument | Description | Default |
---|---|---|
|
the name of the user to update |
(required) |
|
the roles to add to the user |
|
|
the roles to remove from the user |
value
Subcommands
get value
get the value for a key in the key-value store
nuocmd get value [-h] --key KEY
Argument | Description | Default |
---|---|---|
|
the key to get the value of |
(required) |
set value
associate a key with a value in the key-value store
nuocmd set value [-h] --key KEY --value VALUE
[--expected-value EXPECTED_VALUE | --unconditional]
Argument | Description | Default |
---|---|---|
|
the key to set a value for |
(required) |
|
the new value to associate with key |
(required) |
|
expected current value for key |
|
|
set value unconditionally |