Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_agent_unix.2.5.2.tar.gz' ` -Outfile /tmp/js7_agent_unix.2.5.2.tar.gz ./Install-JS7Agent.ps1 ` -Tarball /tmp/js7_agent_unix.2.5.2.tar.gz ` -HomeDir /home/sos/agent ` -HttpPort 4445 ` -JavaHome /opt/java/jdk-1117.0.2+9 ` -JavaOptions "-Xmx512m -Xms256m" ` -Restart ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # extracts the tarball to the Agent's home directory # specifies the Java version and Java options to be used # stops and starts the Agent from its instance start script <home>/bin/agent_4445.sh # operates the Agent for HTTP port 4445 |
...
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Agent.ps1 `
-HomeDir /home/sos/agent `
-HttpPort 4445 `
-ExecStart StartService `
-ExecStop StopService `
-NoInstall
# stops the Agent's systemd service should the Agent be running
# starts the Agent's systemd service |
Stop Agent Service
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Agent.ps1 `
-HomeDir /home/sos/agent `
-HttpPort 4445 `
-ExecStop StopService `
-NoInstall
# stops the Agent's systemd service should the Agent be running |
Patch from Download
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Agent.ps1 `
-Release 2.2.3 `
-Patch JS-1984 `
-HomeDir /home/sos/agent `
-ExecStart StartService `
-ExecStop StopService
# downloads the patch tarball from the SOS Web Site
# extracts the patch tarball to the Agent's home directory
# stores the patch files to the Agent's <home>/lib/patches sub-directory
# stops and starts the Agent's systemd service |
Patch from Tarball
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest `
-Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.tar.gz' `
-Outfile /tmp/js7_agent.2.2.3-PATCH.JS-1984.tar.gz
./Install-JS7Agent.ps1 `
-Tarball /tmp/js7_agent.2.2.3-PATCH.JS-1984.tar.gz `
-Patch JS-1984 `
-HomeDir /home/sos/agent `
-ExecStart StartService `
-ExecStop StopService
# downloads the patch tarball from the SOS Web Site using Invoke-WebRequest
# extracts the patch tarball to the Agent's home directory
# stores patch files to the Agent's <home>/lib/patches sub-directory
# stops and starts the Agent's systemd service |
Patch from .jar File
# starts the Agent's systemd service |
Stop Agent Service
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Agent.ps1 | ||||
Code Block | ||||
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.jar' \ -Outfile /tmp/js7_agent.2.2.3-PATCH.JS-1984.jar ./Install-JS7Agent.ps1 ` -PatchJar /tmp/js7_agent.2.2.3-PATCH.JS-1984.jar ` -Patch JS-1984 ` -HomeDir /home/sos/agent ` -ExecStartHttpPort StartService4445 ` -ExecStop StopService ` # downloads the patch .jar file from the SOS Web Site using Invoke-WebRequest-NoInstall # stores patch files tostops the Agent's <home>/lib/patches sub-directory # stops and startssystemd service should the Agent's systemdbe servicerunning |
Install Agent for Windows
...
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_agent_windows.2.5.2.zip' ` -Outfile C:\tmp\js7_agent_windows.2.5.2.zip ./Install-JS7Agent.ps1 ` -Tarball C:\tmp\js7_agent_windows.2.5.2.zip ` -HomeDir "C:\Program Files\sos-berlin.com\js7\agent" ` -Data "C:\ProgramData\sos-berlin.com\js7\agent_4445" ` -HttpPort 4445 ` -JavaHome "C:\Program Files\Java\jdk-1117.0.2+9" ` -JavaOptions "-Xmx512m -Xms256m" ` -Restart ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # extracts the tarball to the Agent's home directory # specifies the Java version and Java options to be used # stops and starts the Agent from its instance start script <home>\bin\agent_4445.cmd # operates the Agent for HTTP port 4445 |
...
Patch
Patch Agent for Unix
Patch from Download
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Agent.ps1 ` -Release 2.2.3 ` -Patch JS-1984 ` -HomeDir /home/sos/agent ` -HttpPort 4445 ` -ExecStart StartService ` -ExecStop StopService # downloads the patch tarball from the SOS Web Site # extracts the patch tarball to the Agent's home directory # stores the patch files to the Agent's <home>/lib/patches sub-directory # stops and starts the Agent's systemd service |
Patch from Tarball
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.tar.gz' ` -Outfile /tmp/js7_agent.2.2.3-PATCH.JS-1984.tar.gz ./Install-JS7Agent.ps1 ` -Tarball /tmp/js7_agent.2.2.3-PATCH.JS-1984.tar.gz ` -Patch JS-1984 ` -HomeDir /home/sos/agent ` -HttpPort 4445 ` -ExecStart StartService ` -ExecStop StopService # downloads the patch tarball from the SOS Web Site using Invoke-WebRequest # extracts the patch tarball to the Agent's home directory # stores patch files to the Agent's <home>/lib/patches sub-directory # stops and starts the Agent's systemd service |
Patch from .jar File
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.jar' ` -Outfile /tmp/js7_agent.2.2.3-PATCH.JS-1984.jar ./Install-JS7Agent.ps1 ` -PatchJar /tmp/js7_agent.2.2.3-PATCH.JS-1984.jar ` -Patch JS-1984 ` -HomeDir /home/sos/agent ` -HttpPort 4445 ` -ExecStart StartService ` -ExecStop StopService # downloads the patch .jar file from the SOS Web Site using Invoke-WebRequest # stores patch files to the Agent's <home>/lib/patches sub-directory # stops and starts the Agent's systemd service |
Patch Agent for Windows
Patch from Download
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Agent.ps1 ` -Release 2.2.3 ` -Patch JS-1984 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\agent" ` -HttpPort 4445 ` -ExecStart StartService ` -ExecStop StopService # downloads the patch tarball from the SOS Web Site # extracts the patch files to the Agent's <home>\lib\patches sub-directory # stops and starts the Agent's Windows service |
Patch from Tarball
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.tar.gz' ` -Outfile C:\tmp\js7_agent.2.2.3-PATCH.JS-1984.tar.gz ./Install-JS7Agent.ps1 ` -Tarball "C:\tmp\js7_agent_windows.2.2.3-PATCH.JS-1984.tar.zipgz" ` -Patch JS-1984 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\agent" ` -HttpPort 4445 ` -ExecStart StartService ` -ExecStop StopService # downloads the patch tarball from the SOS Web Site using Invoke-WebRequest # extracts patch files to the Agent's <home>\lib\patches sub-directory # stops and starts the Agent's Windows service |
Patch from .jar File
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.jar' ` -Outfile C:\tmp\js7_agent.2.2.3-PATCH.JS-1984.jar ./Install-JS7Agent.ps1 ` -JarPatchJar "C:\tmp\js7_agent.2.2.3-PATCH.JS-1984.jar" ` -Patch JS-1984 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\agent" ` -HttpPort 4445 ` -ExecStart StartService ` -ExecStop StopService # downloads the patch .jar file from the SOS Web Site using Invoke-WebRequest # stores the patch .jar file to the Agent's <home>\lib\patches sub-directory # stops and starts the Agent's Windows service |
...
Overview
Content Tools