deactivate

Use the deactivate command to deactivate connectivity for a solution.

Purpose

Use the connectivityManager deactivate command to deactivate the solution connectivity on the Liberty profile server. You can run the connectivityManager script locally or remotely. If you run the script locally, it modifies files on the current, local system. If you run the script remotely, it establishes an HTTP connection to a running Liberty profile server, which might be a remote host or the local host. You must provide administrator authentication credentials to run the script remotely.

Syntax

connectivityManager deactivate local solutionName
[--propertiesFile=properties_file]
[--server=server_name]
connectivityManager deactivate remote solutionName
[--propertiesFile=properties_file]
[--host=hostName]
[--port=portValue]
[--username=userName]
[--password=password]
[--keyStoreLocation=keystore_location]
[--keyStorePassword=keystore_password]
[--readTimeout=timeout_value]
[--sslProtocol=sslProtocol]
[--trustStoreLocation=truststore_location]
[--trustStorePassword=truststore_password]
[--disableSSLHostnameVerification=true|false]
[--disableServerCertificateVerification=true|false]

Description

Table 1. Mandatory parameters for the connectivityManager deactivate local command
Parameter Description
solutionName The name of the solution.
Table 2. Optional parameters for the connectivityManager deactivate local command
Parameter Description
propertiesFile The path to a properties file from which to read properties. If you do not specify a value, the default path to the connection.properties file in the runtime/ia/etc directory is used.
server The name of the server.
Table 3. Mandatory parameters for the connectivityManager deactivate remote command
Parameter Description
solutionName The name of the solution.
Table 4. Optional parameters for the connectivityManager deactivate remote command
Parameter Description
propertiesFile The path to a properties file from which to read properties. If you do not specify a value, the default path to the connection.properties file in the runtime/ia/etc directory is used.
host The host name of the remote server. This parameter is only used for remote connections. If you do not specify a value, the value specified by the propertiesFile option in the properties file is used.
port The HTTPS port of the remote server. This parameter is only used for remote connections. If you do not specify a value, the value specified by the propertiesFile option in the properties file is used.
username The administrator user name for the remote server. This parameter is only used for remote connections. If you do not specify a value, the value specified by the propertiesFile option in the properties file is used. If a value is not specified either on the command line or in the properties file, the system prompts you to provide a password interactively.
password The administrator password for the remote server. This parameter is only used for remote connections. If you do not specify a value, the value specified by the propertiesFile option in the properties file is used. If a value is not specified either on the command line or in the properties file, the system prompts you to provide a password interactively.
trustStoreLocation The location of the trust store. This parameter is only used for remote connections. If you do not specify a value, the value specified by the propertiesFile option in the properties file is used.
trustStorePassword The trust store password. This parameter is only used for remote connections. If you do not specify a value, the value specified by the propertiesFile option in the properties file is used. If the property is not set in the properties file, a password is not used. If not specified, the trust store is still accessed but the integrity of the trust store is not validated.
disableSSLHostnameVerification If this value is set to true, SSL host name verification is disabled. This parameter is only used for remote connections. If you do not specify a value, the value specified by the propertiesFile option in the properties file is used. If a value is not specified either on the command line or in the properties file the default false is used.
disableServerCertificateVerification This parameter is used to disable server certificate verification. If you set this parameter to true, the client does not check whether the certificate presented by the server is trusted. If the server is not trusted, authentication credentials and other user information might be passed on through the JMX connection. This parameter is optional. If not specified, it uses the value in the properties file specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, it defaults to false.
keyStoreLocation The location of the keystore. If you do not specify a value, this parameter uses the value in the properties file specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, no keystore is used.
keyStorePassword The keystore password. If you do not specify a value, this parameter uses the value in the properties file specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, you are asked to provide a password interactively.
readTimeout The amount of time expressed in milliseconds that the utility waits for a response from the server before closing a connection. This parameter is optional. If you do not specify a value, it uses the value that is specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, the default value is 60000 (1 minute).
sslProtocol The SSL protocol for the connection. If you do not specify a value, this parameter uses the value in the properties file specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, the value "TLSv1.2" is used.

Example

connectivityManager deactivate local mysolution
connectivityManager deactivate remote mysolution