Geneos ["Geneos"]
You are currently viewing an older version of the documentation. End of life for version 5.x.x is scheduled for 30 September 2025.
If you are currently using version 5.x.x, we advise you to upgrade to the latest version before the EOL date. You can find the latest documentation here.
["Geneos > Netprobe"]["Technical Reference"]

Netprobe Command-line Options

Overview

Command-line options can either be passed to the Netprobe installer on Windows, or directly to the Netprobe binary.

Installer command-line options

The installer command line options are available only to Windows platforms.

Option Use
/netport Sets the Netprobe listening port. Default: 7036
/servicename=<servicename> Sets the Netprobe service name. Default: NetprobeNT
/nopassword Allows commands to run on the Netprobe without any prompting for a password. For more information, see Set passwords on Netprobe commands.
/pass=<password> Sets a Netprobe password.
/listenip Sets a specific IP address where the Netprobe will listen to incoming connections.

This argument can be used to force Self-Announcing Netprobe not to listen for incoming connections. For more information, see Disable listening in Manage Self-Announcing Netprobes.
/listenoverride Used in conjunction with /listenip, overrides the previous value of /listenip if it exists.
/discovery=<full path to file>

Used in conjunction with /setup. If /setup is not defined, then this option is ignored.

If invoked, the Netprobe runs a discovery executable on the machine it is running on. This executable extracts JSON metadata from its environment, and updates the Netprobe setup file with the metadata through the use of macros.

If you specify a setup URL with the ? character, then the Netprobe appends the JSON metadata as query parameters and pulls the setup file from the URL specified.

When present, the discovery executable runs at Netprobe startup, before the Netprobe reads any setup file, and before it connects to any Gateway.

For more information, see Auto-discovery in Introduction to Netprobe.

Mandatory: No

/setup=<full path or URL to file>

Sets the setup file for a self-announcing or floating Netprobe. By default, the full path is <directory of installer>\\setup.netprobe.xml.

If you use the default setup file, then this will be copied into the installation directory (for example, C:\\Program Files (x86)\\NetprobeNT). This new path then becomes the value of the -setup argument of the Netprobe imagePath registry.

If you specify your own setup file, the file will be used in its respective directory. It will not be copied into the installation directory.

If you specify a remote file (<url> ), the Netprobe saves a copy of this in the installation directory as netprobe.setup.xml. This overwrites the existing netprobe.setup.xml file in the installation directory. In this case, any local changes to the netprobe.setup.xml configuration are ignored as the Netprobe retrieves the configuration from the remote file every /setup-interval=<minutes>.

If you specify an invalid file from the <url>, or the <url> becomes inaccessible, then the Netprobe uses the existing netprobe.setup.xml file.

Auto-discovery

When used with /discovery, the Netprobe setup file generates its contents from JSON metadata pulled from its environment by the discovery script.

If you specify a setup URL with the ? character, then the Netprobe appends the JSON metadata as query parameters and pulls the setup file from the URL specified.

For more information, see Auto-discovery in Introduction to Netprobe.

Note: /setup=<url> only supports HTTP links by default. If you need to set up an HTTPS connection, see the /setup-server-verify option.

When using /setup=<url> with multiple instances of the Netprobe, check that you install each probe in its own directory. Otherwise, the setup for each probe may interfere with one another.

Do not use proxy servers for /setup=<url>. Proxy servers are not supported.

/setup-interval=<minutes>

Used in conjunction with /setup.

Defines the time interval before the floating or Self-Announcing Netprobe requests another configuration file and restarts the announcement process. If no new or valid file is discovered, then the Netprobe neither reloads the configuration file nor restarts the configuration process.

If no -setup-interval is defined, the Netprobe makes the request every 360 minutes (or 6 hours), by default.

Feature behaviour

By default, this option only works for remote configurations defined through /setup=<url>. However, if used in conjunction with /discovery, then this option works for both /setup=<filename> and <url>.

Auto-discovery

When used with /discovery, then this option defines the time interval before the Netprobe reruns the discovery executable to update the JSON metadata. If no updates are discovered from the extracted JSON metadata, then the Netprobe does not reload the Netprobe setup file.

For more information, see Auto-discovery in Introduction to Netprobe.

/setup-server-verify <file>

Used in conjunction with /setup=<url>. This option only takes effect when an HTTPS <url> is specified. Otherwise, this option is ignored.

When this option is invoked, the Netprobe verifies the remote server against the specified Certificate Authority (CA) bundle.

/ssl-certificate=<full path to file>

Sets the SSL certificate file which is used to allow the probe to run in secure mode (when accepting incoming connections) Default: <directory of installer>\\cert.netprobe.pem

If the default SSL certificate file is not used, then the file specified will be used in situ. It will not be copied into the installation destination.

If the default SSL certificate file is used then it will be copied to the installation destination (for example, C:\\Program Files (x86)\\NetprobeNT) and this new path will be set as the value of -ssl-certificate argument of Netprobe's imagePath in registry.

/ssl-certificate-chain=<filename> Sets the SSL certificate chain file used by the Netprobe to check the certificate of the Gateway when a connection is made. Default: *<directory of installer>\\cert-chain.netprobe.pem*

If the default SSL certificate chain file is not used, then the file specified will be used in situ. It will not be copied into the installation destination. If the default SSL certificate chain file is used then it will be copied to the installation destination (for example, C:\\Program Files (x86)\\NetprobeNT) and this new path will be set as the value of *-ssl-certificate-chain* argument of Netprobe's imagePath in registry.
/dir=<install\_dir> Sets the Netprobe installation path.
/log=<filename> Sets the Netprobe log filename.
/silent Runs the install with no user interaction, but you can see the installation progress.
/verysilent Does the same as /silent but it does not show the installer files being extracted.
/require-ssl-certificate-for This forces the Netprobe to require certain components connecting to the Netprobe port to provide a valid SSL certificate. If no certificate is provided or the certificate cannot be vaildated using the certificate authority provided by the -ssl-certificate-chain option, the connection will be rejected. Currently, this does not require any additional parameter as only the connection type EMF2 is supported.

The /nopassword option will override /pass option but ENCODED_PASSWORD will still be set in the registry.

To set up a Self-Announcing or Floating Netprobe from the installer wizard, check the "Install as Self-Announcing or Floating Netprobe" checkbox from the "Configure Self-Announcing or Floating Netprobe" screen. Select a configuration file from that screen.

You can also specify the Self-Announcing or Floating Netprobe configuration file through installer command-line switch. To do this, start a new Administrator command-line window and run geneos-netprobe-<version>.windows-<platform>.setup.exe.windows-x64.setup.exe /setup=<setup xml filename>, where <setup xml filename> specifies the full path to the Self-Announcing or Floating Netprobe configuration file:

geneos-netprobe-*<version>*.windows-<platform>.setup.exeExample: geneos-netprobe-*<version>*.windows-<platform>.setup.exe. 

To setup a secure Netprobe from the installer wizard, check the "Run probe in Secure Mode" checkbox from the "Configure Netprobe Secure Connections" screen. Select a PEM file that contains both the secure key and the secure certificate that the probe will use. This can also be done on the command line by using the /ssl-certificate flag. The flag followed by the name of the PEM file to use.

The certificate chain that is used to verify the certificates presented to the Netprobe can also be set either by using the wizard and setting the file on the "Configure Netprobe Secure Chain" page, or by using the /ssl-certificate-chain command flag. In both cases a file containing the certificates with which the presented certificates have been signed must be provided.

If you're doing a silent mode install using either /silent or /verysilent option then the /setup= switch should be used if a the probe is to run as a Self-Announcing or Floating Netprobe. The /ssl-certificate= flag should be used if the Netprobe is to run in a secure mode and only accept secure (TLS) connections from the gateway. The /ssl-certificate-chain= switch should be used if the Netprobe is to validate the gateway certificates prior to allowing the gateway to connect to the probe. If any of the files specified do not exist then the installer will fail silently and an 'Install Failed' line will be logged in the setup log. You can specify the log file with the /log=<log file> switch in the installer.

On completion, the Netprobe will have been installed and started running as a service. The relevant registry settings will also have been set up.

Note: If the Windows Win Apps Plug-in is to be run on a Windows 2008 Server, then it is necessary to alter the properties of the service to "Allow service to interact with desktop". For more information, see Windows Win Apps.

Binary command-line options

The binary command line options are applicable to all platforms, unless otherwise stated.

Binary command line option Description
-help Displays a list of command line options and exits.

-version

-ver

-v

Displays version information and exits.
-port Sets the listening port for the Gateway connection.
-nolog Ignores any setting from the LOG_FILENAME variable and logs to the terminal instead.
-extract <key> <filename>

Extracts data embedded in the binary, writing it to the <filename> specified.

There are two supported values for <key>:

  • schema — extracts the Gateway Setup File schema embedded in the Netprobe binary.
  • npschema — extracts the Netprobe Setup File schema embedded in the Netprobe binary.
-noschema If invoked, the Netprobe does not publish the schema to the Gateway.
-discovery <file path>

Used in conjunction with -setup. If -setup is not defined, then this option is ignored.

If invoked, the Netprobe runs a discovery executable on the machine it is running on. This executable extracts JSON metadata from its environment, and updates the Netprobe setup file with the metadata through the use of macros.

If you specify a setup URL with the ? character, then the Netprobe appends the JSON metadata as query parameters and pulls the setup file from the URL specified.

When present, the discovery executable runs at Netprobe startup, before the Netprobe reads any setup file, and before it connects to any Gateway.

For more information, see Auto-discovery in Introduction to Netprobe.

Mandatory: No

-setup

-setup <filename>

-setup <url>

Used when running the Netprobe in Floating or Self-Announcing mode. Specifies the Netprobe Setup File to use.

The Netprobe Setup File can be specified as a local file (<filename>) or a remote file (<url>).

If no <filename>or <url>is specified, then the Netprobe defaults to the netprobe.setup.xml file in the current working directory. The Netprobe Setup File needs to specify the connection details of one or more Gateways.

If you specify a remote file (<url> ), the Netprobe saves a copy of this in the current working directory as netprobe.setup.xml. This overwrites the default Netprobe configuration. In this case, any local changes to the netprobe.setup.xml configuration are ignored as the Netprobe retrieves the configuration from the remote file every -setup-interval <minutes>.

If you specify an invalid file from the <url>, or the <url> becomes inaccessible, then the Netprobe uses the default configuration.

Auto-discovery

When used with -discovery, the Netprobe setup file generates its contents from JSON metadata pulled from its environment by the discovery script.

If you specify a setup URL with the ? character, then the Netprobe appends the JSON metadata as query parameters and pulls the setup file from the URL specified.

For more information, see Auto-discovery in Introduction to Netprobe.

Note: -setup <url> only supports HTTP links by default. If you need to set up an HTTPS connection, see the -setup-server-verify option.

When using -setup <url> with multiple instances of the Netprobe, check that you run each probe in its own directory. Otherwise, the setup for each probe may interfere with one another.

Do not use proxy servers for -setup <url>. Proxy servers are not supported.

The -setup <url> option is not supported for IBM AIX platforms.

-setup-interval <minutes>

Used in conjunction with -setup.

Defines the time interval before the floating or Self-Announcing Netprobe requests another configuration file and restarts the announcement process. If no new or valid file is discovered, then the Netprobe neither reloads the configuration file nor restarts the configuration process.

If no -setup-interval is defined, the Netprobe makes the request every 360 minutes (or 6 hours), by default.

Feature behaviour

By default, this option only works for remote configurations defined through -setup <url>. However, if used in conjunction with -discovery, then this option works for both -setup <filename> and <url>.

Auto-discovery

When used with -discovery, then this option defines the time interval before the Netprobe reruns the discovery executable to update the JSON metadata. If no updates are discovered from the extracted JSON metadata, then the Netprobe does not reload the Netprobe setup file.

For more information, see Auto-discovery in Introduction to Netprobe.

Note: For IBM AIX platforms, this option works when used in conjunction with -discovery and -setup <file path>.

-setup-server-verify <file>

Used in conjunction with -setup <url>. This option only takes effect when an HTTPS <url> is specified. Otherwise, this option is ignored.

When this option is invoked, the Netprobe verifies the remote server on the -setup <url> against the specified Certificate Authority (CA) bundle.

You can specify a CA bundle on the <file> argument in PEM format.

If no <file> is specified, then the Netprobe verifies the remote server against the operating system's Certificate Authority (CA) bundle. In this case, the required certificates must be installed in the appropriate certificate stores.

Note: On Windows, the <file> argument is required.

On Linux, the Netprobe searches for the default ca-bundle file at </etc/pki/tls/certs/ca-bundle.crt>. However, in SLES platforms, the default ca-bundle is not at this path. For SLES platforms, we recommended that you specify a ca-bundle file for this option or create a symbolic link at </etc/pki/tls/certs/ca-bundle.crt> to the default ca-bundle file of SLES platform.

On IBM AIX, this option is not supported.

-mdmtest <lua_script> [params]

Test utility for Market Data Monitor Lua script prior to deployment.

Example:

$./netprobe.linux-mdmtesttest.luaparam1param2

-listenip

Sets a specific IP address where the Netprobe will listen to incoming connections.

This argument can be used to force Self-Announcing Netprobes not to listen for incoming connections. For more information, see Disable listening in Manage Self-Announcing Netprobes.

-ssl-certificate This is the file that contains the signed SSL server certificate in PEM format.
-ssl-certificate-key

This is the file that contains the signed SSL server private key in PEM format.

If this is option not specified, but the certificate is, then the Netprobe will look for the private key in the same file as the server certificate.

-ssl-certificate-chain This is the file that contains the trusted certificate authority.
-require-ssl-certificate-for

This forces the Netprobe to require certain components connecting to the Netprobe port to provide a valid SSL certificate.

If no certificate is provided, or the certificate cannot be vaildated using the certificate authority provided by the -ssl-certificate-chain option, the connection will be rejected. The connection type of the connections to check must be provided.

This command line option only supports the following argument:

  • emf2 — covers all Geneos components connecting using the Geneos EMF2 protocol.
-secure

If this option is present, the Netprobe will listen on a secure port rather than an insecure port.

If -secure is specified, then an SSL server certificate and an server private key also need to be specified.

-nopassword Run commands on the Netprobe's host. For more information, see Set passwords on Netprobe commands.
-mq QM=<qm_name> MQSERVER=<conn_string> CHANTAB=<chan_table> KEYREPO=<ssl_keyrepo> CIPHER=<cipher_spec> Test MQ connection
  • QM — queue manager, e.g. qm.test
  • MQSERVER — server connection string, e.g. CHAN/TCP/host(port)
  • CHANTAB — full path to the channel table file, e.g. /var/mqm/AMQCLCHL.TAB
  • KEYREPO — full path to SSL key repository, e.g. /var/mqm/ssl/key(.kdb)
  • CIPHER — SSL cipher specification, e.g. TRIPLE_DES_SHA_US

Example value:
netprobe-mqQM=qm.testMQSERVER=CHAN/TCP/host

-minTLSversion Specifies the minimum TLS version. The accepted values are:
  • 1
  • 1.0
  • 1.1
  • 1.2
For more information, see Secure Communications.
-openssl-cipher <ciphers>

To set the available TLS ciphers use the -openssl-cipher <ciphers> command line option, replacing <ciphers> with a comma separated list of ciphers.

For more information, see TLS ciphers in Secure Communications.

-json2XML <filename>

Converts JSON document specified by <filename> to XML and displays result to the console.

Applicable to Windows platforms only.

-jvm-libpath <path>

Specifies <path> of the JVM library to use.

If this option is invoked, the Netprobe does not attempt to locate the library in the PATH or LD_LIBRARY_PATH environment variable. In Windows, the JVM_LIBPATH registry key is ignored.

Example value:
-jvm-libpath /usr/java/jdk/jre/lib/amd64/server/libjvm.so

Applicable to Windows platforms only.

-java-home <path>

Specifies the <path> of the JRE to use. Overrides the JAVA_HOME environment variable.

Applicable to Windows platforms only.

-perf

Show available performance monitor counters.

Applicable to Windows platforms only.

-cmd

Run in the foreground, rather than as a service.

Applicable to Windows platforms only.

-install

Installs the probe as a service.

Applicable to Windows platforms only.

-uninstall

Uninstalls the probe as a service.

Applicable to Windows platforms only.

-showcpus

Shows detected CPU information for this machine.

Applicable to Windows platforms only.

-disable-core-dump

Disables creation of core dump files.

Applicable to Windows platforms only.

-ifconfig, -if

Lists down the NICs present in the Windows machine. This should be used in configuring X-plugins send / recv interfaces.

Applicable to Windows platforms only.

-perfdebug

Dumps performance counter data into a file (i.e. perfout.dat).

Applicable to Windows platforms only.

-json2XML <filename>

Converts JSON document specified by <filename> to XML and displays result to the console.

Applicable to Windows platforms only.