Archive | SCOM

Announcing System Center Operations Manager 2007 Cross Platform Extensions and Connectors

From http://blogs.msdn.com/scxplat/archive/2008/04/29/announcing-system-center-operations-manager-2007-cross-platform-extensions-and-connectors.aspx

Today Microsoft announced a few new beta products – two of which came from our team. The System Center Operations Manager 2007 Cross Platform Extensions, which enable customers to manage Unix/Linux systems from Operations Manager 2007, was delivered as a beta today. If you were attending Bob Muglia’s Keynote this morning then you walked away with a CD containing the beta bits.

The second beta announcement from our team was the availability of the System Center Operations Manager 2007 Connectors for HP OpenView (Unix/Windows) and IBM Tivoli Enterprise Console (TEC). CD’s will be available later this week at MMS.

Both betas are available on http://connect.microsoft.com/ – search for systemcenter. If you’re attending MMS, then stop by and see us at the Operations Manager 2007 Pod. You can also attend the two breakout sessions:
– SO20 – System Center Operations Manager 2007 Cross Platform Extensions
– SO09 – Connectors for System Center: The Microsoft Interop Strategy

Also, there’s a hands on lab for the Cross Platform Extensions at MMS – details will follow later. Tonight there will be a birds of a feather session – BO03 Integrating with Microsoft Systems in a Mixed Environment (Windows, Linux, OSX etc).

If you happen to be at ‘Interop Las Vegas’ down the street at Mandalay Bay, then stop by and see us at the Microsoft booth.

We look forward to keeping this site updated with information, tips, and tricks about these new products from our group. Please check us out often.

The Cross Plat and Interop team

You can download the Cross Platform Extensions Beta through Microsoft Connect. To help you navigate to the right spot, follow these directions:

  • Go to Microsoft Connect, and log in.
  • Click on Connection Directory at the top menu.
  • Scroll down the list of categories to System Center TAP/Beta.
  • Within this category you will see the Program, “Operations Manager Public Beta (Cross Platform and Interop)”. Click Apply Now.
  • Complete the survey, and then you’re in and can download the Ops Mgr Cross Plat Beta!
Continue Reading

NEW MP for cluster services (MSCS) monitoring was released!

UPDATE: NEW MP for cluster services (MSCS) monitoring was released!

http://www.microsoft.com/downloads/details.aspx?FamilyId=AC7F42F5-33E9-453D-A923-171C8E1E8E55&displaylang=en

What is included with this release:
· Bug fixes monitoring of cluster resource group and cluster resource when name contains special character.
· Bug fixes for proper recognition of partially online cluster resource group.
· Bug fixes for noisy level of disk resource monitoring.
· Bug fixes for proper account usage with all discovery workflows (Cluster profile which needs to be populated when default action account doesn’t hold enough privileges to monitor cluster.)
· Preparation for Windows 2008 Failover Cluster management pack (type space and base functionality is shared between Win2k3 and Win2k8 cluster infra monitoring)
· Additional work including some further minor changes …

Following management pack files are available with this release:
Microsoft.Windows.Cluster.Management.Library.mp (6.0.6277.1)
Microsoft.Windows.Cluster.Management.Monitoring.mp (6.0.6277.1)
Microsoft.Windows.2003.Cluster.Management.Library.mp (6.0.6277.1)
Microsoft.Windows.2003.Cluster.Management.Monitoring.mp (6.0.6277.1)

Similarly to previous version, please follow these steps before importing management packs to meet requirements:

If you have installed, remove any and all versions of following management pack files prior to importing version included with this release:
· Microsoft.Windows.2003.Cluster.Management.Monitoring
· Microsoft.Windows.2003.Cluster.Management.Library
· Microsoft.Windows.Cluster.Management.Monitoring
· Microsoft.Windows.Cluster.Management.Library

NOTE: unfortunately with upcoming release of Windows 2008 Failover Cluster Management Packs, breaking change had to be introduced with Cluster Views and minor change in discovery, where such regrettably prohibits importing new version over any prior imported management packs.

Following are steps required to delete said management packs:
1. Navigate to the Administration Space.
2. Select Management Packs.
3. Select Windows 2003 Cluster Management Monitoring, right-click and select Delete, click Yes.
4. Select Windows 2003 Cluster Management Library, right-click and select Delete, click Yes.
5. Select Windows Cluster Management Monitoring, right-click and select Delete, click Yes.
6. Select Windows Cluster Management Library, right-click and select Delete, click Yes.

Before you import the Windows Server 2003 Cluster Management Pack, please do following actions too:

· Import the Windows Server 2003 Base Operating System Management Pack.

· Enable the Agent Proxy on all agents which are installed on servers that are members of a cluster if it was not enabled already.

Based on OpsMgr 2007 SKU, this is quick reminder about dependencies:

· OpsMgr 2007 RTM (version 06.0.5000.0000):QFE needs to be applied and Microsoft.Windows.Cluster.Library management pack needs to be imported immediately after binaries on cluster nodes changed. This is required due to dependency on cluster user profile in the case action account has no access to cluster administration and profile needs to be manually populated to allow monitoring of MSCS as well as hot fix required for WMI event provider used with cluster infrastructure monitoring. (QFE is also included with released package)

· OpsMgr 2007 SP1 RC (version 06.0.6246.0000):No special requirements for runtime are required. But it is required to import Microsoft.Windows.Cluster.Library from QFE (again, it is also attached to web released package). This makes sure you can simply follow steps to download files and successfully import management packs.

· OpsMgr 2007 SP1 RTM (version 06.0.6278.0000):No special requirements are to be met. All referenced management packs are at their latest version. Simply follow steps to download management pack files and import all except Microsoft.Windows.Cluster.Library.

Continue Reading

WMI Encountered a problem and needed to close error

After installing the Dell MP you might start to see a bunch of WMI errors on your Dell Servers.

“Event ID: 1000; Faulting application wmiprvse.exe

This fix was suggested by Dell 3rd level Support.

The problem is caused by the Dell OpenManage Management Pack in SCOM. WMI throws these errors when SCOM queries WMI on Dell server. I have not seen any application issues due to the WMI errors.

These patches are not included in SP2 so if you are running SP2 you will still need the patches.

KB Article
http://support.microsoft.com/?kbid=933061

SUMMARY
A software update is available for Windows Management Instrumentation (WMI) in Microsoft Windows Server 2003. This update improves the stability of the WMI repository.

Windows Server 2003, x86-based versions
Download the WindowsServer2003-KB933061-x86-ENU.exe package now.

Windows Server 2003, x64-based versions
Download the WindowsServer2003.WindowsXP-KB933061-x64-ENU.exe package now.

Continue Reading

HP ProLiant Server Management Packs Version 1.1 for Operations Manager 2007 Released

HP have relesed an update to the Proliant Server MPs.

Version Information:

HP ProLiant Server Management Packs for Operations Manager 2007 – Version 1.1.3
Hewlett-Packard Servers Core Library – Version 1.0.33.0
Hewlett-Packard ProLiant Servers Base – Version 1.0.33.0
Hewlett-Packard ProLiant Servers SNMP Management Pack – Version 1.1.0.0From the release notes:

Download HP ProLiant Server Management Packs Version 1.1 for Operations Manager 2007 here.

Continue Reading

How to quickly pull historic perfmon data inside SCOM

Go into the Operations Manager console. Under the Computer view, search for computer the computer object you want to pull data about

 

Right click on the object and select Open, Performance View,

In the upper right corner under actions select time range.

Go down to the bottom left corner of your screen and select the objects you want to graph.

Right Click on object, if you want to adjust Graph Scale.

Look at Graph!

null

Continue Reading

Running PowerShell Scripts from a Management Pack – Part 1

Courtesy of Brian “The Brain” Wren:

http://blogs.technet.com/brianwren/archive/2008/02/20/running-powershell-scripts-from-a-management-pack.aspx

Considering all my work with OpsMgr management packs and my infatuation with PowerShell, it’s surprising that I’ve never put the two together in a public forum. I keep meaning to, just don’t ever seem to get there. I finally committed myself to this blog post while sitting at my local It’s a Grind (that’s a coffee house to all you Seattle Starbucks fans. It’s a Grind was born in Long Beach, and I am fanatically loyal to my home town).

So here’s the basic question – can I use a PowerShell script in an OpsMgr management pack? In other words, can I execute a PowerShell script from a rule, monitor, diagnostic, recovery, or task? The answer is absolutely you can, but there are some considerations to keep in mind. First let’s cover those considerations, then we’ll get to concepts and code. If you just want the modules to copy and paste into your MP, go ahead and jump to the end.

The biggest issue is that most of the servers in your environment don’t have PowerShell installed. Rules and monitors sent to an agent are executed locally on the agent computer, and any executables must be installed prior to the agent attempting to use them. In the case of VBScript and JScript, we rely on cscript.exe being present, but that’s a safe bet since it is automatically installed on all Windows machines. Powershell is obviously not installed by default, and even in Windows Server 2008 it’s an optional feature. If you want to use a PowerShell script for a console task, then you’re going to need to make sure that it is installed on the client workstation the task is being executed from. This is less of a concern though since, while PowerShell and Command Shell are not required for the OpsMgr User Interfaces, they are pretty strongly suggested.

There can also be some significant overhead from launching PowerShell. Go ahead and launch a PowerShell window and then have a look at Task Manager. Powershell.exe will probably be consuming something like 30 MB of memory which is about 5x the typical cscript.exe instance in my personal testing. This is not surprising considering all the rich functionality that PowerShell provides. My only point is to try to stay away from scenarios where you need to launch a PowerShell script every couple of minutes. I’ve heard the OpsMgr product team is working on some strategies to reduce this overhead, but until then you want to use PowerShell scripts where they don’t have to be launched too frequently.

Concepts

The basic idea of running a PowerShell script is to use of the Command Executer modules to launch powershell.exe with your script. This is actually the method that quite a few of the scripts in existing management packs use – calling cscript.exe with these modules. The Command Executer modules will launch the executable of your choice, allow you to specify command line arguments, and allow you to specify the name and contents of one or more text files (which will obviously be your script). These text files are created on the agent prior to command execution, so you can be guaranteed they will be in place when your specified command is launched.

Have a look at Microsoft.Windows.ScriptProbeAction in Microsoft.Windows.Library for example. That module uses System.CommandExecuterProbe from System.Library. It specifies cscript.exe as the command to execute, provides the appropriate command line arguments such as /nologo and the name of the script, and then passes in the body of the script as a file. In order to execute Powershell, we really just need to figure out the command line required to launch PowerShell, execute a script, and then exit.

PowerShell Command Line

If you run powershell.exe /?, you get the command line arguments for PowerShell. To launch a command and exit, you use the -command argument, the invoke operator (&), and a command to execute. The example syntax given by that help is as follows:

powershell -command “& {get-eventlog -logname security}”

We’re going to need that basic syntax but put it in a format that the management pack can understand. It won’t handle that ampersand, and we’re go to have to have to specify a path for the script. PowerShell demands a complete path to a script even if it’s in the current directory. The Command Executer will drop the script to a temporary directory and then use that directory as its default when it executes the script, so we can assume the script will be located in the current directory. Assuming that we are going to use a parameter called ScriptName for the name of the script, then the command line in the management pack would look like the following:

-command “& {.\$Config/ScriptName$}”

If you’re completely baffled by that syntax, here’s a quick explanation. We replace & with & because OpsMgr interprets the & as a special character. We get away with that character in the script itself if we enclose the script in CDATA tags, but we can’t use CDATA tags on our command line. $Config/ScriptName$ is a context variable. OpsMgr will replace the variable inside the dollar signs with its actual value at run time. Config refers to the parameters of the module, and ScriptName is the name of the parameter. Finally, the .\ just refers to the current directory. So, if we used MyScript.ps1 for the script name, we would end up running the following command:

powershell -command “& {.\MyScript.ps1}”

Implementing the Modules

Rather than write a specific rule that uses the Command Executer modules and includes the specific PowerShell complexity, it is way more valuable to create a couple of base modules that can be leveraged by rules, monitors, and tasks. A Data Source module that runs a PowerShell script on a timed basis and returns a property bag could be used for a rule, monitor, or diagnostic. Another Data Source module returning discovery A Write Action module that just runs a PowerShell script on demand to perform some defined action would support a task or recovery.

I’ll provide the data source below. Given this it should be pretty straightforward to create a write action (hint – use System!System.CommandExecuter). You could also create a discovery module based on System!System.CommandExecuterDiscoveryDataSource.

<DataSourceModuleType ID=”PowerShell.Library.PSScriptPropertyBagSource” Accessibility=”Public”>
<Configuration>
<xsd:element xmlns:xsd=”http://www.w3.org/2001/XMLSchema” name=”IntervalSeconds” type=”xsd:integer”/>
<xsd:element xmlns:xsd=”http://www.w3.org/2001/XMLSchema” name=”TimeoutSeconds” type=”xsd:integer”/>
<xsd:element xmlns:xsd=”http://www.w3.org/2001/XMLSchema” name=”ScriptName” type=”xsd:string”/>
<xsd:element xmlns:xsd=”http://www.w3.org/2001/XMLSchema” name=”Arguments” type=”xsd:string”/>
<xsd:element xmlns:xsd=”http://www.w3.org/2001/XMLSchema” name=”ScriptBody” type=”xsd:string”/>
</Configuration>
<ModuleImplementation>
<Composite>
<MemberModules>
<DataSource ID=”DS” TypeID=”System!System.CommandExecuterPropertyBagSource”>
<IntervalSeconds>60</IntervalSeconds>
<ApplicationName>%windir%\system32\windowspowershell\v1.0\powershell.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>-Command “&amp; ‘$Config/ScriptName$”</CommandLine>
<SecureInput/>
<TimeoutSeconds>30</TimeoutSeconds>
<RequireOutput>false</RequireOutput>
<Files>
<File>
<Name>$Config/ScriptName$</Name>
<Contents>$Config/ScriptBody$</Contents>
<Unicode>true</Unicode>
</File>
</Files>
</DataSource>
</MemberModules>
<Composition>
<Node ID=”DS”/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
</DataSourceModuleType>

Writing the Script

For the write action, there’s really nothing special about the script. Any working PowerShell script will be fine. If you need to return a property bag or discovery data from a data source though, you’re going to need to use MOM.ScriptAPI just like in VBScript. PowerShell works fine with COM objects, so this is not a problem at all. The following line will create an object variable, and using it is pretty similar to how you did it in VBScript.

$api = new-object -comObject “MOM.ScriptAPI”

For example, below is a PowerShell script to output the name and size of a specified file as a property bag. This could be called from a rule or monitor that uses a condition detection to map the property bag information to performance data. While this is coded in PowerShell, the basic process is identical to a script

$file = Get-Item $args[0]
$api = New-Object -comObject “MOM.ScriptAPI”
$bag = $api.CreatePropertyBag()
$bag.AddValue($file.Name,$file.Length)
$api.Return($bag)

More Later

This should be enough information to get people off and running. I’d like to provide some more samples and thought of actually writing a library MP with a complete set of PowerShell modules. No hard commitment on that, but I’ll do my best in coming weeks.

Continue Reading

System Center Operations Manager SP1 RTM Released To Web

System Center Operations Manager SP1 RTM Released to Web!!!

Feature Bullet Summary:
Improved Console Performance
Increased Scale Limits
Disaster Recovery solution for all OpsMgr roles
Supported in-place upgrade from RTM to Service Pack 1

EVAL: http://www.microsoft.com/downloads/details.aspx?FamilyId=C3B6A44C-A90F-4E7D-B646-957F2A5FFF5F&displaylang=en

UPGRADE: http://www.microsoft.com/downloads/details.aspx?FamilyId=EDE38D83-32D1-46FB-8B6D-78FA1DCB3E85&displaylang=en

Supporting Docs: http://technet.microsoft.com/en-us/opsmgr/cc280350.aspx

Continue Reading

New Version of the Dell Management Pack for SCOM and SCE was released v.3.0 A02

Dell silently released a updated MP back in October. It looks like a minor release but fixes some key problems.

Fixes and Enhancements
1) Added support for Microsoft System Center Operations Manager 2007 and System Center Essentials 2007.

2) Enhanced health drill down model in Diagram views from overall Dell Hardware health to individual hardware components.

3) Includes support for the latest versions of Dell OpenManage Server Administrator v5.2 (including the enhanced Storage Management Service 2.2).

4) Supports monitoring of Dell printers using SNMPv2

Version A02 changes:

– Release includes support for System Center Essentials 2007.

– Dell Management Pack code modified with fixes for removing debug events in the Operations Manager log. About time!! These were worthless

Version A01 changes:

– Documentation (Dell Management Pack functions with a reduced feature when the Management Server Action account has normal user privileges. This Account needs admin privileges only for DRAC discovery. When the account has normal privileges, Clear ESM Log task should be executed with a Power User or higher privileged account instead of the using the predefined Run As Account).

– No change in Dell Management Pack code.

Download: http://ftp.us.dell.com/sysman/DellMP30_A02.exe

Full Support Page: http://support.dell.com/support/downloads/download.aspx?c=us&l=en&s=gen&releaseid=R168582&SystemID=PWE_2950&servicetag=&os=WNET&osl=en&deviceid=15333&devlib=0&typecnt=0&vercnt=3&catid=36&impid=-1&formatcnt=1&libid=36&fileid=229201

Continue Reading

SCOM 2007: The CPU percentage Utilization monitors do not work on a Windows 2003 server

I was always wondering why I never recieved any CPU alerts. This is why

Cause:

The CPU percentage Utilization monitors are targeted to the Windows server 2003 processor class. However, there is no available Windows server 2003 processor class instance by default, due to the corresponding discovery rule: Discover Windows CPUs is disabled by default.

Resolution:

1. In MOM operations Console, open Authoring -> Management Pack Objects -> Objects Discoveries.
2. Search for the discovery rule “Discover Windows CPUs”.
3. In the properties window of this rule, go to Overrides. Set overrides on all Windows server 2003 operations system role type objects. Check override on the Parameter named “Enable”.4. Save the override setting.5. When the “Windows server 2003 processor” is working, the CPU percentage Utilization monitors will also work.

http://support.microsoft.com/kb/948097

Continue Reading