Home » 2006 » October

Monthly Archives: October 2006

DHCP MP

A new version of DHCP management pack is available. The following issues are fixed

  • “Could not parse the output of netsh.exe” 
  • False alerts about DHCP not authorized

File Name: Microsoft_Windows_Dynamic_Host_Configuration_Protocol_MOM_2005_MP.msi
Version: 05.0.3500.0000
Date Published: 10/27/2006
Language: English

You can download it here

Don´t forget to backup your MP before you import a new version.

Book of the day

Microsoft Operations Manager 2005 Field Guide (Expert’s Voice) (Paperback)
by Andy Dominey and Garry Meaburn

Andy Dominey is a well known name in MOM forums and news groups.

  • Paperback: 304 pages
  • Publisher: Apress (October 20, 2006)
  • Language: English
  • ISBN-10: 1590597095
  • ISBN-13: 978-1590597095

The book at Amazone.com

Discovery and installation of agenter with ManualMC.txt

MOM 2005 use the file ManualMC.txt as a alternative to add computers that will be monitored. MOM will install agent on all computers that are in the file, but it can be boring mission to keep that file updated all the time. I have done a script that will quest Active Directory for computers in a OU. The result will then be written to ManualMC.txt. You can also add some machines in the script, so all computers don’t need to be in the same OU.  Setup this script as a schedule task to run sometime every day.

Next time MOM run discovery a agent will be installed on all machines, or they will be placed under pending actions. That depends on your global settings. If you don’t want a machine to have a agent anymore, you can delete the name from ManualMC.txt and MOM will uninstall the agent at next discovery.

Machines in ManualMC.txt will be excluded if there is a exclude rule in the discovery settings.

You will find ManualMC.txt here %SYSTEM ROOT%\Program Files\Microsoft Operations Manager 2005\

This will be a default function in SCOM 2007. Before your start working with the script you will need to change

  • LDAP path
  • Path to the ManualMC.txt file
  • Computer name for computers that always will be included. If you want to add more than two you can add more Computer(X) lines, and also add the first Dom Computer (2) number.

'===========================================
'Machines that always will be included
'===========================================

Dim Computers(2)

Computers(0) = "APP03.DOMAIN.LOCAL"
Computers(1) = "APP02.DOMAIN.LOCAL"
Computers(2) = "APP01.DOMAIN.LOCAL"

'===========================================
'Add machines from list above
'===========================================

Dim i
Dim OutStr

Const ForAppending = 8
Const ForWriting = 2

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile _
("C:\manualmc.txt ", ForWriting)

For i = 0 to UBound(Computers)
objFile.WriteLine Computers(i)
Next

'===========================================
'Query Active Directory for computer objects
'===========================================

Const ADS_SCOPE_SUBTREE = 2

Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"

Set objCOmmand.ActiveConnection = objConnection
objCommand.CommandText = _
"Select Name, Location from 'LDAP://OU=Fabrikam,DC=europe,DC=fabrikam,DC=net' " _
& "Where objectClass='computer'"
objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
Set objRecordSet = objCommand.Execute
objRecordSet.MoveFirst

'===========================================
'Add machines from Active Directory result
'===========================================

Do Until objRecordSet.EOF
objFile.WriteLine objRecordSet.Fields("Name").Value
objRecordSet.MoveNext
Loop

'===========================================
'Close file
'===========================================

objFile.Close

Book of the day

Microsoft Operations Manager 2005 Unleashed: With a Preview of Operations Manager 2007
by Kerrie Meyler, Cameron Fuller, Chris Amaris, John Joyner and Alec Minty.

  • Paperback: 984 pages
  • Publisher: Sams; Bk&CD-Rom edition (November 29, 2006)
  • Language: English
  • ISBN-10: 067232928X
  • ISBN-13: 978-0672329289

The book at Amazon.com

Uppdatera custom fields

When you start understand how MOM 2005 works you will most likely implement new functions and rebuild some default functions. A good way to do this is by script. MOM support both VBscript, Jscript and Perl script. In this guide I will show you what you can do with alert custom fields . The included script will take information from an alert, ask questions against AD and update the custom fields.

You can download the guide here

MOM 2005 Database Fundamentals

I have written a article about operation and maintenance of the OnePoint database and MOM Reporting database, SystemCenterReporting.

I the article above I discuss how to backup management packs. I have written a how to guide about that script I mention.

TechNet Webcast

Some interesting webcast the in nearest future Â