Page History
...
Install or Update for separate Home and Data Directories
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
./Install-JS7Agent.ps1 ` -Release 2.5.2 ` -HomeDir /opt/sos-berlin.com/js7/agent ` -Data /var/sos-berlin.com/js7/agent ` -HttpPort 4445 ` -MakeDirs # downloads the release tarball from the SOS Web Site # suggests use of separate home and data directories for configuration data, log data etc. # creates the home and data directories if they do not exist # extracts the tarball to the Agent's home directory # populates the data directory from initial configuration files # operates the Agent for HTTP port 4445 |
Install or Update and Stop/Start using systemd
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 ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # extracts the tarball to the Agent's home directory # creates the Agent's systemd service # stops and starts the Agent's systemd service # operates the Agent for HTTP port 4445 |
Install or Update and Stop/Start using Individual Commands
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 ` -ExecStart "/home/sos/agent/bin/agent_4445.sh start" ` -ExecStop "/home/sos/agent/bin/agent_4445.sh stop" ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # extracts the tarball to the Agent's home directory # stops and starts the Agent by individual commands # operates the Agent for HTTP port 4445 |
Install or Update and Stop/Start using Instance Start Script
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 ` -Restart ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # extracts the tarball to the Agent's home directory # creates the Agent's systemd service # stops and starts the Agent from its instance start script <home>/bin/agent_4445.sh # operates the Agent for HTTP port 4445 |
Install or Update using Java Home and Java Options
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-11.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 |
...
Install or Update and Stop/Start using Windows Service
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\tmp\js7_agent_windows.2.5.2.tar.gz ` -HomeDir "C:\Program Files\sos-berlin.com\js7\agent" ` -Data "C:\ProgramData\sos-berlin.com\js7\agent_4445" ` -HttpPort 4445 ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # extracts the tarball to the Agent's home directory # creates the Agent's Windows service # stops and starts the Agent's Windows service # operates the Agent for HTTP port 4445 |
Install or Update and Stop/Start using Windows Service for specific Account
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\tmp\js7_agent_windows.2.5.2.tar.gz ` -HomeDir "C:\Program Files\sos-berlin.com\js7\agent" ` -Data "C:\ProgramData\sos-berlin.com\js7\agent_4445" ` -HttpPort 4445 ` -ServiceCredentials ( New-Object -typename System.Management.Automation.PSCredential -ArgumentList '.\sos', ( 'secret' | ConvertTo-SecureString -AsPlainText -Force) ) ` -MakeService ` -ExecStart StartService ` -ExecStop StopService ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # extracts the tarball to the Agent's home directory # creates the Agent's Windows service that is running in the local account '.\sos' using the password 'secret' # credentials can be specified in a number of ways # stops and starts the Agent's Windows service # operates the Agent for HTTP port 4445 |
Install or Update and Stop/Start using Instance Start Script
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\tmp\js7_agent_windows.2.5.2.tar.gz ` -HomeDir "C:\Program Files\sos-berlin.com\js7\agent" ` -Data "C:\ProgramData\sos-berlin.com\js7\agent_4445" ` -HttpPort 4445 ` -Restart ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # extracts the tarball to the Agent's home directory # stops and starts the Agent from its instance start script <home>\bin\agent_4445.cmd # operates the Agent for HTTP port 4445 |
Install or Update using Java Home and Java Options
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-11.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 |
...
Overview
Content Tools