Home » Articles posted by Anders Bengtsson (Page 37)

Author Archives: Anders Bengtsson

Microsoft IT Forum in Barcelona

I have registered for Microsoft IT Forum in Barcelona. If you are plannig to go, send me a e-mail and we can meet for some beers and chat.

 

 

Update Custom Fields in Ops Mgr 2007

I have built a script to update alert customfields in Ops Mgr 2007. I have done this for MOM 2005 too, more info here. In MOM 2005 I did it with a couple of rules. In Ops Mgr 2007 I solve it with a schedule task. My first idea was to run it as a command notification, but I ran into a permission issues. You can setup this script as a schedule task, and run it every X minute. It will load Ops Mgr command shell snap-in and then get all new alerts (ResolutionState = 0). The script wíll then get the computername from the alert and run some Active Directory queries based on that computername. The result from these queries will be input in the alert custom fields. Some alerts does not have a netbioscomputername attribute, therefor these alerts will not be updated, for example some Active Directory alerts.

You can customize the script any way you want. With this example I want to show you one way to do it, with some example attributes. Download the script here.

Custom Fields in Ops Mgr

News about Ops Mgr SP1

The high level themes of the System Center Operations Manger 2007 Service Pack 1 are:

  • Address critical customer initiated issues including roll-up of all hotfixes
  • Make the product easier to support
  • Make the product easier to use
  • Make the product easier to deploy

In the beginning of November there will be a public Release Candidate  (RC). This release (RC) is fully upgradable to the final RTM version of the Service Pack. The reasons the product team is making the RC of the Service Pack generally available are:

  • To give customers evaluating OpsMgr 2007 advance access to the SP to aid in their evaluation and proof of concept deployments
  • To give current OpsMgr 2007 customers that may have hotfixes in their environment an opportunity to test the Service Pack and provide feedback on it
  • Ultimately to make sure that the final RTM release of the Service Pack is of the highest possible quality.

The final RTM version of the Service Pack is targeted for mid-February 2008. This version of the Service Pack will be able to be applied to upgrade the originally released RTM version of Operations Manager 2007 and it will also upgrade Operations Manager 2007 running the Release Candidate of SP1

 

 

Ops Mgr 2007 Resource Kit

SC Ops Mgr 2007 Resource Kit – Operations Manager Inventory

A command-line utility that captures the configuration of your Operations Manager 2007 Management Servers and stores it in a .cab file that can be sent to Microsoft support to assist in problem analysis.
SC Ops Mgr 2007 Resource Kit – Operations Manager Cleanup Tool
A command-line utility that enables you to remove any or all of the components of Operations Manager from a local computer in cases where the normal method of uninstallation has failed.
SC Ops Mgr 2007 Resource Kit – AEM Validation
A command line utility that will allow you to perform end-to-end validation of Agent-less Exception Monitoring to verify that AEM is properly configured and operational.
SC Ops Mgr 2007 Resource Kit – Active Directory Integration Sample Script
A sample script that enables you to extract a list of computer names from your custom SQL Server database and add them to an Active Directory security group. The security group can then be referenced in the Agent Assignment and Failover Wizard to automate agent assignments to Management Servers.
SC Ops Mgr 2007 Resource Kit – AEM Management Pack
A Management Pack that enables you to identify generic errors sent by Windows Error Reporting (WER) clients to Management Servers that are AEM-enabled. Without this mapping function these errors appear in Operations Manager as “unknown application” and “unknown version”.
SC Ops Mgr 2007 Resource Kit – Effective Configuration Viewer
A tool that displays the set of rules and monitors that are running on a computer, distributed application, or any other managed entity after any configured overrides have been applied.
SC Ops Mgr 2007 Resource Kit – Action Account Tool
A PowerShell script that allows you to set the action account on groups of computers.
SC Ops Mgr 2007 Resource Kit – Sample Vista Gadget
A Vista Gadget that enables you to view the active alerts and health states for a specified set of objects from a computer running Windows Vista.

Book of the Day

Mastering System Center Operations Manager 2007

  • Paperback: 456 pages
  • Publisher: Sybex (September 18, 2007)
  • Language: English
  • ISBN-10: 0470119306
  • ISBN-13: 978-0470119303
  • Link to this book at Amazone

    Ops Mgr, Exchange 2007 and Windows X64

    This weekend I have been thinker with Exchange 2007 and Ops Mgr 2007. I am running Exchange 2007 on a Windows 2003 ENT X64 machine. I converted the Exchange 2007 MP for MOM 2005 and imported into Ops Mgr 2007, no problems so far. I followed this post about the converting MP. 

    After reading about the management pack at this page,  I ran the following scripts

    1. new-testCasConnectivityUser.ps1 (create the test mailbox and setup user for tests)
    2. set-owaVirtualDirectory (modify the properties of Outlook Web Access virtual directories )
    3. After this I still received a lot of URL check errors, so I re-run new-testCasConnectivityUser.ps1 and also verified that the account was unlocked in Active Directory. This the result was different and the error stopped.

    If you receive alerts that the agent cant check exchange URLs, for example the OWA site, make sure you can connect to the site with Internet Explorer. I had some problems because the IIS was in the wrong “mode”. I did reconfigure that with this KB. 

    There were some other alert telling me to configure external owa URL and so on. The alert description and knowledgebase includes information how to fix them.

    My plan was first to run the Exchange Management Pack Configuration Wizard to setup test mailboxes and so on, as we did with MOM 2005 and Exchange 2003. I downloaded the wizard and started it, and I got this:

    “The CDOEXM library is not installed on this computer. The application depends on this library to run. To install CDOEXM you need to install the Exchange System Manager. Setup cancelled.”

    Unfortunately Exchange 2003 does not support X64 OS, so it is not possible to install the Exchange 2003 System Manager on this Exchange 2007 machine. My next plan was to install the MP wizard and the Exchange 2003 tools on my XP X86 machine. The installation was no problem, but when I started the MP wizard, no exchange servers was found. I found a interesting KB about create all the settings manually, http://support.microsoft.com/kb/924152 

    This weekend I also tried setup notification with the new Microsoft Office Communications Server 2007. No real problem was found, I configurated everything with default values. It was even easier then deploying Live Communicator Server 2005.

    Summary: You can convert the Exchange 2007 MP for MOM 2005 and make it work in your Ops Mgr 2007 environment. But you will lose some functions, for example there will be no Exchange reports. If you have a urgent need for the Exchange 2007 MP you can convert the MOM 2005 version, else I recommend you to wait. The Exchange 2007 MP for Ops Mgr 2007 is planned to Q3 2007.  

    dbcreatewizard.exe

    You can use the Database Configuration Wizard (dbcreatewizard.exe) to install multiple Operations Manager databases on a single instance of SQL Server. But before you can start it you need three files from a Ops Mgr installation.

    • C:\Program Files\System Center Operations Manager 2007\ Microsoft.EnterpriseManagement.UI.ConsoleFramework.dll
    • C:\Program Files\System Center Operations Manager 2007\ Microsoft.MOM.UI.Common.dll
    • C:\Program Files\System Center Operations Manager 2007\ Microsoft.MOM.UI.Wrappers.dll

    As many have question, how can I have the files if I not even have installed the database? You can copy these files from a machine that has Operations Manger 2007 Console installed, so install only the console on a machine that you will use as a management workstation later.

    Links During August

    • New KB, The discovery process does not find computers that are present in your domain in Operations Manager 2007, link
    • New KB, The SQL Server 2000 database engine health is not monitored in System Center Operations Manager 2007, here
    • New KB, The appropriate tables and stored procedures are not created successfully when you install the Windows Key Management Service Management Pack for Microsoft Operations Manager 2005, here
    • New MP, Microsoft SMS 2003 Management Pack for Microsoft System Center Operations Manager 2007, here
    • New KB, “Loading Reporting Hierarchy Failed” error after the new Root Management Server Promotion, here
    • New KB, The Reporting DTS task does not run and reports do not work when Microsoft Operations Manager (MOM) 2005 fails over to the secondary node of a server cluster, here
    • Microsoft Forefront and System Center Demonstration Toolkit, download here
    • New MP, Microsoft Forefront Server Security for Exchange 10.0 Management Pack for Operations Manager 2007, link
    • New MP, Microsoft Office Project Server 2007 Management Pack for Operations Manager 2007, link
    • New MP, Microsoft Identity Integration Server 2003 Management Pack for Operations Manager 2007, link
    • New MP, Microsoft Server Network Load Balancing Management Pack for Operations Manager 200, link
    • MOM 2005 Summary Reporting Pack Guide, download here
    • New KB, Error message when you try to access a Web page view in the System Center Operations Manager 2007 Web Console: “Requested value ‘UrlViewType’ was not found”, here
    • New KB, The System Center Operations Manager 2007 agent is unable to restart the health service after its monitored thresholds are breached, here
    • Systems Center Operations Manager 2007 Documentation has been updated, download here
    • MP Update, System Center Operations Manager 2007 Management Pack Update, here
    • New MP, Operations Manager 2007 Data Warehouse Library Management Pack, here
    • New MP, Systems Management: Dell Management Pack for Microsoft System Center Operations Manager, link
    • New KB, A notification subscription’s Alert Criteria options do not work as expected in System Center Operations Manager 2007, link

    Get-Rule -ID (v2)

    If you have a rule or monitor that are incorrect configure you can end up with a event like the one below.

    Event Type: Error
    Event Source: Health Service Modules
    Event Category: None
    Event ID: 10102
    Description:
    In PerfDataSource, could not resolve counter incorrectObject, incorrectCount, incorrectInstance. Module will be unloaded.
    One or more workflows were affected by this.
    Workflow name: MomUIGeneratedRulebe73b15420934af6ac89a227094c0ffb
    Instance name: DC01
    Instance ID: {0367F246-11C3-0AA4-583B-6819AB40434E}
    Management group: Contoso

    With only the information in the local event it can be difficult for you to troubleshoot it. To get more information about, in this case about a rule, you can first run a SQL quert in your OperationsManager database

    SELECT * FROM Rules WHERE RuleName = ‘MomUIGeneratedRulebe73b15420934af6ac89a227094c0ffb’

    You will then get a lot of information about the rule, copy the string in the RuleID field, and then start Command Shell. In Command Shell run the Get-Rule command, for example Get-Rule -Id FA5958CE-1EC8-A723-541A-5A1B2D48B67D

    This command will return all information about this rule, for example DisplayName. You can then easy find the rule in the Operations Console and modify it.

    Look for a word on a webpage

    I saw a question about looking at a website and verify that there where some words on it. If you follow my post, “How to Monitor a Web Site with Ops Mgr 2007“, then add the steps in this post, you will have a web application looking for a word on a website.

    1. After you have create your web application, click on it and choose “Edit web application settings” from the action menu
    2. Web Application Editor, in the Request Details part, check Content Match and choose Does not contain from the drop down menu, then input a word that you want to verify is on the webpage.
    3. Web Application Editor, click Verify
    4. Web Application Editor, click Apply
    5. Close the Web Application Editor

    You can now add the web application to your computer state view, choose to personalize view. You will also see alerts in the Active Alert view if your content match settings is not fullfilled.

    Â