Page History
...
The patch examples will not impact an Agent installation and are used for instructional purposes only. For details see JS-1984.
Note: The Agent has to be stopped before applying patches.
Applying Patch on Unix
Manual Patching
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
@rem invoke Windows shell and switch to the user account that owns the Agent's home directory @rem navigate to the home directory for patches cd %ProgramFiles%\sos-berlin.com\js7\agent\lib\patches @rem download from URL https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.tar.gz @rem copy from download location (could be different from this example) copy %USERPROFILE%\Downloads\js7_agent.2.2.3-PATCH.JS-1984.tar.gz . @rem extract the .tar.gz patch archive that includes .jar files tar.exe -xfxzf js7_agent.2.2.3-PATCH.JS-1984.tar.gz @rem remove the .tar.gz patch archive del js7_agent.2.2.3-PATCH.JS-1984.tar.gz |
Automated Patching
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# invoke PowerShell and switch to the user account that owns the Agent's home directory # download from URL Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.jar' ` -Outfile js7_agent.2.2.3-PATCH.JS-1984.jar # apply the patch ./Install-JS7Agent.ps1 ` -PatchJar js7_agent.2.2.3-PATCH.JS-1984.jar ` -Patch JS-1984 ` -HomeDir $env:ProgramFiles\sos-berlin.com\js7\agent ` -HttpPort 4445 |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
# invoke PowerShell and switch to the user account that owns the Agent's home directory # download from URL Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.tar.gz' ` -Outfile js7_agent.2.2.3-PATCH.JS-1984.tar.gz # apply the patch /Install-JS7Agent.ps1 ` -Tarball js7_agent.2.2.3-PATCH.JS-1984.tar.gz ` -Patch JS-1984 ` -HomeDir $env:ProgramFiles\sos-berlin.com\js7\agent ` -HttpPort 4445 |
...
Note: The Agent instance has to be restarted to apply patches.
Note: Users are discouraged from using tools such as 7-Zip to extract the patch archive in case of manual patching. Instead, use the tools available from the OS as indicated by the examples. Do not create a sub-folder from the archive name but extract directly to the directory hierarchy as indicated above.
Hint: For automated rollout of patches see JS7 - Automated Installation and Update.
...