Home » System Center Operations Manager 2007 (Page 15)
Category Archives: System Center Operations Manager 2007
Script That Returns Performance Data
I have made a script that will search for a word in a logfile and send the result back as performance data to Ops Mgr 2007.
With default settings will the script look in the IIS log files (C:\windows\system32\LogFiles\W3SVC1\)Â for the last hour and search for the word “POST”. It will then return how many times that word is in the file as performance data.Â
To use this script you can create a new  Collection Rules/Probe Based/Script (Performance), paste the script into the “script box”, input suitable performance mapping information. If you change the “Value” (default $Data/Property[@Name=’PerfValue’]$) you must also change this in the script. Remeber to configure your IIS to generate a logfile for every hour, or modify the script.
I have configure my script to run every 70 minutes synchronize at 00:00. It will then run 10 minutes past every hour and tot up the hour before.
You can download the script here. Send me a e-mail if you have any feedback or suggestions.
Proxy Settings
Ops Mgr product team at Microsoft has made a tool to work with proxy settings in Ops Mgr 2007. With this tool you can easy browse proxy settings. A great way to for example very that all your domain controllers has the correct setting. Current version is 1.1.
You can download the tool here.
Script: Monitor Process
This is a script that will monitor if a process is running, and if it is running, for how long it has been been running. Default settings is monitoring notepad.exe and will generate a local event if it has been running for more than 15 minutes. You can implement this script with timed commands/execute a script
Download the script here
Overrides Explorer Utility
Boris Yanushpolsky in the Ops Mgr product team at Microsoft has made a tool to work with overrides in Ops Mgr 2007. With this tool you can easy browse overrides based on type or computer.
You can download the tool here , current version is 3.2

Monitor Scheduled Tasks with Operations Manager 2007
I saw a question today about monitoring scheduled tasks with Operations Manager 2007. If you open the scheduled task window (start menu > all programs > accessories > system tools > scheduled tasks) you can open a logfile for your scheduled jobs, from the Advanced drop down menu, the default file is C:\Windows\SchedLgU. You can monitor this file from Ops Mgr 2007, and search for words like WARNING and ERROR. In this post you can read how to setup monitoring of a logfile like that.
Links During July
- If you want to monitor SNMP v1 devices you can call to Microsoft and ask for the KB939364 fix. They will give it to you for free.
- Collection 3386: Implementing Microsoft System Center Operations Manager 2007, here
- Systems Center Operations Manager 2007 Documentation seems to have been updated, here
- Remote Operations Manager 2007 Deployment Guide, here
- OpsMgr 2007 MOM 2005 Backward Compatibility MP Update, here
- A updated version of Microsoft Windows Base Operating System MOM 2005 MP (7/11/2007), here
- A updated version of the Microsoft Web Sites and Services Management Pack for MOM 2005, here
- New MOM KB article, “You receive an error message when you try to deploy an agent update to a managed computer in Microsoft Operations Manager 2005“, here
- Keep an Eye on Your Servers with Operations Manager 2007, a article by Pete Zerger, read it here
- Disaster Recovery: OpsMgr 2007 Root Management Server on a Cluster, guide, read it here
- New KB “System Center Operations Manager 2007 cannot find some network devices by using the network device discovery process”, here
- New KB “You cannot deploy an agent by using the Discovery and Installation Wizard in System Center Operations Manager 2007”, here
Operations Manager 2007 and Data Protection Manager in collaboration
This document is a first look at System Center Data Protection Manager, how to use the product to backup Operations Manager and how to use Operations Manager 2007 to monitor Data Protection Manager.
Download the article here
Active Directory and Exchange Management Pack Shared Script Mappings
I want to inform you about some great information that was recently uploaded to Systemcenterforum.org.
This download contains two Excel spreadsheets containing the shared script mappings for the Active Directory and Exchange management packs, including script name, monitors and rules using the script, as well as object type targeted. Tables list only scripts used by more than one workflow.
Download the file here
RMS Disaster Recovery – part II
In my last post I was doing some test with recovery of the root management server, where I restored a RMS without the encryption key. In this lab I will promote my second management server to RMS and then I will switch back the RMS role again. I have a root management server (RMS) named CO-OPSMGR-RMS and my other management server CO-OPSMGR-ACS. Â
First I need to do a backup of the RMS encryption key
- Copy SecureStorageBackup.exe from the installation CD (X:\SupportTools) to the Ops Mgr installation directory (C:\Program Files\System Center Operations Manager 2007\)
- Open a command prompt and go to the installation directory
- Run the following commando: SecureStorageBackup.exe Backup C:\BackupOfKey.bin
- You will be asked to input a password to protect the file
Now I have a backup of my RMS, C:\BackupOfKey.bin. The next step is to import the excryption key to the other management server, and then promote the server to RMS. On your management server (non RMS):Â
- Copy SecureStorageBackup.exe from the installation CD (X:\SupportTools) to the Ops Mgr installation directory (C:\Program Files\System Center Operations Manager 2007\)
- Copy ManagementServerConfigTool.exe from the installation CD (X:\SupportTools) to the Ops Mgr installation directory (C:\Program Files\System Center Operations Manager 2007\)
- Copy the encryption key backup from the RMS to the other management server Ops Mgr installation directory
- Open a command prompt and go to the installation directory
- Run the following command: SecureStorageBackup.exe Restore BackupOfKey.bin
- You will be asked to input a password
- Verify that the key was successfully restored
- Run the flollowing command: ManagementServerConfigTool.exe promoteRMS
- You will see a warning, read it and then press Y and enter
- Make sure you get a “PromoteRMS performed successfully” (also look for any information about additional commands that needs to be run on the orginal RMS)
If you new management server cant contact your orginal RMS you will have to run the following command on the orginal RMS, “ManagementServerConfigTool.exe UpdateDemotedRMS”, but dont worry, the ManagementServerConfigTool.exe will tell you to run it if necessary.
If you start the Ops Mgr console on your orgnal RMS you will have to choose to connect to your new RMS, as the SDK service is no longer running local.
I read somewhere that reporting will not work on the new RMS, and I can confirm that. If I start the console on the new RMS and click reporting a get a “Loading reporting hierarchy failed” message. But if the orginal RMS is online, even as a normal management server, the reporting part is working from the new RMS.
To restore the RMS role back to your orginal RMS
- Open a command prompt on your orginal RMS and go to the Ops Mgr installation directory
- Run the following command: ManagementServerConfigTool.exe promoteRMS
- You will see a warning, read it and then press Y and enter
- Make sure you get a “PromoteRMS performed successfully” (also look for any information about additional commands that needs to be run on the orginal RMS)
If you new RMS can´t contact your current RMS you will have to run the following command on the current RMS, “ManagementServerConfigTool.exe UpdateDemotedRMS”, but dont worry, the ManagementServerConfigTool.exe will tell you to run it if necessary.
That should do it, now your orginal RMS is the RMS again.
Script: Check Account Status
This is two simple script to check if a account is enable or disable. If enable, a local event will be created. In this example I check if the Guest account is enable, if it is a local event will be generated. You can then pickup that event with a event rule.
strUser = "LDAP://cn=Guest,cn=Users,dc=contoso,dc=internal"Set objUser = GetObject _
 (strUser)
Â
If objUser.AccountDisabled = FALSE Then
 Const EVENT_WARNING = 2
 Set objShell = Wscript.CreateObject("Wscript.Shell")
 objShell.LogEvent EVENT_WARNING, _
       "The account " & strUser & " is no longer disable. Please investigate."
End If
If you want to check all accounts in a OU you can use the this script. It will check a OU named Service_accounts
set objOU = GetObject _
   ("LDAP://OU=Service_Accounts,DC=contoso,DC=internal")
Â
ObjOU.Filter= Array("user")For Each objUser in ObjOU
Â
 strUser = "LDAP://" + objUser.distinguishedName
 Set objUser = GetObject _
  (strUser)
Â
 If objUser.AccountDisabled = FALSE Then
 Const EVENT_WARNING = 2
 Set objShell = Wscript.CreateObject("Wscript.Shell")
 objShell.LogEvent EVENT_WARNING, _
       "The account " & strUser & " is no longer disable. Please investigate."
End If
Next
Recent Comments