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.
The Submitter is a C# application that:
submitter.configPORT: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
}| Field | Description |
|---|---|
| PORT | The TCP port to send jobs to clients |
| EXECUTION_PATH | Folder on clients where scripts will be saved and executed |
| LOG_FILE | Local path where submitter writes job logs |
| HOST_LIST | List of IP addresses (and optional hostnames) allowed to receive jobs |
Config/dotnet run --project JobSubmitter.csproj -- -host 192.168.1.101 -i "C:\scripts\sample.bat"dotnet run --project JobSubmitter.csproj -- -host 192.168.1.101 -run "echo Hello from Submitter"dotnet run --project JobSubmitter.csproj -- -host 192.168.1.101 -infodotnet run --project JobSubmitter.csproj -- -testPORTHOST_LISTmust be reachable from the submitterThe 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.
PORT:1982
EXECUTION_PATH:C:\temp\batchjobs
LOG_FILE:C:\temp\server_log.txt| Field | Description |
|---|---|
| PORT | Port where this receiver listens for job requests |
| EXECUTION_PATH | Directory to save and run incoming scripts |
| LOG_FILE | Path to write local logs of job activity |
receiver.configin the Config/directory.dotnet run --project JobReceiver.csprojsubmitter.configHOST_LISTPORTin the firewallEXECUTION_PATHmust exist or will be created at runtimeThe 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.