Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepowershell
titleExample for use of Installation Script
./Install-JS7Agent.ps1 `
    -HomeDir "C:\Program Files\sos-berlin.com\js7\agent" `
    -Data "C:\ProgramData\sos-berlin.com\js7\agent_4445" `
    -Tarball "C:\js7\downloads\js7_agent_windows.2.5.2.zip" `
    -HttpPort localhost:4445 `
    -HttpsPort 44453 `
    -PrivateConf "C:\js7\templates\private.conf-template-agent" `
    -ControllerPrimaryCert "C:\js7\certs\wintest-primary-controller.crt" `
    -Keystore "C:\js7\keys\https-keystore.pfx" `
    -KeystorePassword "jobscheduler"('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) `
    -KeyAlias "wintest-primary-agent" ` 
    -Truststore "C:\js7\certs\https-truststore.pfx" `
    -TruststorePassword "jobscheduler"('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` 
    -ExecStart StartService `
    -ExecStop StopService `
    -MakeService `
    -MakeDirs

# Install the Agent from the indicated tarball
# Limits the HTTP port to the localhost network interface, make the HTTPS port available for any network interfaces
# Applies a template file for SSL/TLS related settings that is automatically updated from arguments to the installation script
# Specifies the server certificate location of the Controller to which the Agent is dedicated
# Makes use of a keystore in PKCS12 format with the given alias name and password and a truststore respectively

...