Use PowerShell cmdlets with OMS Gateway
You can make use of PowerShell to review and modify the OMS Gateway configuration settings. The OMS Gateway PowerShell module should get imported in the OMS Gateway server(s) upon installation of the OMS Gateway feature. You can always verify this by importing the module to confirm:
Import-Module OMSGateway
Once you confirm that the OMS Gateway has been imported, you can also verify your OMS Gateway configuration for the listening port, log level, and other settings:
Get-OMSGatewayConfig
To make changes to the OMS Gateway configuration using PowerShell, you can make use of the Set-OMSGatewayConfig cmdlet. For instance, to change the port on which the OMS Gateway is listening, you can execute the following command:
Set-OMSGatewayConfig -Name ListenPort -Value [port]
In the preceding command, [port] is the integer value of your desired port on which the OMS Gateway listens.
At this time, the Set-OMSGatewayConfig cmdlet supports the following configuration names:
- ListenPort
- LogLevel
- IncirporatedOMSSolution
- UseIpv6
- IncorporatedScomSupport