There are maybe certain situation where you need to import multiple management packs using the “Import-SCOMManagementPack” command. How do you accomplish that? It is easy! Because the command is taking care of the dependencies we just have to provide ALL of the needed management packs in an array. In my example I want to import […]
Script
Orchestrator – Use Powershell (only) to Trigger Runbooks
Today I needed a solution which I could trigger a runbook using Powershell only. I found a very flexible and extendable solution on Codeplex.
SCOM 2012 – Monitoring Oracle Database OLE DB Management Pack Template
As you know there are different ways to achieve certain things. It always depends on your requirements. In my latest blog post I would like to show how relatively easy it is to monitor an OLE DB connection to an Oracle database and also get some performance data. My well-respected fellow SCSM Guru and MVP […]
SCOM 2012 – Try Linux Nagios Plugins e.g. File Age Check
You might remember MacGyver – a guy who could build a NASA rocket out of some explosives, matches and a steel tube. He was my hero back then but today you could also be a MacGyver by just using the tools you have and just plug it the right way together. That means MacGyver used […]
SCOM 2012 – Recovery Task Script for Restarting a Windows Service and Depending Services
A while ago there was an issue at a customers side where I had to provide a solution for restarting a Windows service depending on a Windows event log entry. Well this is nothing special and we SCOM guys do it almost every day. The fun part was, that it was a custom service and […]
SCOM 2012 – Linux Two-State Monitor with “Script in Script”
If you are a Windows guy and you haven’t touched Linux so far implementing SCOM will force you to get hands on *nix systems. Here I would like to provide a cool, little way how to overcome a limitation of the Unix/Linux Shell Command Two (or Three) State Monitor. This two state monitor allows you […]
SCOM 2012 – Maintenance Mode by Powershell, Orchestrator & SCOJobRunner
If you browse the web and you search for a solution to start maintenance mode in SCOM you will find many solutions. There are different approaches which are based on Powershell or Orchestrator but my intention was to to combine all of those and also utilize SCOJobRunner, Just for fun … The idea looks like […]
SCOM 2012 – Distribut Agents Evenly (50:50)
I am sure you have a small SCOM infrastructure containing 2 management servers and probably 1 SQL server. If you and your colleagues deploy SCOM agents on a daily basis it can easily happen that not all management servers receive the equal amount of agents. Maybe management server 1 has 300 agents to monitor and […]
SCOM 2012 – Export Grey Agents using Powershell
There was a request in the TechNet forum to get all grey agents in SCOM 2012 using Powershell and export the Displayname and HealthState into a file. Because I haven’t seen a solution I thought I will share these few lines of code maybe you can use them also. #Import the OperationsManager module Import-Module OperationsManager […]
SCOM 2012 – Get Agent Failover Management Server
Because of an issue I needed to get the failover management servers of the agents. Well, because I like to fool around with Powershell I thought I would write a short script. Just to give you some background how I figured it out. First I got the members of the Get-SCOMAgent command by typing: Get-SCOMAgent […]