Home » Articles posted by Anders Bengtsson (Page 44)

Author Archives: Anders Bengtsson

MOM 2005 and WIN SRV 2003 SP2

According to this KB Microsoft Operations Manager 2005 will work with Windows Server 2003 SP2.

Operations Manager 2007 is RTM

System Center Operations Manager 2007 is RTM, Released to Manufacturing. Build 06.0.5000.0 was the golden version. There will be a trial version available soon, at Microsoft System Center webpage, here.

MOMResources.org v2 – RTM 03/23/2007

Finally the new site has arrived – with new features you requested, as well as a new name! To reflect our expanding focus on Operations Manager 2007 and other components of the Microsoft System Center Suite, the new site has been dubbed systemcenterforum.org.

We’ll have a strong focus on the successor to MOM 2005, offering expert guidance and support from both a conceptual perspective as well as the detailed “hands on” aspects of design, implementation and administration. We’ll also bring you System Center and industry-related news relevant to the IT operations management space, as well as reviews of 3rd party ISV offerings, which will be a greatly expanding field for the new generation of the MS operations management platform.

New features on the site include indexed search, RSS (both category feeds and a master site rollup including all new additions), an Events Calendar and searchable FAQs. Note that the first download from the rollup feed may include some migrated content.

Existing momresources.org content – We’ve moved the existing downloads from MOMResources.org to the new site, where it is fully indexed and searchable. We’ll also leave the existing content downloadable via their original momresources.org URL’s to respect the many references present in the MS newsgroups and various community sites.

Check last modified for a directory

I have done a simple script to check last modified on all files in a directory. This example will generate a local event if files are older then 2 months.

strComputer = "."
Const EVENT_WARNING = 2
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colFileList = objWMIService.ExecQuery _
    ("ASSOCIATORS OF {Win32_Directory.Name='C:\'} Where " _
        & "ResultClass = CIM_DataFile")

For Each objFile In colFileList
    Set objFSO = CreateObject("Scripting.FileSystemObject")
 Set objFile = objFSO.GetFile(objFile.Name)
 
 Set objShell = CreateObject("Wscript.Shell")
 If DateDiff("m", objFile.DateLastModified, Now) > 2 Then
 objShell.LogEvent EVENT_WARNING, _
 "objFile is older than 2 months. Please investigate. The file is: " & objFile
 end If
Next

For more settings, please see this post.

For more settings, please see post.

Management Pack Objects OpsMgr 2007

Are you running OM 2007 yet? If you do, you have presumably noticed all new features.  When you look in the Authoring pane of the Operations Console you will see a number of new features under management pack objects. In this post I will try to explain some of the news regarding management packs.

 

Attributes
Attributes are almost the same as in MOM 2005, but here are a couple of news that you should know as a OM 2007 administrator. In MOM 2005 a attribute check one registry key or a registry value. In OM 2007 a attribute can check the registry or WMI query, this is controlled by the “Discovery Type”. When creating an attribute an object type must be selected as a target for it. A object type can include a number of attributes, for example a number of registry values. You can then create a group that has a dynamic inclusion rule for servers that only have that object type. In MOM 2005 you did this with a forumla at the computer group object.  

Monitors
What is the main diffrence between a rule and a monitor?

  • Monitors exists for every instance in the system, rules act independently of one another
  • Monitors are the only thing that can affect the state of an instance
  • For example, a monitor can be used to estimate the state of a event (if it exist) or the value of a performance counter. The result of that control the health state of a target and the alerts that are generated. There are three types of monitors:

  • Unit monitors (created to monitor specific part of a application, device or service)
  • Aggregate rollup monitors (this type of monitors roll up the health of monitors beneath them according to a defined algorithm.)
  • Dependency rollup monitors (roll up health state from targets linked by either a hosting or a membership relationship)
  • Object Discoveries
    Object Discoveries are used to find objects in the network that need to be monitored. In a management pack there are a number of types of objects that the management pack monitors. Every management pack also includes object discoveries to find the specific objects on the network that are of the types monitored by the management pack. Under the object discoveries node you will see a list of all object discoveries in the management group.

    Rules
    Rules are like rules in MOM 2005, used to collect data and generate alerts. Rules can be used for a large number of reasons, the most common scenarios are:

  • Collect events from Windows event logs
  • Collect SNMP events, SNMP traps and SNMP Performance
  • Collect Windows performance data
  • Collect WMI performance data
  • Collect event and performance data from scripts
  • Alert on Windows events and/or SNMP traps
  • Tasks
    Tasks are used to run commands/action on managed machines. A great feature in OpsMgr 2007 is the possibility to combine run-as accounts with tasks. The default account for tasks are the action account.

    Views
    Views are groups of managed objects that have commonality, which is defined in the view properties. When you select a view a database query is made and the result of the query are displayed in the result pane. There are a number of views that you can access from the opertions console

  • Alert View (Display alerts that meet specific criteria, for example all SQL alerts)
  • Event View (Display events that meet specific cirtiera)
  • State View (Display relationship between components, computers and computer groups)
  • Performance View (View performance objects and counters, also historical operations data
  • Diagram View (View a praphical view of a set of objects and how they relate to each other)
  • Task Status View (Display tasks that meet specific criteria)
  • Web Page View (Displays a Web page)
  • Dashboard View (View any data that OpsMgr collect in two diffrent view types side by side on one window, for example logical disk state and logocal disk alerts.)
  •  

    System Center Updates Publisher

    System Center Updates Publisher is an add-on application designed to extend the software update management functionality in System Center Essentials 2007. It provides SCE administrators the ability to import, create, and publish custom software update information to their SCE server. By using the Updates Publisher to define a custom software update and publish it to the server, a SCE administrator can begin detecting and deploying that update to the client and server computers in their organization. The System Center Updates Publisher enables SCE administrators to do the following:

  • Create the correct applicability and deployment metadata for an update that can be managed through SCE
  • Import catalogs of updates from third-parties and from within the customer’s own organization
  • Export and share these software updates catalogs
  • Manage custom software updates information
  • Source: MS Connect webpage

    You can download it from the MS Connect website, here.

    Verify that a File Exists

    This is a simple script that will check if a file exists, if not it will generate a warning event in the local event viewer. You can pick up that event with a rule from MOM. In this example, the script verify if C:\pagefile.sys exists.

    Set objFSO = CreateObject(“Scripting.FileSystemObject”)

    strFile = “C:\pagefile.sys”

    If objFSO.FileExists(strFile) Then
        Set objFolder = objFSO.GetFile(strFile)
    Else
        Const EVENT_WARNING = 2
        Set objShell = CreateObject(“Wscript.Shell”)
        objShell.LogEvent 2, strFile & ” is not accessible.”
    End If

    Updated: Configuring Notification in OM 2007

    Pete and I updated our guide on configuration of notification in OM 2007. The updated version includes steps for configuration of self-service notification as review of enhancements in the notification engine. You can download the new version here

    New Newsgroups

    There has been beta news groups for a while but today a number of public news group open for System Center Operation Manager 2007. You will find them at news.microsoft.com , their names are microsoft.public.opsmgr.*

    See you there !

    Links during February

    • Microsoft System Center is a family of IT management solutions (including Operations Manager and Systems Management Server) designed to help you manage your mission-critical enterprise systems and applications. See how these enterprise companies are using System Center solutions today. Design For Big
    • Getting Started Using System Center Operations Manager Command Shell, read more here.
    • Microsoft System Center, new site here
    • OM 2007 Webcast. There are only three today, but when RTM is here there will be 26. You will find them here
    • My friend in Denmark, Sören, has made a report about computers in maintenance mode, you can download it here
    • See the System center roadmap here
    • Upcoming Webcasts System Center, here