Previous Topic: Sending a Report by EmailNext Topic: Chargeback Query


Executing CA SRM Services from a Command Prompt

The following example shows you how to execute the CA SRM service, MANAGED_COMPUTERS, from a command prompt on the Application Server.

You must define and execute the procedure or service using the HOLD timing condition. To do this, click the Advanced button in the Summary dialog when you perform a service, click the Condition button, and then enter HOLD. The service will remain in this state until you issue a command to start using the VDPXSRV utility.

To execute CA SRM services from a command prompt, follow these steps:

  1. If necessary, unlock the Application Server screen. Click on the toolbar.
  2. Activate VDPXSRV on the Application Server using the following command:
    VDPXSRV <MANAGED_COMPUTERS>
    
  3. (Optional) Add /WAIT to the command line to indicate that you want VDPXSRV to wait for the service to complete before terminating.
  4. (Optional) Add /RESULT=<log_file> to the command line to indicate that you want VDPXSRV to create a log file to record possible VDPXSRV messages.
  5. (Optional) Add pairs of <key>=<value> parameters to be passed to the service. For example:
    1. Define and execute the TopTenUsers report with the special timing condition HOLD. In the EDL expression of the service definition, use variables (prefixed with a $ sign) such as:
    2. FILE WHERE SERVER_NAME = $SNAME AND VOLUME_NAME = $VNAME AND
      FILE_SIZE > $BIG
    3. Activate VDPXSRV on the Application Server computer and provide values for the variables defined in the service query:
      VDPXSRV TopTenUsersR /WAIT /RES=c:\temp\result.log $SNAME=SERVER2 
      $VNAME=SYS $BIG=1024
      

    Note: You must enter all units as unqualified base units. For example, enter file_size only in bytes and do not add qualifiers such as KB, MB, or GB qualifiers. You cannot use EDL expression containing dates.

You can also execute a predefined procedure. For example, you can enter the key /PROC in the command line immediately after the procedure name.