Workers

Workers are locally installed, registered machines that can process the work items added to the queues of a remote agent. The workers request work items from the remote agent. The remote agent sends workers work items from the queues. When the workers are done, they return the completed work items back to the remote agent.

The number of workers and queues you can have for the dedicated bot remote worker is determined by your license.

Installing and Registering a Worker

System requirements

Components included on installation

Services installed

Services Installed
Component Name Service Name Service Display Name
Remote Worker 1 LFPALocalAgent Laserfiche Remote Worker 1
Remote Worker 2 LFPALocalAgent2 Laserfiche Remote Worker 2
Remote Worker 3 LFPALocalAgent3 Laserfiche Remote Worker 3
Bot Worker LFPABotAgent Laserfiche Bot Worker

Installing workers

  1. On the configuration page for your remote agent, click the Workers tab in the top left.
  2. Under Installation Instructions, select Download. This will download an executable file to your computer.
  3. Run the setup.exe file. This creates a Windows service that automatically performs work when your machine starts up.
    1. If you downloaded the file from the Dedicated Bot Remote Agent, select Bot Worker Installation. If you downloaded the file from another remote agent, select Remote Worker Installation.
    2. In the installation wizard's Welcome step, click Next.
    3. Read the terms of the End-User License Agreement. If you agree, select I accept the terms in the License Agreement and click Next.
    4. In the Choose Setup Type step, select the workers you want to install. You can install up to three remote workers and one bot worker.
    5. Optional: Configure where the workers will be installed, next to Install directory.
    6. Click Next.
    7. In the Laserfiche Service Settings step, specify the credentials the workers will use. Click Next.
    8. In the Ready to Install step, click Install to start the installation process.
    9. In the Prerequisites step, a green check will appear next to installed items and a red X will appear next to items that have not been installed. If one or more of the items on the list has a red X next to it, install that item and then click Retry. Alternatively, select Bypass Prerequisites and click Next.
    10. Important: Bypassing prerequisites may cause workers to function incorrectly and is not recommended.

    11. If all the items installed successfully, click Next.
    12. Click Finish to exit the installation wizard. The Laserfiche Worker Configuration Tool will start by default.

Configuring workers

  1. The Laserfiche Worker Configuration tool lets you register the worker to the remote agent pool. You can launch this tool from the last page of the installation wizard or from the Windows Start menu.
  2. In the Laserfiche Worker Configuration tool, click the Register worker button next to the worker you want to register.
  3. Choose how you want to register the worker:
    • Generating a registration token: Navigate to the Worker tab of the remote agent's web page in Laserfiche Cloud. Click Generate new registration token at the bottom of the installation instructions, and copy the token. Then, in the Laserfiche Worker Configuration tool, enter your Laserfiche account ID number and the token, and click Register.
    • Signing into Laserfiche: Click the Sign into Laserfiche button and then enter your credentials. Select the remote agent you want to register a worker to from the drop-down menu in the Laserfiche Worker Configuration tool. Click Register.
  4. The Current registered worker page shows a summary of the registered worker and offers and option to deregister it, if desired. Click Close.
  5. Continue registering workers from the Laserfiche Worker Configuration tool. You can also start and stop workers' services here. Click Refresh to view the workers' current statuses.

Removing workers

To remove a worker, you must both deregister it on the local machine and delete it in Laserfiche Cloud.

Note: Depending on the connection between the local machine and Laserfiche Cloud, the worker may be deleted from Laserfiche Cloud when it's deregistered or you may need to delete it manually.

To deregister a worker

  1. Open the Laserfiche Worker Configuration tool.
  2. Click the Register worker gear button next to the worker you want to deregister.
  3. Click Deregister.

To delete a worker

  1. Open the remote agent you want to delete a worker from.
  2. On the Workers tab, click the trashcan button next to the worker you want to delete.
  3. Confirm the deletion.

Unattended Installation and Configuration

Unattended installation and registration is supported for users to install and register workers by running command line scripts.

Unattended Installation

You can append parameters to the setup file to customize the installation.

  1. On the configuration page for your remote agent, click the Workers tab in the top left.
  2. Under Installation Instructions, select Download. This will download an executable file to your computer.
  3. Copy the .exe file to a permanent location.
  4. Right-click the .exe file and extract the contents.
  5. Open the Windows Command Prompt from the Windows System folder.
  6. Enter command line arguments in the format: setup_exe_path operation argument_name=argument_value. The setup_exe path is here: [ExtractedFolder]\en\LocalAgent\SetupLf.exe for both remote workers and bot workers.
  7. Note: By default, the worker service will run as local system.

  8. Use the following parameters to customize the installation:
Parameters
SetupLF.exe Parameters Definition Example Notes
-log logpath Specifies the directory in which the installation logs will be stored. If this parameter is not specified, no log file will be saved. -log "C:\Logs"  
-silent

The installation will proceed without displaying any dialogs to the user.

Note: Microsoft Installer 4.5 must already be installed on the computer for a silent install to complete successfully.

   
-noui The installation will prompt the user to accept the license agreement but will not prompt them for any other information. The user will see the installation progress and any error messages.    
-iacceptlicenseagreement This parameter allows you to indicate your acceptance of the license agreement within the command line string itself. This parameter is meant to be used in tandem with -noui, in which case -noui will display progress bars and error messages but will not prompt the user to accept the license agreement.    
-botagent Only install the bot worker component   If this parameter is not added, only the remote worker 1 component will be installed
INSTALLDIR="InstallDir" Install or uninstall package to a specified directory INSTALLDIR="D:\Laserfiche"  
ADDLOCAL="LFPALocalAgent" Only install remote worker 1    
ADDLOCAL="LFPALocalAgent2" Only instal remote worker 2    
ADDLOCAL="LFPALocalAgent3" Only install remote worker 3    
ADDLOCAL="LFPABotAgent" Only install the bot worker    
INSTALLLEVEL="1" Only install remote worker 1    
INSTALLLEVEL="2" Only install remote worker 1 and remote worker 2    
INSTALLLEVEL="3" Only install remote worker 1, remote worker 2, and remote worker 3    
INSTALLLEVEL="100" Install all components    
ADDLOCAL="ALL" Install all components    
LFPALocalAgentSVCACCOUNTNAME="Account" Specify an account name for the remote worker 1 service   If no value is specified for this parameter, the default service account in local system will be used
LFPALocalAgentSVCACCOUNTPASSWORD="Password" Specify a password for the remote worker 1 service   If no value is specified for this parameter, the default service account in local system will be used
LFPALocalAgent2SVCACCOUNTNAME="Account" Specify an account name for the remote worker 2 service   If no value is specified for this parameter, the default service account in local system will be used
LFPALocalAgent2SVCACCOUNTPASSWORD="Password" Specify a password for the remote worker 2 service   If no value is specified for this parameter, the default service account in local system will be used
LFPALocalAgent3SVCACCOUNTNAME="Account" Specify an account name for the remote worker 3 service   If no value is specified for this parameter, the default service account in local system will be used
LFPALocalAgent3SVCACCOUNTPASSWORD="Password" Specify a password for the remote worker 3 service   If no value is specified for this parameter, the default service account in local system will be used
LFPABotAgentSVCACCOUNTNAME="Account" Specify an account name for the bot worker service   If no value is specified for this parameter, the default service account in local system will be used
LFPABotAgentSVCACCOUNTPASSWORD="Password" Specify a password for the bot worker service   If no value is specified for this parameter, the default service account in local system will be used
REMOVE="LFPALocalAgent" Uninstall remote worker 1    
REMOVE="LFPALocalAgent2" Uninstall remote worker 2    
REMOVE="LFPALocalAgent3" Uninstall remote worker 3    
REMOVE="LFPABotAgent" Uninstall the bot worker    
REMOVE="ALL" Uninstall all components    

Examples:

 

To install worker 1 with a specific account:

SetupLf.exe -silent -log "{log path}" ADDLOCAL="LFPALocalAgent" LFPALocalAgentSVCACCOUNTNAME="DOMAIN\USERNAME" LFPALocalAgentSVCACCOUNTPASSWORD="xxxx"

 

To Install worker 1 and the bot worker with local system in directory "D:\test":

SetupLf.exe -silent -log "{log path}" ADDLOCAL="LFPALocalAgent,LFPABotAgent" INSTALLDIR="D:\\test\"

 

Uninstall bot worker in directory "D:\test":

SetupLf.exe -silent -log "{log path}" REMOVE="LFPABotAgent" INSTALLDIR="D:\\test\"

 

Install all workers with specific accounts:

SetupLf.exe -silent -log "{log path}" INSTALLLEVEL="100" LFPALocalAgentSVCACCOUNTNAME="DOMAIN\USERNAME" LFPALocalAgentSVCACCOUNTPASSWORD="xxxx" LFPALocalAgent2SVCACCOUNTNAME="DOMAIN\USERNAME" LFPALocalAgent2SVCACCOUNTPASSWORD="xxxx" LFPALocalAgent3SVCACCOUNTNAME="DOMAIN\USERNAME" LFPALocalAgent3SVCACCOUNTPASSWORD="xxxx" LFPABotAgentSVCACCOUNTNAME="DOMAIN\USERNAME" LFPABotAgentSVCACCOUNTPASSWORD="xxxx"

 

Uninstall all workers:

SetupLf.exe -silent REMOVE="ALL"

Unattended Configuration

Unattended configuration supports three operations:

  1. Open the Windows Command Prompt from the Windows System folder.
  2. Enter command line arguments in the format: config_exe_path operation argument_name:argument_value. By default, the unattended configuration utility's path is [InstallDir]\ProcessAutomationWorkerAgent\[WorkerFeatureFolder]\ConfigTools\Laserfiche.ProcessAutomation.LocalAgentUnattendedConfig.exe
  3. Note: If the argument value has spaces, use quotation marks around the value. For example, remoteAgentName:'Dedicated Bot Remote Agent'

  4. Use the following launch arguments to register or deregister workers.

Examples:

 

To register a worker using a registration token, use these argument:

..\Laserfiche.ProcessAutomation.LocalAgentUnattendedConfig.exe register accountid:accountid token:token

 

Note: accountid is used to retrieve the region-based default server name.

 

Note: The accountid and token command line parameters are required when registering a token via registration token.

 

To register a worker by signing in to Laserfiche, use this argument:

..\Laserfiche.ProcessAutomation.LocalAgentUnattendedConfig.exe credential accountid:accountid username:username password:password remoteagentname:remoteagentname

 

Note: The accounted, username, password, and remoteagentname command line parameters are required when registering a worker using credentials.

 

To deregister a worker

..\Laserfiche.ProcessAutomation.LocalAgentUnattendedConfig.exe deregister

Running the Worker

Once registered, the worker appears in the Workers tab as a new subsection titled with the name you provided during registration. You may have to refresh the Workers tab to see any recent changes.

The Windows service for the worker will automatically start after installation. It will also start whenever Windows starts. Services for each component are:

Services
Component Name Service Name Service Display Name
Remote Worker 1 LFPALocalAgent Laserfiche Remote Worker 1
Remote Worker 2 LFPALocalAgent2 Laserfiche Remote Worker 2
Remote Worker 3 LFPALocalAgent3 Laserfiche Remote Worker 3
Bot Worker LFPABotAgent Laserfiche Bot Worker

Next Steps