Showing posts with label Windows Server 8. Show all posts
Showing posts with label Windows Server 8. Show all posts

Saturday, March 10, 2012

Monitoring Windows Server 8 / 2012 BETA with SCOM 2012 Part 2

In Part 1 of this two part blog series, I walked through the process of installing the Windows Server 8 BETA onto a virtual Hyper-V machine. In this post, I'll describe how to install the SCOM 2012 agent onto it and show it being managed and monitored within the SCOM console.

Before you start on the SCOM side of things, a couple of points to note. The Windows Server 8 machine is best off being a member of an Active Directory domain as it avoids having to manually install the SCOM agent.

Note: It is a pre-requisite to have the .NET Framework 3.5 feature installed first before you go and install the agent. Quite a few people have been commenting (see below) on coming across errors with agent deployment and the solution is to install this feature.

Post Update 12.03.2012: A good friend of mine (whose technical opinion I've a lot of respect for), commented to me that there's no point in having this shiny new secure operating system if you're gonna go disabling the windows firewall and UAC on it as it wouldn't be something we'd do in a production environment anyway for obvious security reasons. I totally agree with him and put my initial suggestion of disabling both these security features down to a combination of eagerness to get the solution working and tiredness when I orginally wrote up the post. As a result, I've amended the following sections below that state there's a need to turn off the firewall and I've added in the correct steps to take to get it working in a secure and firewalled environment.

When I tried to initially install the SCOM agent on a vanilla install of Windows Server 8 (with the server in a domain)it failed. I had to turn of User Account Control first and then disable the Windows Firewall in the Windows Server 8 OS. The screens below show the UAC and firewall settings needed to make the agent install work. The reason for this failure was the secure out-of-box configuration of the windows firewall and some modifications need to be made to allow the agent to install.

You can leave User Account Control (UAC) turned on as it doesn't affect the agent deployment. The screens below show the windows firewall enabled and the default UAC setting within the Windows Server 8 Operating System.

Firewall turned on


UAC configured


To configure the Windows Server 8 firewall to allow the specific ports for SCOM 2012, open the Windows Firewall Advanced Configuration window from the control panel and then right mouse click on Inbound Rules to open the New Inbound Rule Wizard


Select Port from the first screen, then click Next


Select TCP and then type in the specific ports that you want to allow - in this example, I've used 5723,5724,80 and 51909 as I will most likely be installing the SCOM Console on this server at some point so want to provision for that now. Click Next once you're finished your selection.


Select All the connection, then click Next


Choose whether or not the rule applies to your domain, private or public profiles, then click Next


Type a description, then click Finish


At this point, you have your inbound rule created, but if you run the SCOM Agent installer wizard, you will receive an error message like the one below


The final step you need to take here (and this is what catches people out when trying to configure this-I know it caught me!), is to enable the already created rules for File and Print Sharing and WMI from within the Firewall Console. Although these rules are already existent in your firewall configuration, they are disabled by default and need to be turned on for the SCOM push installer to actually run.

The screen below shows the File and Print Sharing rules to be enabled


This screen shows the WMI rules that need to be enabled


Note: If you want a full list of all the required ports that SCOM needs, check out this link for more information-paying particular attention to the 'Operations Manager Feature Firewall Exceptions' section: http://technet.microsoft.com/en-us/library/hh205990.aspx

Once you have UAC and the firewall turned off configured the firewall with the relevant ports allowed, you can then start the installation of the SCOM agent.

To begin installing the SCOM agent, click on the Administration tab in the SCOM console and then select the 'Discovery Wizard' option located at the menu on the left hand side.

This will open up the 'Computer and Device Management Wizard' as shown below. Select Windows Computers and click Next


Leave the discovery at Servers and Clients and choose your SCOM management server, then click Next


Either type the name of your Windows Server 8 or browse for it in the following screen, then click Next


Type the credentials for a domain admin account and then click Next


If the credentials you entered are correct and your firewall and UAC are disabled, you should see the computer object being discovered by the wizard. Just click on the server name and then select Next to continue


Leave the settings in the screen below as they are and click Finish


The Agent Management Task Status window should display a Success message if all went well with the deployment as below


If we wait a few minutes for discovery, we can then see the Windows Server 8 object in the Operations Manager Agent Managed console view as below


We can also see it in the Monitoring tab of the console showing a health state (hopefully!)


To demonstrate some of the custom tasks I have running against the Windows Server 8 agent, I need to enable the Remote Desktop Protocol (RDP) on the new server. This can be enabled from the new Server Manager window by clicking on the 'Remote Desktop' link as below


We can now enable RDP for the new Windows Server 8 as shown


Once RDP is enabled on the server, back in the SCOM console at the Monitoring tab, if I click on an alert that is relevant to the new Windows Server 8 machine, I will see my custom '01-Run Remote Desktop' task in the Actions pane on the right hand side. If I click on the alert, then select this action,


I should get prompted for my credentials to initiate an RDP session and then it'll logon to the new server as the screen below shows


Obviously, there will be a number of things not working on this agent and when we go into the Health Explorer for it, we can see that all of the Operating System rollups are in a Not Monitored state. This is to be expected when we haven't yet got a management pack released for Windows Server 8.



This concludes the installation of Windows Server 8 and the deployment of the SCOM 2012 agent to it. Hopefully you've enjoyed this short exploratory series!

Monitoring Windows Server 8 BETA with SCOM 2012 Part 1

When I heard last week that the brand new Windows Server 8 CTP (BETA) was released, I knew I had to do two things this weekend for sure. One was to download the BETA and try it out and the second was to try and configure System Center 2012 Operations Manager (SCOM 2012) to monitor and manage it. Thankfully, I've just finished configuring this scenario and surprisingly enough, it works quite well!

It goes without saying that as both products are currently BETA, that this IS NOT a supported configuration by Microsoft and is for lab/curiosity purposes only!
I've cut this blog posting into two parts due to the screenshots involved. In this first part, I'll walk through the install of Windows Server 8 BETA and the second part I'll go through the installation of the SCOM agent and demonstrate what is being monitored and some custom tasks running against it.

First up, download the Windows Server 8 BETA from the link below-you'll need to register with a Live ID:

http://technet.microsoft.com/en-us/evalcenter/hh670538.aspx?ocid=&wt.mc_id=TEC_108_1_33

Once you have the ISO downloaded, fire up your lab Hyper-V server (you are using Hyper-V right...?), create a new virtual machine with nominal resources (Windows Server 8 doesn't require an extra heavy spec as a minimum configuration for a lab environment - I'm using a VM with 2GB RAM and 1 CPU with a dynamic hard disk on local storage). When you have the VM created, attach the Windows Server 8 BETA ISO file and start it up.

The following screenshots show the Windows Server 8 BETA install:

Select your language, then click Next from the screen below


Click Install Now


Select the type of OS install you want - either Core or GUI based, then click Next


Select Custom install to start a fresh build


Accept the defaults and click Next from the screen below


Chill out for a few minutes while looking at this strange fish graphic as the OS is installing!


Once the OS is installed, we have our first glimpse of Windows Server 8. As I'm still using the old skool style keyboard and mouse (the Windows 8 client is built on touch and I'm presuming the server OS will follow suit), type your new admin password and hit ENTER


Check out the new CTRL+ALT+DEL screen to sign in now! (and yes, it is nearly 23:00 at night while I'm putting this post together!)


Input in your new admin password to logon


When it logs on, you'll be presented with the new Server Manager dashboard as below. If you're familiar with Windows Server 2008, then you'll figure this out pretty easily. I'm loving the new UI though!


No more traditional Start menu button for this release. If you click on the icon down the bottom left hand side of the screen (where the traditional Start menu button always was), you will open up the Server Manager menu from the screen above. If you hit the 'Windows' key on your keyboard, you'll be presented with the Start screen as shown below which includes 'Tiles' to navigate around with.


This concludes part 1 of this short series. In Part 2, I'll deploy the SCOM 2012 agent to the new Windows 8 server and demonstrate what we can do with it once it's installed.