scom 2016 step by step installation guide€¦ · the second and final step before installing the...

28
SCOM 2016 STEP BY STEP INSTALLATION GUIDE DANIELE CATANESI HTTP://BLOG.HELOCHECK.COM

Upload: others

Post on 09-Aug-2020

27 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

SCOM 2016 STEP BY STEP INSTALLATION

GUIDE

DANIELE CATANESIHTTP://BLOG.HELOCHECK.COM

Page 2: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

This small e-book aims to be a quick guide to help you deploy System Center Operations Manager 2016 from scratch.

The book assumes you will be deploying in a lab environment so some choices will be made that go against security best practices.

Book is not intended as in depth guide but wants to be an easy to follow guide to help you quickly deploy a new SCOM environment for learning purposes.

To follow along the book you will need the following:

• Virtualization Host• Windows 2016 ISO• SQL 2016 ISO• System Center Operations Manager 2016 ISO

ABOUT THE E-BOOK

i

Page 3: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

The first step to deploy System Center Operations Manager 2016 (SCOM) is installing the SQL for the OnePoint and data warehouse databases.

The version used to write this e-book is SQL 2016 Standard version. A fully functional 180 days trial can be downloaded from Microsoft website.

INSTALL SQL DATABASE SERVER

1

2

Page 4: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Once downloaded simply launch SQL setup and chose Installation / New SQL Server Stand-alone installation

Once accepted the license agreement SQL Setup program will check for updates which should be downloaded and installed

3

Page 5: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Next Install Rule checks will be run to warn you in case something with the server configuration would case setup to fail, you will most likely see a Warning message about Windows Firewall configuration which usually can be safely ignored.

In the Feature Installation page you need to select• Database Engine Services• Full-Text and Semantic Extractions for Search• Reporting Services - Native

4

Page 6: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

In the Instance Configuration page you chose to install on a default instance which fits most situations

In the Server Configuration make sure to set the Startup Type for Sql Service Agent service to Automatic, in a lab environment you can leave all other settings to their default values.

5

Note: While a full review of Default vs Named instances is out of scope you can read more at the following address https://msdn.microsoft.com/en-us/library/ms143531.aspx

Page 7: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

In the Database Engine Configuration at least specify the account used for installation as SQL Administrator. In my lab I already created required service accounts and groups so I have added them to the SQL Administrator.

6

Page 8: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Review the summary information making any change as necessary and finally click on Install

While not strictly necessary for SCOM functionality it is advisable to install SQL Management Studio which makes configuring database services much easier.

7

Page 9: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

SQL Management Studio is not part of the installation media anymore and needs to be downloaded separately. Clicking on the Install SQL Server Management Tools link will open a webpage where necessary components can be downloaded.

SQL Server Management tools can also be downloaded beforehand at this address.

SQL Server Management Tools is trivial so I will not cover it here, simply accept all defaults and click Next till setup is complete.

8

Page 10: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Before SCOM can be installed there are a number of prerequisites that need to be satisfied.

The first step is installing necessary Windows features and components leveraged by SCOM Server. I will start describing required service accounts and then move to the required Windows features.

SCOM SERVER INSTALLATION

2

9

Page 11: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

SCOM SERVICE ACCOUNTS CREATION

SCOM carries on tasks like agent installation, workflows, data access through authenticated user accounts. While some service accounts, like Run As ones, can be created after product is deployed there are some accounts that need to be created beforehand according to this list

10

ACCOUNT NAME DESCRIPTION LOCAL ADMIN ON

SCOM_DA SCOM Data Access Account SCOM and SQL Server

SCOM_AA SCOM Action Account SCOM and SQL Server

SCOM_SQL_WRITE SCOM SQL DB Write Account SQL Server

SCOM_SQL_READ SCOM SQL DB Read Account SQL Server

SQL_SA SQL Service Account SQL Server

SQL_SRRS Reporting Services Account SQL Server

SCOM_Admins SCOM Administrative Group SCOM Server

Page 12: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

If you don’t want to create Service Accounts manually I have created a script that will take care of this part for you.

You can find the post describing the script here or download it from TechNet gallery here.

The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell session and paste the following code, just keep in mind the server will automatically reboot

Once the server is back online you need to manually register ASP.Net

11

WINDOWS FEATURES INSTALLATION

Add-WindowsFeature Web-Server, Web-WebServer, Web-Common-Http, Web-Default-Doc, Web-Dir-Browsing, Web-Http-Errors, Web-Static-Content, Web-Health, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Performance, Web-Stat-Compression, Web-Security, Web-Filtering, Web-Windows-Auth, Web-App-Dev, Web-Net-Ext45, Web-Asp-Net45, Web-Asp-Net, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Mgmt-Tools, Web-Mgmt-Console, Web-Mgmt-Compat, Web-Metabase, NET-Framework-45-Features, NET-Framework-45-Core, NET-Framework-45-ASPNET, NET-WCF-Services45, NET-WCF-HTTP-Activation45, NET-WCF-TCP-PortSharing45, WAS, WAS-Process-Model, WAS-Config-APIs -restart

Page 13: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

O p e n a n e l e v a t e d c o m m a n d p r o m p t , c h a n g e t o the  %WINDIR%\Microsoft.NET\Framework64\v4.0.30319\ path and finally issue the aspnet_regiis.exe -r command followed by an IISRESET

Next you need to download SQL ReportViewer and SQL CRL Types. To install them simply click on the MSI file and click next till setup is complete.

It’s finally time to install SCOM, simply download the ISO file and, if necessary, extract binaries in a convenient location.

12

Page 14: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

To start SCOM installation double click the setup.exe file, as the installation wizard is straightforward I will just paste mages with my comments as necessary

13

INSTALL SCOM SERVER

Page 15: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

As this is a lab installation all components will be installed on the same server. This is usually not a best practice in a production environment where various roles/components are split among servers for redundancy and performance reasons

If there are issues with any of the prerequisites, if you followed up to this point that should not be the case, you will be asked to either join an existing Management Group or create a new one. Chose to create a new Management Group using a descriptive name

14

Page 16: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

15

Page 17: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

16

Page 18: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

In the Configure Operations Manager accounts use the accounts previously created manually or via my SCOM Service Account creation.

17

Page 19: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

18

Page 20: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Once installation is complete open the Operations console to confirm everything is working as intended

19

Page 21: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Also open the Services console to make sure all SCOM related services have been correctly started

Congratulations you just deployed a fully functional SCOM Server. Next steps would involve creating necessary Run-As accounts and importing Management Packs but that's material for another e-book.

20

Page 22: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Shortly after the publishing of this guide Microsoft made available, through the October updates release, SCOM 2016 Update Rollup 1.

This chapter will focus on the installation of Update Rollup 1 on a RTM SCOM deployment, details about the release and issues fixed can be found in KB3190029.

While installation can be carried on through Microsoft Update there are steps that still need to be manually executed for this reason in the ebook the whole manual

UPDATE ROLLUP 1 INSTALLATION

3

21

Page 23: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

installation procedure will be described which gives more control over the whole process.

Before describing the actual installation steps it is necessary to note the following requirements and best practices:

• Update Rollup installation must be performed as an administrator• SCOM Console should be closed before applying the update (this is to avoid

server’s reboot)• If User Account Control is enabled run the .msp file from an elevated command

prompt• The account used to install the update must have the System Administrator

rights both on the Operational and Data Warehouse Databases

Further to the above list Microsoft recommends installing the update as soon as possible after SCOM Deployment, while I have no hard proof of this I think it has to do with a compatibility issue between SCOM 2016 and October 2016 Cumulative Update for Windows Server 2016.

22

Page 24: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

ROLLUP UPDATE 1 INSTALLATION

The high level installation steps are as follows with point number 1 applying mainly to multi system deployments which should not the case in a lab environment

1. Update Rollup package should be installed in the following order on infrastructure servers

• Management Server(s)

• Web Console Server role

• Operations Console Role computer(s)

2. Apply SQL Script (described below) 3. Import Updated Management Packs4. Apply the nano agent update to manually installed agents or push the

installation from the Pending view in the Operations Console (this of course only applies if you’re using Nano servers)

Once ready to perform installation download necessary files from Microsoft Update Catalog

Update is multi-language which means when downloaded and extracted you will have multiple files with the various supported language files but of course you only need to install language files supported/needed in your deployment. I generally just delete unneeded files.

23

Page 25: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Open an elevated PowerShell or Command Prompt session, navigate to the folder where files have been downloaded and launch the .msp file (again order is management server, web console and operation console)

Installation will start but keep in mind there will be no success/failure message, I wonder if Microsoft will ever implement such feature for us mortals to know what’s going on, so just go through the installation of all update files.

Once all update files have been installed open SQL Management studio and run the script that can be found under %SystemDrive%\Program Files\System Center 2016\Operations Manager\Server\SQL Script for Update Rollups

Script needs to be run against the OperationsManager database and NOT the OperationsManagerDW one

24

Page 26: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Once the SQL Script has been executed successfully updated management packs need to be imported. Updated MPs can be found under %SystemDrive%\Program Files\Microsoft System Center 2016\Operations Manager\Server\Management Packs for Update Rollups\

Open the Operations Console and navigate to [Administration] / [Management Packs] right-click on the node and finally select Import Management Packs

25

Page 27: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

26

Page 28: SCOM 2016 STEP BY STEP INSTALLATION GUIDE€¦ · The second and final step before installing the SCOM Server is installing required Windows features. Simply open an elevated PowerShell

Now navigate to the Pending Management Node and update all server’s agents to the latest SCOM release.

Congratulations you’ve just updated your SCOM 2016 to Update Rollup1!

27