Windows operating systems

Automating the storage agent startup (Windows)

The storage agent can be run in the background as a Windows service.

About this task

You can choose the logon account for the IBM Storage Protect storage agent service and specify whether the service starts manually or automatically. If you specify automatic start up, Windows starts the storage agent each time the system is rebooted.

Procedure

Start the storage agent in the background as a service by completing the following steps:

  1. Open a Command Prompt window.
  2. Create the service by issuing the sc create command:
    sc.exe create stagent_srv_name binPath= "path_to_sta" 
    start= start_type obj= accountName password= password
    Table 1. Parameters of the Windows sc create command
    Parameter Description
    stagent_srv_name

    Specifies the name of the storage agent service. A maximum of 4 storage agents can exist on a system, therefore the name of the storage agent service is:

    TSM StorageAgentX

    where X is a number between 1 and 4.

    path_to_sta

    Specifies the path to the dstasvc.exe executable, including the executable. The default path is C:\Program Files\Tivoli\TSM\StorageAgent\dstasvc.exe.

    start_type

    Specifies the start type for the service. You can use auto to automatically start the service, or demand to manually start the service.

    accountName

    Specifies the name of an account in which a service will run. This parameter is optional. If not specified, the Local System account is used.

    password

    Specifies the password for the accountName user account.

    Remember: There must be a space after each equal character (=).