Using the deactivatemodel Command

The deactivatemodel command allows you to remove a previously activated(deployed) model and its related configuration from a running Host Integrator Server. Click a link below for more information about this command:

Command Requirements

Before you use the deactivatemodel command, you must have an activated model running on a Host Integrator Server.

Command Syntax

Use this syntax for the deactivatemodel command:

deactivatemodel -model model_name
  [ -server vhi_server ]
  [ -user username -password password ]
Option Short Version Required Description
-model -m
X
This switch specifies the name of the model to deactivate. This switch is required.
-server -s

The network name of the Host Integrator Server on which to deactivate the model. This switch is optional. If it is not supplied, the network name localhost is implied.

-user
-password
-u
-w
X
The user credentials of the Host Integrator administrator. These credentials are required.

When using a deactivate command only the model name is needed. You do not need to provide the path to the model.

Command Examples

Here are some examples of the deactivatemodel command. The first command removes the model Mymodel from the Verastream server running on the local computer. It also deletes any session pools and model variable lists used solely by this model:

deactivatemodel -model MyModel

The following command removes the model Mymodel from the server VHI_Server. It also deletes any session pools and model variable lists used solely by this model:

deactivatemodel -model MyModel -server VHI_Server

The final command uses the short versions of the switches. Since security is enabled by default on the Host Integrator Server, the Host Integrator administrator's user name and password must be provided to deactivate the model.

deactivatemodel -m MyModel -s VHI_Server -u VHIadmin -w VHIPassword

Related Topics
Bullet Using Commands to Deploy a Model Package
Bullet About Model Packages