Job Submitter & Receiver Configuration Guide

This guide explains how to configure and deploy the Job Submitter and Receiver components. The submitter sends batch jobs to clients, and the receiver executes them.

Submitter Overview

The Submitter is a C# application that:

Submitter Configuration File (submitter.config)

PORT:1234
EXECUTION_PATH:C:\temp\batchjobs
LOG_FILE:C:\temp\server_log.txt

HOST_LIST:
{
    # IP Address    | Host name
    192.168.1.101   | AlphaClient
    192.168.1.102   | BetaClient
    192.168.1.103   | GammaClient
}
FieldDescription
PORTThe TCP port to send jobs to clients
EXECUTION_PATHFolder on clients where scripts will be saved and executed
LOG_FILELocal path where submitter writes job logs
HOST_LISTList of IP addresses (and optional hostnames) allowed to receive jobs

How to Run the Submitter

  1. Ensure the config file is placed in Config/
  2. Open terminal and run one of the following:
  3. Send a script file:
  4. dotnet run --project JobSubmitter.csproj -- -host 192.168.1.101 -i "C:\scripts\sample.bat"
  5. Send raw command:
  6. dotnet run --project JobSubmitter.csproj -- -host 192.168.1.101 -run "echo Hello from Submitter"
  7. Fetch system info of a client:
  8. dotnet run --project JobSubmitter.csproj -- -host 192.168.1.101 -info
  9. Test all hosts in config:
  10. dotnet run --project JobSubmitter.csproj -- -test

Security & Connectivity Notes

Receiver Overview

The Receiver is a lightweight TCP listener that runs on each client. It accepts scripts, saves and runs them, and returns a Process ID back to the submitter.

Receiver Configuration File (receiver.config)

PORT:1982
EXECUTION_PATH:C:\temp\batchjobs
LOG_FILE:C:\temp\server_log.txt
FieldDescription
PORTPort where this receiver listens for job requests
EXECUTION_PATHDirectory to save and run incoming scripts
LOG_FILEPath to write local logs of job activity

How to Run the Receiver

  1. Place receiver.configin the Config/directory.
  2. Compile or run the receiver project:
  3. dotnet run --project JobReceiver.csproj
  4. Ensure the machine IP is present in the submitter.configHOST_LIST

Security & Connectivity Notes

Summary

The Job Submitter and Receiver allow batch job orchestration across Windows and Linux hosts. Proper configuration of IP addresses, port access, and file paths ensures secure and efficient job execution.