Command Line Utility dictl
The dictl utility supports the following commands. In the command syntax, an item that is contained in angle brackets < > is intended to be replaced by a specific user name, group, password, or other appropriate item. Variables or options are preceded by a hyphen (-). You can use any number of, or all variables in the commands that accept multiple options. Enter a list of items separated by commas.
Command | Description |
---|---|
-S <server name>:<port #> | Specifies the server and port to connect to. |
-login <username> <password> | Specifies the user name and password to use to connect to the DiveLine server that is specified by the -S option. |
-dataroot <path to dataroot> | Specifies the path to the dataroot. Enables you to log in with no password when running dictl locally. |
-M <Model1 Model2,...> |
Lists the names of models or cBases from which to disconnect users. NOTE: Use DiveLine pathing when naming the models or cBases. |
-U <username1 username2 username3... > | Specifies a list of users to be disconnected. |
-r <message text> | Sends the specified message to the specified ProDiver, Help Desk, DivePort, or Workbench user, alerting them that they are being disconnected from the server. Use with -U, -M or -all options. |
-i <message text> | Sends a specified message to the specified user without disconnecting them from the server. Use with -U, -M or -all options. |
-info_all | Sends a message to all ProDiver, Help Desk, DivePort, and Workbench users when combined with the -i command. |
-all | Disconnects all users from DiveLine. |
-log <filename> | Specifies an output file name and path for messages that occur while running in batch mode. |
-v | Displays version information for dictl. |
-list_users | Lists all users currently connected to the DiveLine server. |
-list_models | Lists all open models and cBases on the DiveLine server. |
For example, the following command, entered without carriage returns, sends a model maintenance message to all logged in ProDiver, Help Desk, DivePort, and Workbench users and then disconnects them. The logs will show which users were disconnected.
dictl -S DS-Dimins:3230 -login admin admin -info_all -i “Model maintenance being performed” -all -log “manual_build.log”
NOTE:
- You can have Production scripts call dictl to disconnect users before performing certain housekeeping chores for models and cBases.
- If you are running dictl in a script, the DiveLine server is using Web Server authentication, and dictl has write access to the /dataroot/webauth directory. It is preferable to log in as the admin user and disconnect everyone, without storing a password in the script. For example:
dictl -S <server:port> -dataroot C:\DI_Solution\dl-dataroot -login admin -all