SCOM 2012 IPD guide is in beta

SCOM, System Center, SCOM Tricks, SCOM 2012 Send feedback »

The Infrastructure Planning and Design guides (IPD) are always a great resource when working through designs for implementations of all kinds of products and solutions. CUrrently the team is working on the IPD guide for SCOM 2012.

They have released it as a beta version on Connect, giving you the opportunity to read it and react to it.

You can find this beta on the Solution Accelerators connect site over here.

Update 13 November 2012: the IPD has been released.

Enjoy!
Bob Cornelissen

Vacation is over for me

Uncategorized Send feedback »

It has been quiet for a while on my blog due to several reasons. Some work related things, authoring of the Mastering System Center 2012 Operations Manager, and of course also going to my second home in Thailand.

But I will be picking it up again from now. There is always a lot of good stuff going on and things to write about.

Checking if CU6 for SCOM 2007 R2 has been applied successfully

SCOM, System Center, SCOM Tricks Send feedback »

As I explained in the previous post on how to check for CU5 installation on SCOM 2007 R2, the way to check for successfull implementation of Cumulative updates has come up as questions in the community a number of times and I found a need as well to have this scripted. So I created a number of scripts for SCOM 2007 R2 CU5 which I discuss in the other blog post here. The method for CU6 is exactly the same as mentioned in that article with two differences.

  • The names of the scripts are with a 6 in it :idea:
  • The scripts are located on another TechNet Gallery page (see below for the link)

Refer to the post on CU5 check scripts for SCOM 2007 R2 on the procedure and screenshot.

This is the link to the TechNet Gallery page where the CU6 check for SCOM 2007 R2 is located.

Good luck and enjoy!
Bob Cornelissen

Checking if CU5 for SCOM 2007 R2 has been applied successfully

SCOM, System Center, SCOM Tricks 3 feedbacks »

During the past year I have seen several requests from people in the community on how they can check if their servers have successfully applied a certain Cumulative Update. Lately I had a requirement to create some test scripts to determine if CU5 has been applied for the RMS (including SQL scripts and management pack import), Management servers, gateways and web console servers. So I set out to create scripts for this and make them general enough to share. :idea:

As you probably know its much easier to have a quick check for agent updates from the SCOM console. I did not include the ACS server check for the moment. This post and set of scripts is specifically for CU5, but I will post the same for CU6 today in another post. Idea is the same, scripts are on a different link. The scripts can not cover a 100% of all possible things to check, but I think we get far enough this way B)

Thus far I have tested the scripts in a few environments and have generalized them as much as possible, finding information we need from the system itself. I am sure others with more PowerShell skills can do this in fewer lines of code, but I have tried my best. Any comments are welcome of course.

The CU5 check scripts for SCOM 2007 R2 are in a zip file on the TechNet Gallery to be found through this link.

  1. You download the zip file and extract it somewhere on the machine you want to check (RMS, MS, GW, Web).
  2. Log onto the machine with the account you used to install the CU. Reason is that the script is trying to find the CU install log files in the temp folder in your profile, if it can not find it there it will give an error and skip to the next checking steps.
  3. Open an elevated command prompt en go to the folder where the scripts are located.
  4. Run one of the .cmd files belonging to the server role you have installed:
    TestSCOMRootMSCU5.cmd for the RMS (This also checks the SQL scripts and MP import you did right after RMS upgrade)
    TestSCOMMSCU5.cmd for a Management Server (not the RMS)
    TestSCOMGWCU5.cmd for a Gateway
    TestSCOMWebCU5.cmd for a Web Console server
    If you run the Web Console on a management server or the RMS than you simply run both scripts needed for that machine.
  5. Check the output for Errors. I have made the scripts stop after it found an error in some stage, except if it can not find the install log files. Errors are marked with [ERROR] and are in red. Am listing some examples below.

I tried to document the steps and checks we do in the script itself. Different roles have some different checks associated with them.

Below is an example where first a RMS check was run and finished with success. Next piece was what happens if you run two of the scripts on the box for a role it doesn't have (it gives an error :roll:). Next we run the web console checking script which starts out and finishes successfully.
And yes, this happens to be the screenshot for CU6. B)

So that is it. It should cover most scenarios.

The next post will be the same for CU6 and point back to this one on how to run it.

Also I want to extend a word of thanks to Marius van de Ven, whom I bothered a few times with some specific questions on how to do stuff in PowerShell.

Enjoy and good luck!
Bob Cornelissen

Private Cloud exam results are in and passed!

SCOM, DPM, SCVMM, Service Manager, SCCM, System Center, SCOM 2012 5 feedbacks »

At last MMS 2012 we got the opportunity to take the beta versions of the Private Cloud exams 70-246 and 70-247 for System Center 2012. I must say they were tough exams and I and many others were not sure about the results. Usually I have a feeling about an exam I took, but this time it was very mixed. The thing is with these exams that they are filled with questions on different technologies in the System Center 2012 suite and stuff around it.

Yesterday I got confirmation on the first exam and today on the second one. I am pleased to report that I passed both of them.

Very happy with that. It means I have all the prerequisites for the MCSE Private Cloud certification! B)

I will soon write a post about all the new Windows Server, desktop and System Center exams and certifications which are here or coming up within this year. It will probably not contain the same about the SQL 2012 and programming/Visual Studio related exams for 2012, but know there will be similar new exams for those as well.

Bob Cornelissen

SCOM 2012 Network Device No Response Ping in Pending Management

SCOM, SCOM Tricks, SCOM 2012 4 feedbacks »

Had a case where we used the SCOM 2012 network device discovery and found our devices to be in Pending Management, with the notification "No Response Ping". Even with network devices where we only ping and ping does work from the command prompt.
Thing is that it is not the same when you ping from a command prompt and when it happens programatically.
As several prople run into this the short way to fix it:

On the Windows machine of your management server(s) open the firewall settings and find rules starting with "Operations Manager" in both inbound and outbound rules. There are a few that seem to be default disabled. Those are highlighted below. And guess what... They are all about Ping and SNMP. Jsut turn on whatever rules you want there and re-run the discovery rule (or wait for it to happen on your schedule) and the network devices will appear.

A view of inbound rules and outbound rules:


Happy monitoring!
Bob Cornelissen

SCOM Updates

SCOM, SCOM 2012 Send feedback »

If you are running SCOM 2007 R2 or SCOM 2012, there are new updates available for you! See below for both. We start with SCOM 2012 and will name SCOM 2007 below that.

SCOM 2012 UR1

A number of days ago Microsoft Released System Center 2012 UR1 (Update Rollup 1) of SYstem Center 2012 with update for SCOM and VMM mainly (and App Controller I think). The list of updates for SCOM 2012 is an interesting one which addresses a number of issues we have seen. SO that is recommended to be installed. The update is not very large in download size and there is no more bootstrapper. After the update the files that were replaced will have version 7.0.8560.1021. The following are resources you will need to go for SCOM 2012 UR1:

SCOM 2007 R2 CU6

A few hours ago Microsoft released Cumulative update 6 for SCOM 2007 R2 (CU6). It has a number of fixes in the list. It looks like the installation order is roughly the same as previous CU's, but be sure to first read through the whole KB article. Experience has learned that reading closely avoids a number of issues. Be sure to test it first in a test environment, or perhaps wait for a few days until some of the more well known names have posted about their experiences installing it and if they found any issues during install or right after it. The version of the files after the upgrade will be 6.1.7221.99 after applying CU6 (the files that get replaced of course).

For sure I will do both updates in several environments (both test and production) and if I run into anything I will surely post it back here.

Happy upgrading and monitoring!
Bob Cornelissen

SCOM 2012 Web Console - HTTP Error 500.19

SCOM, System Center, SCOM Tricks, SCOM 2012 2 feedbacks »

While I was playing around with some SCOM 2012 web console items in a test environment I ran into another small issue. Probably because we have been playing around with it too much. But than again I guess somebody else might run into this issue as well.

The case is this one:
We see some parts of the web console, but when we click on for instance a computer state view the monitoring pane shows an error.

The error says:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

You can see the situation and the rest of the info in the screenshot.

Because I happened to be e-mailing with a product team member on another issue anyway, I mentioned it. Turns out to be something simple.

Open IIS Manager, open the server and go to Application Pools.

Check if the OperationsManagerMonitoringView application pool is set to use .Net Framework 2 and not 4. As you see in the screenshot above it was using version 4 for that application pool.

If it is set to .Net 4 than change it back to .Net 2 and recycle the application pool.
The web console worked like a charm after that.

Thanks for your pointer Nathan!
Bob Cornelissen

SCOM 2012 Web Console HttpWebRequest_WebException_RemoteServer

SCOM, SCOM 2012 15 feedbacks »

Had an issue today in a test environment with a freshly installed SCOM 2012 all-in-one machine. SCOM was working fine. Started the SCOM Web Console and suddenly got an error. The details of the error looked like this:

System.ServiceModel.CommunicationException: [HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound

The rest is here in a screenshot:

Web Cons Error

So clicked around a little bit and came to the conclusion that I must have missed something during prerequisite installation or installation of the SCOM Web Console had some issue. Not wanting to loose too much time I went for removing the Web Console feature and re-doing some prerequisite installation stuff.

  1. Start SCOM 2012 installation and select to remove a feature. Remove Web Console feature.
  2. Run some powershell commands to install the prerequisites:
    Import-Module ServerManager
    Add-WindowsFeature NET-Framework-Core,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Request-Monitor,Web-Filtering,Web-Stat-Compression,AS-Web-Support,Web-Metabase,Web-Asp-Net,Web-Windows-Auth –restart
  3. Run the following command from elevated command prompt to register the ASP .NET 4 with IIS.
    c:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -r
  4. Next the command to allow the Asp .Net 4 ISAPI/CGI.
    c:\windows\system32\inetsrv\appcmd set config /section:isapiCgiRestriction /[path=`'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll`'].allowed:True
  5. Restart the server
  6. Run SCOM 2012 setup and select to add a feature and add the Web Console feature.

Started up the web console link again from internet explorer and got a logon prompt and a few seconds later had a working Web Console.

I guess the principle of "when in doubt why it is not working -> re-install the Web Console" still works.

Enjoy!
Bob Cornelissen

Manipulating SCOM 2012 agent multihoming options by script

SCOM, System Center, SCOM Tricks, SCOM 2012 10 feedbacks »

Last week I got a question from a friend in the System Center community, Adrian Chirtoc, about how to remove a management group entry from a multi-homed SCOM 2012 agent by using a script.
The case at hand was a parallel side-by-side installation of SCOM 2012 next to a SCOM 2007 R2 management group. By this process all SCOM agents got upgraded to SCOM 2012 version. Next step in this case would be to remove the management group entry of the old SCOM management group from the new agent.

Now one would at first think this is as easy as using the method previously used for SCOM 2007 agents. We have discussed a few of those over here in SCOM Trick 19 – Remove SCOM agent command.

Another much heard remark would be to use the control panel, where in the SCOM 2012 version agent you will find this place where you can add and remove and edit management group entries in an existing SCOM 2012 agent.

SCOM Agent Management

But in this case the requirement is to do it by using a script. This will also be applicable if you are in a multi-homing scenario where you are doing agent management by some other means, such as Configuration Manager or any other deployment tool. This is where the scripting comes into play.

So, as far as I could find out in short time I could only find an uninstall command from the momagent.msi which in this version should completely remove the agent and where you will not name a management group to remove (which you could do in SCOM 2007). I could not find any way to interface with the agent management applet as shown above. SO next step would be to check out either PowerShell or scripting against the SDK.

So, we end up talking to the Operations Manager Agent Configuration library, which is available on each SCOM 2012 agent and management server as AgentConfigManager.dll . From there we find a method to use to remove a management group entry from an agent.

I uploaded a simple vbscript to remove a management group entry from a SCOM 2012 agent in the TechNet Gallery you can find by clicking this sentence.

From there I figured we might want to be able to also add management group entries to an existing agent in order to multi-home it by using a script. So that is simply another method which we can use to manipulate the agent. The example script to add a management group to an existing SCOM 2012 agent by script is also uploaded to the TechNet Gallery. There is also a possibility to add an action account to the agent in the same command, but I left it at three entries (management group + management server + agent port).

To get to these I have used information from the Operations Manager 2012 SDK reference.

Have fun scripting the existing SCOM 2012 agents!
Bob Cornelissen

Contact / Help. ©2014 by Bob Cornelissen. blog software.
Design & icons by N.Design Studio. Skin by Tender Feelings / Evo Factory.