Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Joc.ps1 ` -HomeDir /home/sos/joc ` -HttpsPort 4446 ` -JavaHome /opt/java/jdk-11.0.2+9 ` -Keystore /home/sos/joc-deployment/https-keystore.p12 ` -KeystorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -Truststore /home/sos/joc-deployment/https-truststore.p12 ` -TruststorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -ExecStart StartService ` -ExecStop StopService ` -NoInstall # performs no installation but certificate renewal only # addresses an existing JOC Cockpit instance operated for HTTPS port 4446 # deploys keystore and truststore files # stops and starts JOC Cockpit by its systemd service |
...
Start JOC Cockpit
...
Service
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Joc.ps1 ` -Release 2.5.2HomeDir /home/sos/joc ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc"-HttpPort 4446 ` -Data "C:\ProgramData\sos-berlin.com\js7\joc"ExecStart StartService ` -HttpPortExecStop 4446StopService ` -DBMSConfig C:\js7\joc-deployment\hibernate.cfg.xml NoInstall ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` -AsUser ` -MakeDirs # installs JOC Cockpit for the current user account # requires that the user creates a hibernate.cfg.xml file for database access prior to installation # specifies the Java home location # downloads the JOC Cockpit release tarball from the SOS Web Site # creates the home and data directories if they do not exist # extracts the tarball and runsNoConfig # stops the JOC Cockpit's systemd service if JOC Cockpit is running # starts the JOC Cockpit's systemd service |
Stop JOC Cockpit Service
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Joc.ps1 ` -HomeDir /home/sos/joc ` -HttpPort 4446 ` -ExecStop StopService ` -NoInstall ` -NoConfig # stops the JOC Cockpit's installer # operates JOC Cockpit for HTTP port 4446 |
Note:
- For details about Hibernate configuration files see JS7 - Database
systemd service |
Install JOC Cockpit for Windows
Install or Update from Download using
...
individual Database
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://repo1.maven.org/maven2/com/h2database/h2/1.4.200/h2-1.4.200.jar' ` -Outfile C:\tmp\h2-1.4.200.jar ././Install-JS7Joc.ps1 ` -Release 2.5.2 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -HttpPort 4446 ` -DBMSConfig H2 ` -DBMSDriver C:\tmpjs7\h2joc-1deployment\hibernate.4cfg.200.jarxml ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` -AsUser ` -MakeDirs # downloadsinstalls theJOC H2Cockpit embeddedfor databasethe fromcurrent Maven Central using Invoke-WebRequestuser account # requires downloadsthat the user creates JOC Cockpit release tarball from the SOS Web Sitea hibernate.cfg.xml file for database access prior to installation # specifies the built-inJava H2 configuration to be used and the location ofhome location # downloads the JDBCJOC DriverCockpit .jar file # specifiesrelease tarball from the JavaSOS homeWeb locationSite # creates the home and data directories if they do not exist # extracts the tarball and runs the JOC Cockpit installer # operates JOC Cockpit for HTTP port 4446 |
Note:
- For details about Hibernate configuration files see JS7 - Database
Install or Update from
...
Download using
...
embedded Database
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://downloadrepo1.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zipmaven.org/maven2/com/h2database/h2/1.4.200/h2-1.4.200.jar' ` -Outfile C:\tmp\js7_joc_windows.2.5.2.ziph2-1.4.200.jar ./Install-JS7Joc.ps1 ` -Tarball C:\tmp\js7_joc_windows.Release 2.5.2.zip ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -HttpPort 4446 ` -DBMSConfig H2 ` -DBMSDriver C:\js7tmp\joc-deployment\hibernate.cfg.xml ` h2-1.4.200.jar ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` -AsUser ` -MakeDirs # downloads the H2 embedded database from Maven Central using Invoke-WebRequest # downloads the JOC Cockpit release tarball from the SOS Web Site # specifies the Javabuilt-in homeH2 location #configuration createsto thebe homeused directory if it doesand the location of the JDBC Driver .jar file # specifies the Java home location # creates the home and data directories if they do not exist # extracts the tarball and runs the JOC Cockpit installer # operates JOC Cockpit for HTTP port 4446 |
Install or Update from
...
Tarball using individual database
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Joc.ps1Invoke-WebRequest ` -Releae Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zip' ` -HomeDirOutfile "C:\Program Files\sos-berlin.com\js7\joc"tmp\js7_joc_windows.2.5.2.zip ./Install-JS7Joc.ps1 ` -Tarball C:\tmp\js7_joc_windows.2.5.2.zip ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -HttpPort 4446 ` -DBMSConfig C:\js7\joc-deployment\hibernate.cfg.xml ` -LicenseKey C:\js7\joc-deployment\example.pem ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` -AsUser ` -MakeDirs # installsdownloads JOCthe CockpitH2 forembedded the current user accountdatabase from Maven Central using Invoke-WebRequest # requires thatdownloads the userJOC createsCockpit a hibernate.cfg.xml file for database access prior to installation # specifiesrelease tarball from the locationSOS of the JS7 license keyWeb Site # specifies the Java home location # downloads the JOC Cockpit release tarball from the SOS Web Site # creates the home directory if it does not exist # extracts the tarball and runs the JOC Cockpit installer # operates JOC Cockpit for HTTP port 4446 |
Install or Update from
...
Download with Commercial License
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest./Install-JS7Joc.ps1 ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zip' Releae 2.5.2 ` -OutfileHomeDir "C:\tmpProgram Files\sos-berlin.com\js7_joc_windows.2.5.2.zip Invoke-WebRequest\joc" ` -UriData 'https://download."C:\ProgramData\sos-berlin.com/JobScheduler.2.5/js7-license.jar'\js7\joc" ` -HttpPort 4446 ` -OutfileDBMSConfig C:\tmpjs7\js7joc-license.jar ./Install-JS7Joc.ps1deployment\hibernate.cfg.xml ` -TarballLicenseKey C:\tmpjs7\js7_joc_windows.2.5.2.zipjoc-deployment\example.pem ` -HomeDirJavaHome "C:\Program Files\Java\sosjdk-berlin.com\js7\joc11.0.2+9" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -HttpPort 4446 ` -DBMSConfig C:\js7\joc-deployment\AsUser ` -MakeDirs # installs JOC Cockpit for the current user account # requires that the user creates a hibernate.cfg.xml ` file for database access -LicenseKey C:\js7\joc-deployment\example.pem ` -LicenseBin C:\tmp\js7-license.jar ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` -AsUser ` -MakeDirs prior to installation # specifies the location of the JS7 license key # specifies the Java home location # downloads the JOC Cockpit release tarball from the SOS Web Site using Invoke-WebRequest # downloadscreates the binaryhome filedirectory forif licensedit codedoes tonot enableexist # clusterextracts operationsthe using Invoke-WebRequest # specifies the location of the JS7 license key and of the .jar file for licensed binary code # specifies the Java home location # creates the home directory if it does not exist # extracts the tarball and tarball and runs the JOC Cockpit installer # operates JOC Cockpit for HTTP port 4446 |
Install or Update
...
from Tarball with Commercial License
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zip' ` -Outfile C:\tmp\js7_joc_windows.2.5.2.zip Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7-license.jar' ` -Outfile C:\tmp\js7-license.jar ./Install-JS7Joc.ps1 ` -Tarball C:\tmp\js7_joc_windows.2.5.2.zip ` -HomeDir "C:\Program -ClusterId joc ` -InstanceId 1 ` -Title "Secondary JOC Cockpit" ` -HomeDir "C:\Program Files\sos-berlinFiles\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -HttpPort 4446 ` -DBMSConfig C:\js7\joc-deployment\hibernate.cfg.xml ` -LicenseKey C:\js7\joc-deployment\example.pem ` -LicenseBin C:\tmp\js7-license.jar ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` -AsUser ` -MakeDirs # downloads the JOC Cockpit release tarball from the SOS Web Site using Invoke-WebRequest # downloads the binary file for licensed code to enable cluster operations using Invoke-WebRequest # specifies the Clusterlocation of IDthe thatJS7 islicense thekey sameand forof allthe JOC.jar Cockpitfile instancesfor inlicensed abinary clustercode # specifies the Instance ID that is a number between 0 and 99: # Instance IDs specify the ordering of JOC Cockpit icons in the Dashboard # the first JOC Cockpit started becomes the active node in a cluster independent from its Instance ID # specifies the title that acts as a caption for JOC Cockpit icons in the Dashbaord # specifies the location of the JS7 license key and of the .jar file for licensed binary code Java home location # creates the home directory if it does not exist # extracts the tarball and runs the JOC Cockpit installer # operates JOC Cockpit for HTTP port 4446 |
Install or Update Secondary JOC Cockpit Instances for Cluster Operations
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest `
-Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zip' `
-Outfile C:\tmp\js7_joc_windows.2.5.2.zip
Invoke-WebRequest `
-Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7-license.jar' `
-Outfile C:\tmp\js7-license.jar
./Install-JS7Joc.ps1 `
-Tarball C:\tmp\js7_joc_windows.2.5.2.zip `
-ClusterId joc `
-InstanceId 1 `
-Title "Secondary JOC Cockpit" `
-HomeDir "C:\Program Files\sos-berlin.com\js7\joc" `
-Data "C:\ProgramData\sos-berlin.com\js7\joc" `
-HttpPort 4446 `
-DBMSConfig C:\js7\joc-deployment\hibernate.cfg.xml `
-LicenseKey C:\js7\joc-deployment\example.pem `
-LicenseBin C:\tmp\js7-license.jar `
-JavaHome "C:\Program Files\Java\jdk-11.0.2+9" `
-AsUser `
-MakeDirs
# downloads the JOC Cockpit release tarball from the SOS Web Site using Invoke-WebRequest
# downloads the binary file for licensed code to enable cluster operations using Invoke-WebRequest
# specifies the Cluster ID that is the same for all JOC Cockpit instances in a cluster
# specifies the Instance ID that is a number between 0 and 99:
# Instance IDs specify the ordering of JOC Cockpit icons in the Dashboard
# the first JOC Cockpit started becomes the active node in a cluster independent from its Instance ID
# specifies the title that acts as a caption for JOC Cockpit icons in the Dashbaord
# specifies the location of the JS7 license key and of the .jar file for licensed binary code
# specifies the Java home location
# creates the home directory if it does not exist
# extracts the tarball and runs the JOC Cockpit installer
# operates JOC Cockpit for HTTP port 4446 |
Install or Update from Tarball using a Response Directory
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zip' ` -Outfile C:\tmp\js7_joc_windows.2.5.2.zip ./Install-JS7Joc.ps1 ` -Tarball C:\tmp\js7_joc_windows.2.5.2.zip ` -ResponseDir C:\js7\joc-deployment\response ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -HttpPort 4446 ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` -AsUser ` -MakeDirs # downloads the JOC Cockpit release tarball from the SOS Web Site using Invoke-WebRequest # specifies a response directory that holds # the joc_install.xml file for installation options such as the HTTP Port # the hibernate.cfg.xml configuration file for database access # specifies the Java home location # creates the home theand homedata directorydirectories if itthey doesdoe not exist # extracts the tarball and runs the JOC Cockpit installer # operates JOC Cockpit for HTTP port 4446 |
Note:
- For details about the joc_install.xml response file see JS7 - JOC Cockpit - Headless Installation on Linux and Windows
- For details about Hibernate configuration files see JS7 - Database
Install or Update
...
and Stop/Start using Windows Service
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zip' ` -Outfile C:\tmp\js7_joc_windows.2.5.2.zip ./Install-JS7Joc.ps1 ` -Tarball C:\tmp\js7_joc_windows.2.5.2.zip ` -ResponseDirHomeDir "C:\Program Files\sos-berlin.com\js7\joc-deployment\response" ` -HomeDirData "C:\Program FilesProgramData\sos-berlin.com\js7\joc" ` -HttpPort 4446 -HttpPort 4446 ` -DBMSConfig C:\js7\joc-deployment\hibernate.cfg.xml ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` -AsUserExecStart StartService ` -MakeDirs # downloads the JOC Cockpit release tarball from the SOS Web Site using Invoke-WebRequest # specifies a response directory that holds # the joc_install.xml file for installation options such as the HTTP Port # the hibernate.cfg.xml configuration file for database access # specifies the Java home locationExecStop StopService ` -MakeService ` -AsUser ` -MakeDirs # downloads the JOC Cockpit release tarball from the SOS Web Site using Invoke-WebRequest # creates the home and datadirectory directories if theyit doedoes not exist # extracts the tarball and runs the JOC Cockpit installer # creates the JOC Cockpit's systemd service # stops and starts the JOC Cockpit's systemd service # operates JOC Cockpit for HTTP port 4446 |
Note:
- For details about the joc_install.xml response file see JS7 - JOC Cockpit - Headless Installation on Linux and Windows
- For details about Hibernate configuration files see JS7 - Database
Install or Update and
...
Apply Certificates for HTTPS Connections
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zip' ` -Outfile C:\tmp\js7_joc_windows.2.5.2.zip ./Install-JS7Joc.ps1 ` -Tarball C:\tmp\js7_joc_windows.2.5.2.zip ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -HttpPortHttpsPort 4446 ` -DBMSConfig C:\js7\joc-deployment\hibernate.cfg.xml ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` ` -Keystore C:\js7\joc-deployment/https-keystore.pfx ` -KeystorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -Truststore C:\js7\joc-deployment\https-truststore.pfx ` -TruststorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -AsUser ` -MakeDirs # downloads the JOC Cockpit release tarball from the SOS Web Site using Invoke-WebRequest # creates the home directory if it does not exist # extracts the tarball and runs the JOC Cockpit installer # deploys keystore and truststore files # creates the JOC Cockpit's systemd service # stops and starts the JOC Cockpit's systemd by its Windows service # operates JOC Cockpit for HTTPHTTPS port 4446 |
...
Renew Certificates for HTTPS Connections
Code Block | ||||
---|---|---|---|---|
| ||||
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_windows.2.5.2.zip ` -Outfile C:\tmp\js7_joc_windows.2.5.2.zip ./Install-JS7Joc.ps1 ` -Tarball C:\tmp\js7_joc_windows.2.5.2.zip ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -HttpsPort 4446 ` -DBMSConfig C:\js7\joc-deployment\hibernate.cfg.xml ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9" ` ` -Keystore C:\js7\joc-deployment/https-keystore.pfx ` -KeystorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -Truststore C:\js7\joc-deployment\https-truststore.pfx ` -TruststorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -AsUser ` -MakeDirs # downloads the JOC Cockpit release tarball from the SOS Web Site using Invoke-WebRequestNoInstall # createsperforms theno homeinstallation directorybut ifcertificate itrenewal doesonly # notaddresses exist #an extractsexisting theJOC tarballCockpit andinstance runsoperated thefor JOCHTTPS Cockpitport installer4446 # deploys keystore and truststore files # creates the systemd service # stops and starts JOC Cockpit by its Windows service # operates JOC Cockpit for HTTPS port 4446 |
...
Start JOC Cockpit Service
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Joc.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc"HttpPort 4446 ` -HttpsPortExecStart 4446StartService ` -JavaHome "C:\Program Files\Java\jdk-11.0.2+9"-ExecStop StopService ` -Keystore C:\js7\joc-deployment/https-keystore.pfx -NoInstall ` -KeystorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -Truststore C:\js7\joc-deployment\https-truststore.pfx ` -TruststorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -ExecStart StartServiceNoConfig # stops the JOC Cockpit's Windows service if JOC Cockpit is running # starts the JOC Cockpit's Windows service |
Stop JOC Cockpit Service
Code Block | ||||
---|---|---|---|---|
| ||||
./Install-JS7Joc.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -HttpPort 4446 ` -ExecStop StopService ` -NoInstall # performs no installation but certificate renewal only # addresses an existing JOC Cockpit instance operated for HTTPS port 4446 # deploys keystore and truststore files ` -NoConfig # stops andthe starts JOC Cockpit by its's Windows service |
Patch
Patch JOC Cockpit for Linux
...
Overview
Content Tools