Windows operating systems

Dsmcutil commands: Required options and examples

Reference information for the dsmcutil commands and examples are provided.

The INSTall command installs and configures backup-archive client services.

INSTall Scheduler

Installs and configures the Tivoli® Storage Manager Scheduler Service.

These are the required INSTall command options:

  • /name:service_name
  • /password:password
  • /clusternode:Yes | No (required if running the Microsoft Cluster Server (MSCS) or Veritas Cluster Server (VCS)).
  • /clustername:cluster_name (required if running the MSCS or VCS).
Restriction: Do not specify a clustername of more than 64 characters. If you specify more than 64 characters and you are using Veritas Storage Foundation with High Availability or a Microsoft Cluster Server configuration, you might not be able to install or start the scheduler service.

The /clientdir:client_dir option can also be used, the default is the current directory.

The following files must exist in the directory specified by client_dir:

  • dsmcsvc.exe
  • dscenu.txt
  • dsm.opt
  • dsmntapi.dll
  • tsmutil1.dll
Note: If the service is being installed on a remote workstation, the fully qualified client directory path should be relative to the target workstation. UNC names are not allowed for the local system account. Multiple services can be installed on the same workstation.
Tip: In the commands that are provided in the following examples, the default location of the client installation program (c:\program files\tivoli\tsm\baclient) is used. If you installed the client to a different location, replace the default path with your custom installation path. If the path contains a space, enclose the path in double quotation marks (for example, "c:\program files\tivoli\tsm\baclient").
Task
Install a scheduler service that is named TSM Central Scheduler Service on the local workstation. Start the service automatically at system boot time. All required files must reside in the current directory and the client options file must point to the Tivoli Storage Manager server where node ALPHA1 is defined with password nodepw. The server is contacted to verify that the specified node and password are valid. When the password is validated it is generated (encrypted) into the password store:
Command:
  dsmcutil install scheduler /name:"TSM Central Scheduler Service" 
  /node:ALPHA1 /password:nodepw /autostart:yes
Task
Install a scheduler service named TSM Central Scheduler Service on remote workstation PDC. Start the service automatically at system boot time. The required scheduler service files and the specified options file must reside on the remote workstation in the c:\program files\tivoli\tsm\baclient directory. The password is encrypted into the password store. The Tivoli Storage Manager server is not contacted to validate the password.
Command:
  dsmcutil install scheduler /name:"TSM Central Scheduler Service"
  /machine:PDC /clientdir:"c:\program files\tivoli\tsm\baclient" 
  /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt"
  /node:PDC /validate:no /autostart:yes /password:nodepassword
Task
Install a scheduler service named TSM Central Scheduler Service on remote workstation PDC. Start the service automatically at system boot time. The required scheduler service files and the specified options file must reside on the remote workstation in the c:\program files\tivoli\tsm\baclient directory. The password is encrypted into the password store. The Tivoli Storage Manager server residing at the specified TCP/IP host and port is contacted to validate the password.
Command:
  dsmcutil install scheduler /name:"TSM Central Scheduler Service"
  /machine:PDC /clientdir:"c:\program files\tivoli\tsm\baclient" 
  /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt"
  /node:PDC /autostart:yes /password:nodepassword
  /commmethod:tcpip /commserver:alpha1.example.com
  /commport:1521
Task
Install the TSM Central Scheduler Service on one node of a MSCS (or VCS) cluster. For group-a from workstation node-1, ensure that node-1 currently owns group-a and then issue the following command.
Command:
  dsmcutil install scheduler /name:"TSM Central Scheduler Service:
  group-a" /clientdir:"c:\program files\tivoli\tsm\baclient" 
  /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt"
  /node:mscs-cluster-group-a /password:n 
  /validate:no /autostart:yes /startnow:yes
  /clusternode:yes /clustername:mscs-cluster

INSTall CAD

Installs and configures the Client Acceptor Service. Required options are:

  • /name:service_name
  • /node:node_name
  • /password:password

Other valid options are:

  • /optfile:options_file
  • /httpport:http_port
  • /webports:web_ports
Task
Install a Client Acceptor Service called TSM CAD. The client acceptor uses a node called test to connect to the Tivoli Storage Manager server. Use the options file c:\program files\tivoli\tsm\baclient\dsm.opt to connect to the server.
Command:
  dsmcutil install cad /name:"TSM CAD" /node:test
  /password:test /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt"

INSTall Journal

Installs a journaling engine service on all Windows clients. A journal database is created that stores information the client uses to determine which files are eligible for backup before an operation starts.

If necessary, you can use the nojournal option with the incremental command to specify that you want to perform a traditional full incremental backup.

The journaling engine service is named TSM Journal Service and uses the configuration file tsmjbbd.ini from the backup-archive client installation directory.

Note: The Journal Service is supported in a Microsoft Cluster Server environment. Multiple journal services can be installed by specifying unique pipe names using the JournalPipe journal config setting and client options.

There are no valid options for this command.

Task
Install the journaling engine service (TSM Journal Service).
Command:
  dsmcutil install journal                                      

INSTall REMOTEAgent

Installs and configures a Remote Client Agent Service. Required options are:

  • /name:service_name
  • /node:node_name
  • /password:password
  • /partnername:partner_service_name

Other valid options are:

  • /optfile:options_file
Task
Install a Remote Client Agent Service called TSM AGENT. The remote client agent uses a node called test to connect to the Tivoli Storage Manager server. The options file c:\program files\tivoli\tsm\baclient\dsm.opt is used to connect to. The partner client acceptor service is TSM CAD.
Command:
  dsmcutil install remoteagent /name:"TSM AGENT" /node:test 
  /password:test /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt" 
  /partnername:"TSM CAD"
Note: Both the Remote Client Agent Service and the Client Acceptor Service must be installed to run the web client. The Client Acceptor Service must be installed before the Remote Client Agent Service. Use the /partnername: option to specify the name of the partner Client Acceptor Service.

INSTall vmwaretools

Installs and configures the VMware backup tools service. There are no required options.

Command:
  dsmcutil install vmwaretools

REMove

Remove an installed Client Service. The required option is /name:service_name.

Task
Remove the specified scheduler service from the local workstation.
Command:
  dsmcutil remove /name:"TSM Central Scheduler Service"
Task
Remove the journaling engine service (TSM Journal Service) from the local workstation.
Command:
  dsmcutil remove /name:"TSM Journal Service"

REMove vmwaretools

Remove the VMware backup tools service. There are no required options.

Command:
  dsmcutil remove vmwaretools

UPDate

Updates Scheduler Service registry values. The required option for this command is /name:service_name, and the registry values to update. Other valid options are:

  • /clientdir:client_dir
  • /optfile::options_file
  • /eventlogging:Yes | No
  • /node:node_name
  • /autostart:Yes | No
  • /clusternode:Yes | No (required if running the MSCS or VCS).
  • /clustername:cluster_name (required if running the MSCS or VCS).
Task
Update the client directory and options file for the specified scheduler service. All required client service files must reside in the specified directory.
Note: The communication options specified with the dsmcutil command here take precedence over those specified in the client options file.
Command:
  dsmcutil update /name:"TSM Central Scheduler Service" 
  /clientdir:"c:\program files\tivoli\tsm\baclient" 
  /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt"
Task
Update the specified scheduler service to use the TCP/IP protocol to connect to a Tivoli Storage Manager server at the specified host name on the specified port.
Command:
  dsmcutil update /name:"TSM Central Scheduler Service" 
  /commserver:nt1.example.com /commport:1521 /commmethod:
  tcpip

UPDate CAD

Updates Client Acceptor Service registry values. The required option for this command is /name:service_name, and the registry values to update. Other valid options are:

  • /node:node_name
  • /password:password
  • /optfile:options_file
  • /httpport:http_port
  • /webports:web_ports
  • /cadschedname:scheduler_name
Task
Update the Client Acceptor Service to use the specified client password and options file. All required client service files must reside in the specified directory.
Command:
  dsmcutil update cad /name:"TSM CAD" /password:test 
  /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt"

UPDate REMOTEAgent

Updates Remote Client Agent Service registry values. The required option for this command is /name:service_name, and the registry values to update. Other valid options are:

  • /node:node_name
  • /password:password
  • /optfile:options_file
  • /partnername:partner_service_name
Task
Update a Remote Client Agent Service called TSM AGENT. The remote client agent service uses a node called test to connect to the Tivoli Storage Manager server. The options file c:\program files\tivoli\tsm\baclient\dsm.opt is used to connect to the server. The partner client acceptor service is TSM CAD.
Command:
  dsmcutil update remoteagent /name:"TSM AGENT" /node:test 
  /password:test /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt" 
  /partnername:"TSM CAD"

Query Scheduler

Query Scheduler Service registry values. Required options are: /name:service_name. Other valid options are:

  • /machine:machine_name
  • /clientdir
  • /optfile
  • /eventlogging
  • /node
  • /commmethod
  • /commport
  • /commserver
  • /errorlog
  • /schedlog
Note: Do not specify a value for the non-required options. The client returns option registry values for the scheduler service you specify.
Task
Query registry settings for the scheduler service you specify.
Command:
  dsmcutil query /name:"TSM Central Scheduler Service"
Task
Query the client directory registry setting for the scheduler service you specify.
Command:
  dsmcutil query /name:"TSM Central Scheduler Service"  

Query CAD

Queries Client Acceptor Service registry values. The required option for this command is /name:service_name. Other valid options are:

  • /machine:machine_name
  • /node
  • /optfile
  • /httpport
  • /webports
  • /clientdir
  • /partnername
Note: Do not specify a value for these options.
Task
Query registry settings for the Client Acceptor Service you specify.
Command:
  dsmcutil query cad /name:"TSM CAD"

Query Journal

Query the journaling engine service, TSM Journal Service on a Windows system. There are no valid options for this command.

Task
Query the journaling engine service, TSM Journal Service.
Command:
  dsmcutil query journal

Query REMOTEAgent

Queries Remote Client Agent Service registry values. The required option for this command is /name:service_name. Other valid options are:

  • /machine:machine_name
  • /node
  • /optfile
  • /partnername
  • /clientdir
Note: Do not specify a value for these options.
Task
Query registry settings for the specified Remote Client Agent Service.
Command:
  dsmcutil query remoteagent /name:"TSM AGENT"

List

Lists installed Client Services. There are no required options.

Task
Locate and list the installed backup-archive client services on the local workstation.
Command:
  dsmcutil list
Task
List the installed backup-archive client services on remote workstation PDC.
Command:
  dsmcutil list /MACHINE:PDC 

START

Use the Start command to start a client service. The Start command requires the /name:service_name option.

Task
Start the journaling engine service, TSM Journal Service.
Command:
  dsmcutil start /name:"TSM Journal Service"

STOP

Use the Stop command to stop a client service. The Stop command requires the /name:service_name option.

Task
Stop the journaling engine service, TSM Journal Service.
Command:
  dsmcutil stop /name:"TSM Journal Service"

UPDATEPW

Generate an encrypted Tivoli Storage Manager password. The UPDATEPW command requires the /node:node_name, /password:password, and /commserver:server_name options. If the clusternode option is set to YES, the /optfile: parameter is also required.

Optionally, you can use the following options:

  • /validate:Yes | No
  • /clusternode:Yes | No (required if running the MSCS or VCS).
  • /clustername:cluster_name (required if running the MSCS or VCS).
  • /force:Yes | No
  • /optfile: (for non-cluster operations)
  • /commmethod:
  • /commport:

The password is validated with the Tivoli Storage Manager server if /validate:Yes is specified. The password is updated on the server if you specify /updateonserver:Yes. If you specify this option, you must specify the current password with the /oldpassword: option.

Task
Update the encrypted password for the specified node. Validate and update the password on the specified Tivoli Storage Manager server which resides on the specified TCP/IP hostname and port:
Command:
  dsmcutil updatepw /node:alpha1 /commMethod:tcpip
  /commServer:alpha1.example.com /commPort:1500
  /password:newpw /oldpassword:oldpw /updateonserver:yes
  /validate:yes /optfile:"c:\program files\tivoli\tsm\baclient\dsm.opt"

ADDACE

Grants access to the Tivoli Storage Manager backup-archive client password and the client SSL certificates for non-administrators.

Beginning with Tivoli Storage Manager Version 7.18, stricter access control is enforced for the Tivoli Storage Manager password storage on Windows operating systems. By default, only the Administrator, SYSTEM, or LocalSystem account has access to the password store and SSL certificates.

You can use the addace command to modify the access control list to allow additional users, such as non-administrative users, or processes such as the Tivoli Storage Manager Data Protection client processes to access the password store and SSL certificates.

The following options are required:
  • -entity:user | group
  • -object:ALL | NODENAME | path\TSM.* | path\spclient.*
Where:
user | group
The Windows user or user group that is given read/write access to the password store.
ALL
Grants access to all password files and SSL certificates in the subdirectories of the C:\ProgramData\Tivoli\TSM\baclient directory.
NODENAME
Grants access to all password files and SSL certificates that are found in the subdirectories of the C:\ProgramData\Tivoli\TSM\baclient\Nodes\nodename directory.
path\TSM.* | path\spclient.*
For cluster passwords that can exist on a shared resource directory, grants access to the password files or certificate files in a specific directory for a node.
For more information about the secure password locations on Windows, see Secure password storage.
Tip: The dsmcutil deleteace command revokes access to password files and SSL certificates.
Task
After you installed and configured the backup-archive client as Administrator, you need to give Susan, a non-administrative user on your Windows system, access to the password files and SSL certificates on the client node Alpha1.
Command:
  dsmcutil addace -entity:Susan -object:Alpha1
Task
A non-administrative user of IBM® Tivoli Storage Manager for Databases: Data Protection for Microsoft SQL Server configured the Tivoli Storage Manager passwords but the administrator also needs access to the passwords. The Data Protection for Microsoft SQL Server user grants access to the password files to the administrator by issuing the following command:
Command:
  dsmcutil addace -entity:Administrator -object:all
Task
During a cluster configuration, the Windows administrator needs to give the cluster node clusnode_A access to the client SSL certificates.
Command:
  dsmcutil addace -entity:Group_A 
  -object:C:\ProgramData\Tivoli\TSM\baclient\Nodes\clusnode_A\spclient.*
If the client certificates are not in the default location (C:\ProgramData\Tivoli\TSM\baclient\Nodes\clusnode_A\), they are located in the same directory as the dsm.opt file.

DELETEACE

Revokes access to the Tivoli Storage Manager backup-archive client password and the client SSL certificates for non-administrators.

You can use the deleteace command to modify the access control list to remove access to the password store and client certificates for users, such as non-administrative users or processes such as the Tivoli Storage Manager Data Protection client processes.

The following options are required:
  • -entity:user | group
  • -object:ALL | NODENAME | path\TSM.* | path\spclient.*
Where:
user | group
The Windows user or user group for which access to the password store and client certificates is removed.
ALL
Removes access to all password files and SSL certificates in the subdirectories of the C:\ProgramData\Tivoli\TSM\baclient directory.
NODENAME
Removes access to all password files and SSL certificates that are found in the subdirectories of the C:\ProgramData\Tivoli\TSM\baclient\Nodes\nodename directory.
path\TSM.* | path\spclient.*
For cluster passwords that can exist on a shared resource directory, removes access to the password files or certificate files in a specific directory for a node.
For more information about the secure password locations on Windows, see Secure password storage.
Tip: The dsmcutil addace command grants access to password files and SSL certificates.
Task
Susan, a non-administrative user, left the company two days ago and the administrator must revoke access to the password files and SSL certificates on the client node Alpha1.
Command:
  dsmcutil deleteace -entity:Susan -object:Alpha1
Task
Cluster node clusnode_Z is moved out of the cluster configuration and no longer needs to access to the client SSL certificates. Issue the following command to remove access for clusnode_Z.
Command:
  dsmcutil deleteace -entity:Group_Z
  -object:C:\ProgramData\Tivoli\TSM\baclient\Nodes\clusnode_Z\spclient.*
If the client certificates are not in the default location (C:\ProgramData\Tivoli\TSM\baclient\Nodes\clusnode_Z\), they are located in the same directory as the dsm.opt file.