command line

syntax

infx service inst= host= fork= [ options ]

 option description

 example
 service name of the service to execute, required status
 inst= select instance environment to execute against inst=infx01
 host= select host to execute service on host=servera
 fork= set to no for cli to wait until service completes     fork=no
 options options as required on a service by service basis mode=online

You can omit the inst= before the instance name, and also shorten the host= parameter to h=.

examples

Execute status service against your default instance, from $INFORMIXSERVER environment

infx status

Execute status service against infx02 instance, instead of $INFORMIXSERVER environment

infx status infx02

Execute status service against infx03 instance, on remote host servera, instead of local environment

infx status infx03@servera

List infx instances on remote host servera.

infx list h=servera

fork=no

Services that potentially take longer than a few seconds to execute are automatically forked to a separate process and run in the background. For example, all backup and restore services operate like this.

If the service takes more than a few seconds to complete, the service will return with a message that it is continuing in background. You can track this process using the infx follow command.

If you require a command to complete before returning, specify fork=no. The service will wait until the command completes, and then exit with the  services status.

Example: execute the backup, wait until it completes, exit with success/failure of the backup.

infx backup type=logs fork=no