<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tim Mintner : MOM</title><link>http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx</link><description>Tags: MOM</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Getting Operations Manager 2007 Overrides with Powershell</title><link>http://blogs.technet.com/tmintner/archive/2006/12/06/getting-operations-manager-2007-overrides-with-powershell.aspx</link><pubDate>Thu, 07 Dec 2006 04:55:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:545895</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/545895.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=545895</wfw:commentRss><description>&lt;p&gt;I am currently on an Operations Manager 2007 project and it's been a lot of fun so far.&amp;nbsp; One of the new concepts of Operations Manager 2007 is that any change made to the provided management packs are done through the use of Overrides.&amp;nbsp; Overrides were very difficult to manage and create in MOM 2005 but they are really simple to implement and change in Operations Manager 2007.&amp;nbsp; By default all Overrides are placed in a separate Management Pack called Default Management Pack.&amp;nbsp; This allows all of your custom settings to be mainted when upgrading your Management Packs.&lt;/p&gt; &lt;p&gt;Opeations Manager 2007 also has a great number of commands available to manage the product through Windows Powershell.&amp;nbsp; One of the commands that I found this week is called get-override.&amp;nbsp; After playing with this command a bit I found that I could run this simple command to give me a list of all of the overrides I have configured:&lt;/p&gt; &lt;p&gt;get-managementpack | get-override | format-list name,parameter,value&lt;/p&gt; &lt;p&gt;This will output a list of all of the overrides from all of the management packs that are installed giving me the name of the Override, the parameter that was changed, and the value of that changed parameter.&lt;/p&gt; &lt;p&gt;Have you started testing Operations Manager 2007 yet?&amp;nbsp; If not sign up today for the beta at &lt;a href="http://connect.microsoft.com"&gt;http://connect.microsoft.com&lt;/a&gt;!&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=545895" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category><category domain="http://blogs.technet.com/tmintner/archive/tags/Powershell/default.aspx">Powershell</category></item><item><title>System Center Operations Manager 2007 Shell</title><link>http://blogs.technet.com/tmintner/archive/2006/11/13/system-center-operations-manager-2007-shell.aspx</link><pubDate>Tue, 14 Nov 2006 01:38:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:515259</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/515259.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=515259</wfw:commentRss><description>&lt;p&gt;In case you are not aware, you can use Powershell to manage many aspects of Operations Manager 2007.&amp;nbsp; The Shell team for OM 2007 has started a blog and has a nice introduction to the new tool(s) here: &lt;a title="http://blogs.msdn.com/scshell/" href="http://blogs.msdn.com/scshell/"&gt;http://blogs.msdn.com/scshell/&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=515259" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category></item><item><title>Please upload your MOM Reports!</title><link>http://blogs.technet.com/tmintner/archive/2006/06/27/439076.aspx</link><pubDate>Tue, 27 Jun 2006 23:41:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:439076</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/439076.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=439076</wfw:commentRss><description>&lt;P&gt;&lt;A href="http://myitforum.com/cs2/blogs/rtrent"&gt;Rod Trent&lt;/A&gt;&amp;nbsp;has created an upload area for MOM 2005 reports and Management Packs.&amp;nbsp; I know that creating custom reports can often be challenging to a non DBA so if you have taken the time to create custom reports please share them with the Management Community.&lt;/P&gt;
&lt;P&gt;To upload the reports and management packs follow the instructions here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://myitforum.com/cs2/blogs/rtrent/archive/2006/06/27/21567.aspx"&gt;http://myitforum.com/cs2/blogs/rtrent/archive/2006/06/27/21567.aspx&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=439076" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category></item><item><title>How to view more Performance Data in the MOM Operator Console</title><link>http://blogs.technet.com/tmintner/archive/2005/12/20/416319.aspx</link><pubDate>Wed, 21 Dec 2005 01:30:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:416319</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/416319.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=416319</wfw:commentRss><description>&lt;P&gt;The MOM Operator Console allows you to create some pretty neat Performance history reports.&amp;nbsp; Unforunately the default view shows only two hours worth of data.&amp;nbsp; By creating your own view, you can view up to 4 days worth of data if you have MOM Reporting installed and potentially up to 60 days worth of data if you don't have MOM Reporting installed.&lt;/P&gt;
&lt;P&gt;To create a custom view for Performance data do the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Inside the MOM Operator Console goto My Views&lt;/LI&gt;
&lt;LI&gt;Right click on All My Views and choose New Performance Data View&lt;/LI&gt;
&lt;LI&gt;Choose Performance data that satisfy the specified criteria and click on Next.&lt;/LI&gt;
&lt;LI&gt;Place a check mark next to measured in a specified time period&lt;/LI&gt;
&lt;LI&gt;Double click on the measured in a specified time period and choose Within the last 4 days&lt;/LI&gt;
&lt;LI&gt;Click on OK&lt;/LI&gt;
&lt;LI&gt;Click on Next&lt;/LI&gt;
&lt;LI&gt;Give the View a Name such as All Performance Data for the past 4 days and click on Finish&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Now you will have one view with all of your servers listed and you can view Performance data for the past 4 days!&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=416319" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category></item><item><title>HOW TO FORWARD CUSTOM ATTRIBUTES USING THE MOM TO MOM PRODUCT CONNECTOR</title><link>http://blogs.technet.com/tmintner/archive/2005/12/18/416219.aspx</link><pubDate>Mon, 19 Dec 2005 01:44:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:416219</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/416219.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=416219</wfw:commentRss><description>&lt;P&gt;If you have a large multi-tier MOM environment you might want to forward attributes from a lower level tier to a higher level tier so that you can create custom Console Scopes or Computer Groups that contain members from the lower level tiers.&lt;/P&gt;
&lt;P&gt;In order to forward customer computer attributes to a higher level tier, the MOM GUIDS must be identical between the source and destination server.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;To do this the attributes must created on a MOM server, exported to an AKM file and them imported to all of the servers in the MOM hierarchy.&lt;/P&gt;
&lt;P&gt;Within the MOM 2005 Administrator Console, it is not possible to right click on an attribute and export just the attribute.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The attribute must somehow be associated with a MOM rule group.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;An example of this is to create a Computer Group that uses the attribute then create a Rule Group and assign that Rule Group to the Computer Group that uses the attribute.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The Rule Group can then be exported using the MOM Management Pack export wizard and when that Rule Group is imported, the attributes will be imported as well.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=416219" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category></item><item><title>Installing MOM Reporting where SQL Reporting is on a Separate Server</title><link>http://blogs.technet.com/tmintner/archive/2005/11/23/415016.aspx</link><pubDate>Wed, 23 Nov 2005 23:05:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:415016</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/415016.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=415016</wfw:commentRss><description>If you have a large MOM environment, you might want to have the SQL Reporting server separate from your MOM Reporting and the Reporting Database.&amp;nbsp; In order to do this you must install MOM Reporting on the same server as the Reporting database.&amp;nbsp; However, when you try to do the install the pre-req's will fail with the message ASP.NET is not installed on the server.&amp;nbsp; To get around this all you have to do is install the IIS Management console snap-in from Add/Remove Programs, Add/Remove Windows components.&amp;nbsp; Once the snap in is installed, the pre-req's will pass and the installation will complete.&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=415016" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category></item><item><title>Remove a Management Group from a Multi-Homed MOM 2005 Agent</title><link>http://blogs.technet.com/tmintner/archive/2005/11/22/414971.aspx</link><pubDate>Wed, 23 Nov 2005 01:37:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:414971</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/414971.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=414971</wfw:commentRss><description>&lt;P&gt;If you have changed your MOM configuration and need to remove a Management Group from an agent that is multi-homed, you can run the following command line from your agent computer:&lt;/P&gt;
&lt;P&gt;msiexec /i "\\server\share\momagent.msi &amp;lt;file:///\\server\share\momagent.msi&amp;gt;" /qn &lt;BR&gt;MANAGEMENT_SERVER="MSName" CONFIG_GROUP="NameOfTheCGToRemove" &lt;BR&gt;ACTIONSUSER="momaction" ACTIONSPASSWORD="Password" &lt;BR&gt;ACTIONSDOMAIN="DOMAIN" CONFIG_GROUP_OPERATION="RemoveConfigGroup" &lt;BR&gt;REINSTALL="ALL"&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Just be sure to fill in your specific information.&amp;nbsp; :)&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=414971" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category></item><item><title>Use MOM for SOX compliance</title><link>http://blogs.technet.com/tmintner/archive/2005/11/22/414945.aspx</link><pubDate>Tue, 22 Nov 2005 20:01:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:414945</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/414945.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=414945</wfw:commentRss><description>&lt;P&gt;So you need to start keeping track of all of your audit policies for Sarbanes-Oxley or HIPAA and you have already made an investment in MOM then you shouldn't have to invest in another system just to give you that data.&amp;nbsp; &lt;A href="http://www.manakoa.com/"&gt;Manakoa Systems&lt;/A&gt;&amp;nbsp;just might have the solution for you.&amp;nbsp; Manakoa has created a really nice &lt;A href="http://www.manakoa.com/products/scmp/"&gt;System Controls MP &lt;/A&gt;for MOM 2005.&amp;nbsp; Here are some of the key features for this product:&lt;/P&gt;
&lt;H2&gt;Key Features&lt;/H2&gt;
&lt;P&gt;&lt;STRONG&gt;Facilitates responsive and proactive monitoring&lt;/STRONG&gt; of compliance controls to address regulations by using rule-based templates and prescriptive guidance&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Improves reaction time&lt;/STRONG&gt; with alert notification services for identified control issues&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Centralized reporting&lt;/STRONG&gt; and data analysis with MOM Reporting Services &lt;/P&gt;
&lt;H3&gt;Auditing Features&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Account Management 
&lt;LI&gt;Auditing Integrity 
&lt;LI&gt;Logon Activity 
&lt;LI&gt;Policy Changes 
&lt;LI&gt;Data Access 
&lt;LI&gt;Privileged Use &lt;/LI&gt;&lt;/UL&gt;
&lt;H2&gt;Reporting Services&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;Failed Logon Activity 
&lt;LI&gt;Administrative Account Use 
&lt;LI&gt;Directory &amp;amp; File Access 
&lt;LI&gt;Group Policy Changes 
&lt;LI&gt;User Account Management Activity &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;At only $595 per MOM database, this product seems to provide a whole lot of bang for the buck.&amp;nbsp; Check out their flyer here for some nice screen shots of their product: &lt;A href="http://www.manakoa.com/products/scmp/Manakoa_SCMP_Flyer_072005.pdf"&gt;http://www.manakoa.com/products/scmp/Manakoa_SCMP_Flyer_072005.pdf&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=414945" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category></item><item><title>Script to Alert on Active Number of MOM Operator Consoles</title><link>http://blogs.technet.com/tmintner/archive/2005/11/22/414944.aspx</link><pubDate>Tue, 22 Nov 2005 19:58:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:414944</guid><dc:creator>tmintner</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/tmintner/comments/414944.aspx</comments><wfw:commentRss>http://blogs.technet.com/tmintner/commentrss.aspx?PostID=414944</wfw:commentRss><description>&lt;P&gt;MOM 2005 has a support limit of 15 active MOM Operator Consoles, however there is no built in way to detect and/or alert on the number of consoles that are in use.&amp;nbsp; I have written a little script that does just that.&amp;nbsp; It is not the prettiest script in the world but it functions.&amp;nbsp; :)&lt;/P&gt;
&lt;P&gt;Check it out here:&lt;/P&gt;
&lt;P&gt;Option Explicit&lt;/P&gt;
&lt;P&gt;'*****************************************************************************************************************************************************************&lt;BR&gt;'Script: Active Number of MOM Consoles&lt;BR&gt;'This script will check the Active Number of MOM Consoles and alert if the active number goes beyond the Warning or Error Threshold levels&lt;BR&gt;'Parameters:&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; WarningThreshold - The number of consoles that will generate a Warning Alert&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorThreshold - The number of consoles that will generate an Error Alert&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; CheckInstances - The SQL Server Instance that is running the Onepoint database&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; DatabaseName - The name of the database to run the query against. This should be set to master&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; Query - The SQL query that checks the active number of MOM consoles&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; The query should be:&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT program_name, count(*) FROM Master..sysprocesses WHERE ecid=0 and program_name='Microsoft Operations Manager - DAS Operations Console' GROUP BY program_name ORDER BY count(*) desc&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; InformationalAlert - Turns on debugging information (Have to uncomment lines below)&lt;BR&gt;' Usage:&amp;nbsp; Create a new MOM Script and apply this script to the Microsoft Operations Manager 2005 Databases Computer Group.&amp;nbsp; Create a 10 minute provider.&amp;nbsp; Create an Alert or Respond to Event&lt;BR&gt;'&amp;nbsp;&amp;nbsp; Rule and use the 10 minute provider.&amp;nbsp; Under Event Rule responses, launch a script and choose this script&lt;BR&gt;' The Action Account will need Select permissions on the sysprocesses table in the master database.&amp;nbsp; &lt;BR&gt;'*****************************************************************************************************************************************************************&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;' Alert Constants&lt;BR&gt;CONST ALERT_INFORMATION = 20&lt;BR&gt;CONST ALERT_WARNING = 30&lt;BR&gt;CONST ALERT_ERRROR = 40 &lt;BR&gt;CONST ALERT_CRITICALERROR = 50&lt;BR&gt;CONST ALERT_SERVICEUNAVAILABLE = 70&lt;/P&gt;
&lt;P&gt;'Other constants&lt;BR&gt;Const SCRIPT_NAME = "Active Number of MOM Consoles"&lt;BR&gt;Const CONNECT_ERROR = -2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Sub Main()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dim oParams, blnInformationAlert, sInstances, sDBName, sQuery,aInstances&lt;BR&gt;&amp;nbsp; Dim i, iSuccess, sMessage,inumberofConsoles, ierror, iwarning&lt;BR&gt;&amp;nbsp; &lt;BR&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; If ScriptContext.IsEvent() Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oParams = ScriptContext.Parameters&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iWarning = Oparams.Get("WarningThreshold")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iError = oParams.Get("ErrorThreshold")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sInstances = oParams.Get("CheckInstances")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sDBName = oParams.Get("DatabaseName")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sQuery = oParams.Get("Query")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blnInformationAlert = OParams.Get("InformationalAlert")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oParams = Nothing&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iError = CINT(iError)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iWarning = CINT(iWarning)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (sInstances = "") Or (sDBName = "") Or (sQuery = "") Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if blnInformationAlert Then AlertCreate SCRIPT_NAME,ALERT_WARNING,"The '" &amp;amp; SCRIPT_NAME &amp;amp; "' script ran but had incomplete parameter information. " &amp;amp;_&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Processing cannot continue."&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp; aInstances = Split(sInstances,",")&lt;BR&gt;&amp;nbsp;&amp;nbsp; For i = 0 To UBound(aInstances)&lt;BR&gt;&amp;nbsp;&amp;nbsp; inumberofconsoles = ConnectToSQLInstance(Trim(aInstances(i)), sDBName, sQuery)&lt;BR&gt;&amp;nbsp;&amp;nbsp; If inumberofconsoles &amp;lt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlertCreate SCRIPT_NAME,ALERT_ERRROR,"Failed to connect to " &amp;amp; UCase(aInstances(i)) &amp;amp; " or failed to return a result from the query """ &amp;amp;_&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sQuery &amp;amp; """ against the database " &amp;amp; sDBName &amp;amp; "."&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (inumberofconsoles &amp;gt;= iwarning) AND (inumberofconsoles &amp;lt; iError) Then AlertCreate SCRIPT_NAME, ALERT_WARNING,"The number of Of consoles exceeds or matches the warning theshold.&amp;nbsp; " &amp;amp; inumberofconsoles &amp;amp; " active consoles detected"&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If inumberofconsoles &amp;gt;= iError Then AlertCreate SCRIPT_NAME,ALERT_ERRROR,"The number of Of consoles exceeds or matches the error theshold.&amp;nbsp; " &amp;amp; inumberofconsoles &amp;amp; " active consoles detected"&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp; End if&lt;BR&gt;&amp;nbsp;&amp;nbsp; Next&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sMessage = "The script '" &amp;amp; SCRIPT_NAME &amp;amp; "' can only be executed by an event rule."&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlertCreate SCRIPT_NAME, ALERT_WARNING, sMessage&lt;BR&gt;&amp;nbsp; End If&lt;BR&gt;' To Troubleshoot uncomment the lines below &lt;/P&gt;
&lt;P&gt;' if blnInformationAlert Then&lt;BR&gt;&amp;nbsp;'&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;'&amp;nbsp;&amp;nbsp; sMessage = "The number of Active Consoles is " &amp;amp; inumberofConsoles &amp;amp; "." &amp;amp;_&lt;BR&gt;&amp;nbsp;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "The Error threshold is " &amp;amp; iError &amp;amp; "." &amp;amp;_&lt;BR&gt;&amp;nbsp;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "The Warning threshold is " &amp;amp; iWarning &amp;amp; "."&lt;BR&gt;&amp;nbsp;'&amp;nbsp;&amp;nbsp; AlertCreate Script_Name, ALERT_INFORMATION, sMessage&lt;BR&gt;&amp;nbsp;' End if&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;'*****************************************************************************************&lt;BR&gt;' Function ConnectToSQLIntance&lt;BR&gt;' Paramaters:&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; sInstance - The SQL instance&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; sDatabase - The database name&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; sQuery - The SQL query&lt;BR&gt;' Returns the Active Number of Consoles or CONNECT_ERROR if unable to connect to database&lt;BR&gt;'*****************************************************************************************&lt;/P&gt;
&lt;P&gt;Function ConnectToSQLInstance(sInstance, sDatabase, sQuery)&lt;BR&gt;&amp;nbsp; &lt;BR&gt;&amp;nbsp; Dim oSQLServer, oDatabase, oResults, iconsoles&lt;BR&gt;&amp;nbsp; &lt;BR&gt;&amp;nbsp; On Error Resume Next&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Set oSQLServer = CreateObject("SQLDMO.SQLServer")&lt;BR&gt;&amp;nbsp; oSQLServer.LoginSecure = 1&lt;BR&gt;&amp;nbsp; oSQLServer.Connect sInstance&lt;BR&gt;&amp;nbsp; If Err.number = 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oDatabase = oSQLServer.Databases.Item(sDatabase)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Err.number = 0 Then &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oResults = oDatabase.ExecuteWithResults(sQuery)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Err.number = 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sCheck = OResults.GetColumnString(1,1)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Err.Number = 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If oResults.GetColumnString(1,1) = "" Then &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnectToSQLInstance = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iconsoles = Cint(oResults.GetColumnString(1,2))&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if iconsoles = "" then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnectToSQLInstance = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnectToSQLInstance = iconsoles&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End if&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnectionToSQLInstance = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End if&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnectToSQLInstance = CONNECT_ERROR&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnectToSQLInstance = CONNECT_ERROR&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnectToSQLInstance = CONNECT_ERROR&lt;BR&gt;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp; &lt;BR&gt;&amp;nbsp; On Error Goto 0&lt;BR&gt;End Function&lt;/P&gt;
&lt;P&gt;'*******************************************************************************************&lt;BR&gt;'Function AlertCreate&lt;BR&gt;'Paramaters:&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; sName - The name of the Alert&lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; iLevel - The Error level of the Alert&amp;nbsp; &lt;BR&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; sDecription - Decription of the Alert&lt;BR&gt;' Creates the alert and returns 0 if success and -1 if it fails to create the alert&lt;BR&gt;'*******************************************************************************************&lt;/P&gt;
&lt;P&gt;Function AlertCreate(sName,iLevel,sDescription)&lt;BR&gt;&amp;nbsp; Dim objCreatedAlert&lt;BR&gt;&amp;nbsp; Err.Clear&lt;BR&gt;&amp;nbsp; Set objCreatedAlert = ScriptContext.CreateAlert()&lt;BR&gt;&amp;nbsp; objCreatedAlert.Name = sName&lt;BR&gt;&amp;nbsp; objCreatedAlert.AlertLevel = iLevel&lt;BR&gt;&amp;nbsp; objCreatedAlert.Owner = "[unassigned]"&lt;BR&gt;&amp;nbsp; objCreatedAlert.ResolutionState = 0&lt;BR&gt;&amp;nbsp; objCreatedAlert.Description = sDescription&lt;BR&gt;&amp;nbsp; ScriptContext.Submit(objCreatedAlert)&lt;BR&gt;&amp;nbsp; If Err.number= 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlertCreate = 0&lt;BR&gt;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlertCreate = -1&lt;BR&gt;&amp;nbsp; End if&lt;BR&gt;End Function&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=414944" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/tmintner/archive/tags/MOM/default.aspx">MOM</category></item></channel></rss>