Prerequisite Steps for Running a Public (Regular) Station as a Service

You must review several aspects of the environment before configuring a public (regular) station as a service.

This task shows you how to:

Perform Prerequisite Steps on Windows

Before you begin:
  • Configure and run a 3DOrchestrate Server before running the current release on your network.
  • Take note of the 3DOrchestrate Server key information, including its hostname (with the fully qualified name preferred), protocol, and ports.
  • On a separate computer host configured with a supported Windows environment, proceed with a clean installation of a 3DOrchestrate station with adapters. For an overview of the installation and the specific details of the Windows environment, see 3DOrchestrate Installation and Administration.
  1. Open a Windows command prompt, and change the directory to the 3DOrchestrate root directory. For example:

    C:\> cd /d C:\DassaultSystems\release_num\3DOrchestrate\win_b64

  2. Optional: Start a station as a service using the CATEnv parameters.
    1. Create environment variables CAT_ENV_FILE and CAT_ENV_PATH
    2. Set the value of CAT_ENV_FILE to the CATEnv file that includes SMAEXE_JRE.
      The installer sets SMAEXE_JRE in the global CATEnv file ENV.txt, located in <INSTALLDIR>/CATEnv using the default install values:
      SET CAT_ENV_FILE=Env.txt
      SET CAT_ENV_PATH=<station_install_directory>/CATEnv

    When the SMAExeStationAsService-Configure.bat/sh file configures the station as a service, the script creates a SMAExeStationWrapper.conf configuration file using the variables defined in the Env.txt file.

    Note: If you modify the Env.txt file, you must run SMAExeStationAsService-Configure.bat/sh again to update or create a new configuration file to reflect the changes.

  3. Unset the SH_DEBUG environment variable, if required.

    The SH_DEBUG environment variable enables the Dassault Systèmes support team to collect extra debugging information when running station-related commands. However, it should not be defined unless the support team specifically requests it, and it can interfere with the normal operation of 3DOrchestrate applications.

    Tip:

    Issue the following command to check if SH_DEBUG is defined:

    set SH

    If the command prompt returns a value, issue the following command to unset it:

    set SH_DEBUG=

    If the command prompt returns the message Environment variable SH not defined, the environment variable has not been predefined, and you can proceed to the next step.

  4. Check whether your system has defined any environment variables starting with the prefix SMAEXE_ by issuing the following command:

    set SMAEXE
    In particular, the SMAEXE_JVMPARMS and SMAEXE_TEMP environment variables can have an impact on the configuration process for a station running as a service. These variables are not taken into account properly when the station running as a Windows service is up.

    The command prompt lists the values of all defined SMAEXE_ output variables, so that you can review their settings and assess whether they are required during an operation of the station running as a service.
  5. Check whether the following Java environment variables are predefined on your system:

    All three can impact the operations of any Java virtual machine running on the Windows host. They can have an impact during the configuration process for setting up a station as a service, and they might not be taken into account when the station operates as a Windows service.

  6. Check the connection with the 3DOrchestrate server:
    1. Start a public 3DOrchestrate station to ensure it can connect to the required server by issuing this command:

      .\code\command\SMAExeStation.bat

      The Logon Station dialog box appears.
    2. Select a Connection profile.

      Click to edit the selected connection profile. In the Profile Editor dialog box, you can edit the protocol, hostname, and port number.

      If no suitable connection profile exists, you can create a new one. Click to specify the protocol, host name, and port, and click Save twice.

    3. Enter your User ID and Password, and click OK.
      The main EER station dialog box appears.
    4. Review the Station Log to check the set of working directories used by the station, particularly the location of the Station temporary directory. In addition, the final line of the log includes the informational line Station started if the station started successfully.
    5. Shut down the station.
  7. Select a Windows account to run the service.

    Note: The Windows account that you select for running the station as a service is different from the default fiperstation account used to connect to the 3DOrchestrate server.
    The following accounts are available:

    OptionDescription
    LocalService A local account that Windows recommends for running any kind of application service that does not require access to network resources. This account does not require a password and has minimal privileges on the workstation. You can find its temporary files and folders stored in this directory:
    C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp
    NetworkService An alternate account for running any kind of application service locally that could access "public" network resources; that is, resources that are accessible to everyone or to any authenticated users. It requires a password, has minimal privileges on the local workstation, and might access public network resources (depending on the organization policy). You can find its temporary files and folders located under:
    C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp
    LocalSystem A local account that is available for use but discouraged by Microsoft. It does not require a password, has maximum privileges on the local workstation, and might access public network resources (depending on the organization policy). You can find its temporary files and folders located under:
    C:\Windows\Temp
    <Dedicated domain account> A new, dedicated account for running an application like a station as a service. Using a dedicated account for a station as a service is good practice because it enables the organization to grant access to any network resources selectively. The dedicated domain account requires a password, can have custom privileges on the local workstation, and can access specific network resources (based on regular permissions). You can find its temporary files and folders located under:
    C:\Users\%USERNAME%\AppData\Local\Temp\(NUMBER ?)
  8. Check the privileges of the selected Windows account:
    1. Select [Start menu] > Run.
    2. Enter secpol.msc, and click OK.
      The Local Security Policy dialog box appears.
    3. From the tree, expand Local Policies and click User Rights Agreement.
    4. Double-click Log on as a service.
    5. In the Log on as a service Properties dialog box that appears, confirm that the account's local security setting contains the group NT SERVICE\ALL SERVICES and click OK to close the dialog box.
    6. Double-click Replace a process level token.
    7. In the Replace a process level token Properties dialog box that appears, confirm that the account's local security setting contains the accounts LOCAL SERVICE and NETWORK SERVICE. Click OK to close the dialog box.
    8. For dedicated domain accounts, click Add User or Group.

      • Click Add User or Group.

        The Select Users, Computers, Services Accounts, or Groups dialog box appears.

      • Enter the simple login ID of the account, and click Check Names. Select the name of the account, and click OK.

Perform Prerequisite Steps on Linux

Before you begin: Install the station on the local machine and confirm that you have a working .cpr file. For more information, see Installing and Starting a Public (Regular) Station.
Confirm that the user account that runs the service has sudo permissions for the following operations:
  • mv (so that you can move the file to the /etc/systemd/system folder)
  • systemctl (for running configuration, performing registration, and starting and stopping commands)