Step by Step Gateway Server Installation - SCOM 2016
Step by Step Gateway Server Installation - SCOM 2016
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
In our previous article, we have learnt how to discover and monitor Workgroup / DMZ servers in SCOM
using certificate authentication. However, imagine yourself in a situation wherein you have many
Workgroup / DMS servers to be monitored or you have high latency between your Management Server
and the Agent Managed Servers. What will you do?
To reduce this administrative overhead and to avoid this latency situation, Operations Manager has a
server role called the Gateway Server. Gateway servers are located within the trust boundary of the
agents and can participate in the mandatory mutual authentication. Because they lie within the same
trust boundary as the agents, the Kerberos V5 protocol for Active Directory is used between the agents
and the Gateway Server. Each agent then communicates only with the gateway servers that it is aware
of and the Gateway Servers communicate with the management servers.
The following illustration shows the authentication relationships in a management group using a
Gateway Server.
Note: We can install a Gateway Server within trusted boundary of Management Sever as well. Mostly
we choose this option if there’s a network bandwidth issue between Agents and the Management
Server.
In our demo, we will make a cross-domain server (testdomain.com) running on Windows Server 2012 R2
the Gateway Server. Our SCOM Management Server has SCMVP.COM domain.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
1: Login on to the SCOM Management Server and open Certificate Server Web site.
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
TIP: Create a folder on the computer and save all the certificates in that folder.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
NOTE: Requesting a certificate for SCOM Management Server will be one time task. That means, you
don’t need to request the certificate for SCOM Management Server every time you are configuring
Gateway Server or discovering a Workgroup / cross-domain server. You just need to request one
certificate for the Gateway Server.
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Note: If you provide server hostname instead of FQDN, authentication will not happen and the
certificate will be useless. So, provide only full computer name of the target server for which you are
requesting the certificate.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Now, we need to export the certificate from user personal store to the Certificate folder we created.
Exporting certificates
1: Login on to SCOM Management Server and open MMC (Microsoft Management Console).
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
5: Click OK button.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Here you will find both the installed certificates. We need to export both the certificates from there to
the Certificate folder we created.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
7: Right click the SCOM Management Server certificate, click All Tasks and click Export.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
8: Click Next.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
9: Select Yes, export the private key option and click Next.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
10: Select Export all extended properties option and click Next.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
12: Provide a suitable name to the certificate and click Save button by selecting the preferred location.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Now, follow the same process to export the second certificate we installed for Gateway Server.
The exported certificates should be visible under the destination folder we selected while exporting the
certificate.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Now since we have got the certificates for both our SCOM Management Server and the Gateway Server,
it’s time to install them.
Note: Requesting and installing the certificate on SCOM Management server is a one time task. So, you
don’t need to install the certificate on SCOM Management server if you have already installed it before.
2: Copy the MOMCertImport application to the same location where we saved the certificates.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
You can find MOMCertImport application under Supported Tools in SCOM installation media.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
4: Navigate to the Certificates folder where we placed MOMCertImport application and SCOM
Management server certificate.
MOMCertImport.exe <certificatename.pfx>
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Certificate installation on SCOM Management Server is done. Let’s run Gateway Approval Tool on SCOM
Management Server.
• Microsoft.EnterpriseManagement.GatewayApprovalTool
• Microsoft.EnterpriseManagement.GatewayApprovalTool.exe
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
3: Paste both the files under below location on SCOM Management Server:
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
5: Navigate to the Server folder. (Where we copied the Gateway Approval Tool).
Microsoft.EnterpriseManagement.gatewayApprovalTool.exe
/ManagementServerName=<managementserverFQDN> /GatewayName=<GatewayFQDN>
/Action=Create
After running the command, you should get The approval of the server <GatewayFQDN> completed
successfully message.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
The Gateway Server should reflect under Management Servers tab with Not monitored state in SCOM
console.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Now let’s move to Gateway Server and perform required tasks on the server.
Before we start, move the cert chain, Client Server certificate and MOMCertImport application to the
Gateway Server.
In our case, we have saved the certificate file certchain.p7b under C:\Certs\
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
After running it, you can see the cert appear in the MMC within Trusted Root Certification Authorities.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Once the cert chain import is done. It’s time to install the Gateway Server role on the server.
Gateway Server role installation is almost same as the SCOM Agent installation, you just need to select
below option to perform the installation trough GUI.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
We will perform the Gateway Server role installation through Command Prompt.
3.Run the following command, where path\Directory is the location of the Momgateway.msi, and
path\Logs is the location where you want to save the log file. Momgateway.msi can be found in the
Operations Manager installation media.
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
The installation may take few seconds to complete, you can check the GatewayInstall logs for successful
installation.
Also, you can check if the System Center 2016 – Operations Manager Gateway is reflecting under
Program and Features on Gateway Sever.
The service name for Gateway Server will be same as SCOM Agent: Microsoft Monitoring Agent
(HealthService).
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
2: Navigate to the Certificates folder where we placed MOMCertImport application and Gateway Server
certificate.
MOMCertImport.exe <certificatename.pfx>
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
6: Open SCOM console and check the Gateway Server status under Management Serves tab.
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/
Final Step, Open Gateway Management Server Properties and enable Server Proxy option under Security
tab.
That’s it.
You can now use this Gateway Server to discover and monitor serves in your SCOM environment.
SHASHI BHUSHAN
http://systemcentermvp.com/2017/10/05/step-step-gateway-server-installation-scom-2016/