<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8755687638002005072</id><updated>2011-11-27T16:03:35.295-08:00</updated><title type='text'>System Management</title><subtitle type='html'>Mohan Muniswamy's Blog on MOM 2005, SCOM and NetIQ Appmanager</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8755687638002005072.post-424032836692833187</id><published>2008-04-23T23:35:00.000-07:00</published><updated>2008-04-23T23:41:49.031-07:00</updated><title type='text'>Running MP2xml.exe in NON-MOM management server</title><content type='html'>Someone in MOMcommunity.com asked us if we could run the MP2XML.exe outside the MOM Management server. So here is how you do it.&lt;br /&gt;&lt;br /&gt;To run MP2xml.exe outside the MOM management servers do the following.&lt;br /&gt;&lt;br /&gt;1) Copy the following DLL's to the MP2XML.exe folder.&lt;br /&gt;2) Register the DLL's (some of the DLL's may not register) &lt;br /&gt;3) Run the MP2XML.exe.&lt;br /&gt;&lt;br /&gt;CMSupportCom.dll&lt;br /&gt;EemConfigSnapIn.dll&lt;br /&gt;EemConsoleSnapIn.dll&lt;br /&gt;EEMEnginePS.dll&lt;br /&gt;EemGuiCommon.dll&lt;br /&gt;EemMonitorSnapIn.dll&lt;br /&gt;EemRulesSnapIn.dll&lt;br /&gt;MOMCommon.dll&lt;br /&gt;MOMConfig.dll&lt;br /&gt;MOMEngine.dll&lt;br /&gt;MOMMPSupport.dll&lt;br /&gt;MonitorGui.dll&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8755687638002005072-424032836692833187?l=mom-netiq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/424032836692833187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8755687638002005072&amp;postID=424032836692833187' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/424032836692833187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/424032836692833187'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/2008/04/running-mp2xmlexe-in-non-mom-management.html' title='Running MP2xml.exe in NON-MOM management server'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8755687638002005072.post-5644622098434815987</id><published>2008-03-19T03:28:00.000-07:00</published><updated>2008-03-19T04:15:56.335-07:00</updated><title type='text'>NetIQ Appmanager - Query to find the Stopped job ID’s and the Server names</title><content type='html'>Below is the SQL query to find the Stopped job ID’s and the Server names in NetIQ AppManager.&lt;br /&gt;&lt;br /&gt;select a.Jobid, b.Name from job a, Object b where a.status&amp;0xFF=4 And a.machineobjid = b.objid AND ParentJobID IS NOT NULL AND ParentJobID &lt;&gt; 0&lt;br /&gt;&lt;br /&gt;I have customized a KS which event/alerts if there are any stopped jobs and restarts then optionally and it also gives you the server name on which the jobs are stopped. Please contact me if you need the KS.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8755687638002005072-5644622098434815987?l=mom-netiq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/5644622098434815987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8755687638002005072&amp;postID=5644622098434815987' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/5644622098434815987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/5644622098434815987'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/2008/03/netiq-appmanager-query-to-find-stopped.html' title='NetIQ Appmanager - Query to find the Stopped job ID’s and the Server names'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8755687638002005072.post-4955634090099441114</id><published>2008-03-19T02:50:00.000-07:00</published><updated>2008-03-19T02:57:38.647-07:00</updated><title type='text'>NetIQ - SQL Query to find Grayed Out machine in NetIQ AppManager</title><content type='html'>Below is the query to find the list of servers which are currently grayed-out in NetIQ AppManager.&lt;br /&gt;&lt;br /&gt;SELECT Name FROM Object WHERE (TypeID = 2 OR TypeID = 16) AND Status &amp; 0x40 = 0x40 AND Status &amp; 0x08000000 = 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8755687638002005072-4955634090099441114?l=mom-netiq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/4955634090099441114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8755687638002005072&amp;postID=4955634090099441114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/4955634090099441114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/4955634090099441114'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/2008/03/netiq-sql-query-to-find-grayed-out.html' title='NetIQ - SQL Query to find Grayed Out machine in NetIQ AppManager'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8755687638002005072.post-3637583478490123429</id><published>2008-01-16T23:38:00.000-08:00</published><updated>2008-01-16T23:45:06.659-08:00</updated><title type='text'>How to query the list of servers currently monitored in NetIQ QDB database?</title><content type='html'>The below query will give all the currently monitored server names of both UNIX and WINDOWS server.&lt;br /&gt;&lt;br /&gt;Execute the following query in the MSSQL query analyzer. &lt;br /&gt;"Select name from object where typeid = '2' or typeid = '16'"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8755687638002005072-3637583478490123429?l=mom-netiq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/3637583478490123429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8755687638002005072&amp;postID=3637583478490123429' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/3637583478490123429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/3637583478490123429'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/2008/01/how-to-query-list-of-servers-currently.html' title='How to query the list of servers currently monitored in NetIQ QDB database?'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8755687638002005072.post-6362262576022227212</id><published>2007-12-28T04:01:00.000-08:00</published><updated>2007-12-28T04:30:36.419-08:00</updated><title type='text'>Sending Custom SNMP Trap from MOM 2005</title><content type='html'>After a long time I have written a script for MOM 2005, someone from my company requested if we could send a custom SNMP trap in MOM 2005, below is a VB script which sends a Custom SNMP trap in MOM 2005.&lt;br /&gt;&lt;br /&gt;The script below uses Trapgen.exe which is freely available from www.ncomtech.com&lt;br /&gt;&lt;br /&gt;You can download the trapgen.exe from &lt;a href="http://ncomtech.com/downloads/windows/trapgen28.zip"&gt;http://ncomtech.com/downloads/windows/trapgen28.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The VBscript below need to run as a response to an Event rule which generates an alert, whenever an alert is raised the script gets the Description, Domain and Machine Name, and the Severity of the alert and then passes it as a parameter to trapgen.exe&lt;br /&gt;&lt;br /&gt;Note: Need to specify the path for the trapgen.exe in the VBscript below and also you can add your own Alert field/object in the script for more information on available Alert fields/object, please check the Microsoft Operations Manager SDK help file. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'**********************Custom SNMP Trap VBScript*********************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Option Explicit&lt;br /&gt;&lt;br /&gt;Dim objAlert&lt;br /&gt;Dim strComputer, strDesc, stralertsource, strRuleName, Stralertlevel &lt;br /&gt;Dim c1,c2,c3,c0&lt;br /&gt;Dim c4,c5,c6&lt;br /&gt;Dim c7,c8,c9&lt;br /&gt;Dim c10,c11,c12,c13,C14, c15&lt;br /&gt;Dim strCmdLine, wshShell&lt;br /&gt;&lt;br /&gt;'Collecting the Alert details&lt;br /&gt;&lt;br /&gt;If (ScriptContext.IsAlert()) Then&lt;br /&gt;&lt;br /&gt;Set objAlert = ScriptContext.Alert&lt;br /&gt;&lt;br /&gt;if objAlert.AlertLevel = 50 then&lt;br /&gt;&lt;br /&gt;Stralertlevel = "Critical Error"&lt;br /&gt;&lt;br /&gt;elseif objAlert.AlertLevel = 60 then&lt;br /&gt;&lt;br /&gt;Stralertlevel = "Security Issue"&lt;br /&gt;&lt;br /&gt;elseif objAlert.AlertLevel = 70 then&lt;br /&gt;&lt;br /&gt;Stralertlevel = "Service Unavailable"&lt;br /&gt;&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;set wshShell = CreateObject ("WSCript.shell")&lt;br /&gt;&lt;br /&gt;'This is a test SNMP trap, obvious you need to provide the path below for trapgen.exe.&lt;br /&gt;&lt;br /&gt;C1 = "e:\trapgen.exe"&lt;br /&gt;C2 = "-d"&lt;br /&gt;c3 = "127.0.0.1"&lt;br /&gt;c4 = "-c"&lt;br /&gt;c5 = "public"&lt;br /&gt;c8 = "-o"&lt;br /&gt;c9 = "1.3.6.1.4.1.2349"&lt;br /&gt;c10 = "-v"&lt;br /&gt;c11 = "1.3.6.1.4.1.2349.2.2.2.3"&lt;br /&gt;C6 = "1.3.6.1.4.1.2349.2.2.2.4"&lt;br /&gt;C7 = "1.3.6.1.4.1.2349.2.2.2.7"&lt;br /&gt;c12 = "STRING" &lt;br /&gt;C13 = chr(34) &amp; objAlert.Description &amp; chr(34)&lt;br /&gt;C14 = chr(34) &amp; objAlert.ComputerDomain &amp; "\" &amp; objAlert.Computer &amp; chr(34)&lt;br /&gt;C15 = chr(34) &amp; Stralertlevel &amp; chr(34)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;strCmdLine = C1 &amp; " " &amp; C2 &amp; " " &amp; c3 &amp; " " &amp; c4 &amp; " " &amp; c5 &amp; " " &amp; c8 &amp; " " &amp; c9 &amp; " " &amp; c10 &amp; " " &amp; c11 &amp; " " &amp; c12 &amp; " " &amp;  c15 &amp; " " &amp; c10 &amp; " " &amp; c6 &amp; " " &amp; c12 &amp; " " &amp; c14 &amp; " " &amp; c10 &amp; " " &amp; c7 &amp; " " &amp; c12 &amp; " " &amp; c13&lt;br /&gt;&lt;br /&gt;wshShell.Run strCmdLine,1,True&lt;br /&gt;&lt;br /&gt;set wshshell = nothing&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;End If&lt;br /&gt; &lt;br /&gt;'*********************************End of Script***************************&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8755687638002005072-6362262576022227212?l=mom-netiq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/6362262576022227212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8755687638002005072&amp;postID=6362262576022227212' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/6362262576022227212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/6362262576022227212'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/2007/12/sending-custom-snmp-trap-from-mom-2005.html' title='Sending Custom SNMP Trap from MOM 2005'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8755687638002005072.post-5790658292730234779</id><published>2007-05-24T07:35:00.000-07:00</published><updated>2007-05-24T08:12:48.527-07:00</updated><title type='text'>FolderSize Monitoring</title><content type='html'>I've created a script that will monitor a Folder size for MOM 2005 if the file size is Greater then the specified threshold then an Event will be raised in MOM.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Parameters - Folder_name (need to specify the Path and the Folder Name), FolderSize_Threshold (Folder size in KB) and GenerateEvent (1 to Generate Success Event and 0 to Disable Success Event)&lt;br /&gt;&lt;br /&gt;Create New Event Rule to Monitor the Event ID 4446 for Folder size is greater then the specified Threshold. &lt;br /&gt;&lt;br /&gt;Create New Event Rule to Monitor the Event ID 4447 for Success Event. &lt;br /&gt;&lt;br /&gt;Create New Event Rule to Monitor the Event ID 4442 for Folder Not found Error.&lt;br /&gt;&lt;br /&gt;If you want to change the folder size to be smaller then Specified threshold then find the below line in the script "if foldersize &gt; FolderSizeThreshold then" and change it to "if foldersize &lt; FolderSizeThreshold then" &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'********************************************************************************&lt;br /&gt;&lt;br /&gt;Option Explicit&lt;br /&gt;&lt;br /&gt;Dim foldersize, fs, folder, bGenerateEvent&lt;br /&gt;Dim Foldername, FolderSizeThreshold&lt;br /&gt;Dim objEvt, objParameters&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Const EVENT_TYPE_SUCCESS = 0&lt;br /&gt;Const EVENT_TYPE_ERROR   = 1&lt;br /&gt;Const EVENT_TYPE_WARNING = 2&lt;br /&gt;Const EVENT_TYPE_INFORMATION = 4&lt;br /&gt;Const EVENT_TYPE_AUDITSUCCESS = 8&lt;br /&gt;Const EVENT_TYPE_AUDITFAILURE = 16&lt;br /&gt;&lt;br /&gt;On Error Resume next&lt;br /&gt;&lt;br /&gt;Set objParameters = ScriptContext.Parameters&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Foldername = objParameters.get("Folder_name")&lt;br /&gt;FolderSizeThreshold = objParameters.get("FolderSize_Threshold")&lt;br /&gt;bGenerateEvent = objParameters.get("GenerateEvent")&lt;br /&gt;&lt;br /&gt;Set fs=CreateObject("Scripting.FileSystemObject") &lt;br /&gt;&lt;br /&gt;Set folder=fs.GetFolder(Foldername)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If Err.Number &gt; 0 Then&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set objEvt = ScriptContext.CreateEvent&lt;br /&gt;objEvt.Message = "Cannot find the folder " &amp; Err.Number &amp; " on the server " &amp; objEvt.LoggingComputer&lt;br /&gt;objEvt.EventSource = "FolderSizeMonitor"&lt;br /&gt;objEvt.EventType = EVENT_TYPE_ERROR&lt;br /&gt;objEvt.EventNumber = 4442&lt;br /&gt;ScriptContext.Submit(objEvt)&lt;br /&gt;ScriptContext.Quit&lt;br /&gt;&lt;br /&gt;Else&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;foldersize = folder.Size / 1024&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if foldersize &gt; FolderSizeThreshold then &lt;br /&gt;Set objEvt = ScriptContext.CreateEvent&lt;br /&gt;objEvt.Message = "The Folder " &amp; Foldername &amp; " on " &amp; objEvt.LoggingComputer &amp; " is greater then the specified threshold (threshold =" &amp; FolderSizeThreshold &amp; ")"&lt;br /&gt;objEvt.EventSource = "FolderSizeMonitor"&lt;br /&gt;objEvt.EventType = EVENT_TYPE_ERROR&lt;br /&gt;objEvt.EventNumber = 4446 &lt;br /&gt;ScriptContext.Submit(objEvt)&lt;br /&gt;ScriptContext.Quit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Else &lt;br /&gt;&lt;br /&gt; if bGenerateEvent = 1 then &lt;br /&gt;&lt;br /&gt; Set objEvt = ScriptContext.CreateEvent&lt;br /&gt; objEvt.Message = "The Folder " &amp; Foldername &amp; " on " &amp; objEvt.LoggingComputer &amp; " is less then the specified threshold (threshold =" &amp; FolderSizeThreshold &amp; ")"&lt;br /&gt; objEvt.EventSource = "FolderSizeMonitor"&lt;br /&gt; objEvt.EventType = EVENT_TYPE_SUCCESS&lt;br /&gt; objEvt.EventNumber = 4447 &lt;br /&gt; ScriptContext.Submit(objEvt)&lt;br /&gt; ScriptContext.Quit&lt;br /&gt;&lt;br /&gt;End if&lt;br /&gt;&lt;br /&gt;End If &lt;br /&gt;&lt;br /&gt;End if&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8755687638002005072-5790658292730234779?l=mom-netiq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/5790658292730234779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8755687638002005072&amp;postID=5790658292730234779' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/5790658292730234779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/5790658292730234779'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/2007/05/parameters-foldername-need-to-specify.html' title='FolderSize Monitoring'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8755687638002005072.post-5597127329510182676</id><published>2007-05-24T07:31:00.000-07:00</published><updated>2007-05-24T08:11:57.932-07:00</updated><title type='text'>Recent MOM Alerts</title><content type='html'>I've created a SQL query to generate Recent MOM alerts in MOM.&lt;br /&gt;&lt;br /&gt;Recent MOM Alerts&lt;br /&gt;&lt;br /&gt;The below query need to be run against OnePoint database and you need specify the date, time and the server name.&lt;br /&gt;This query will generate only alerts from warning and above and the alerts which are not resolved, you could also change the alert severity by the changing the AlertLevel value.&lt;br /&gt;&lt;br /&gt;-******************************************************************************&lt;br /&gt;-- Below is the Severity (AlertLevel) values for the MOM alerts in MOM 2005.&lt;br /&gt;-- Severity Value:&lt;br /&gt;-- SUCCESS ALERT = 10&lt;br /&gt;-- INFORMATION ALERT= 20&lt;br /&gt;-- WARNING ALERT = 30&lt;br /&gt;-- ERROR ALERT = 40&lt;br /&gt;-- CRITICAL ERROR ALERT= 50&lt;br /&gt;-- SECURITY BREACH ALERT = 60&lt;br /&gt;-- SERVICE UNAVAILABLE ALERT = 70&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;-- SQL Query:&lt;br /&gt;&lt;br /&gt;--***************************&lt;br /&gt;&lt;br /&gt;Declare @SDateTime DateTime&lt;br /&gt;Declare @EDateTime DateTime&lt;br /&gt;Declare @Server varchar(30)&lt;br /&gt;Declare @ID Varchar(1000)&lt;br /&gt;&lt;br /&gt;--***************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SET @SDateTime = '10/05/2006 12:00:00 AM'    -- Format MM/DD/YYYY 12:00:00 AM/PM&lt;br /&gt;SET @EDateTime = '10/12/2006 12:00:00 AM'    -- Format MM/DD/YYYY 12:00:00 AM/PM&lt;br /&gt;SET @Server = 'your Server name'   &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;select @ID = idComputer  from computer where name = @server&lt;br /&gt;Select Name, Description, Culprit, AlertLevel, ResolutionState, RepeatCount, TimeOffirstevent, TimeofLastevent from alert WHERE (TimeOfFirstEvent BETWEEN @SDateTime AND @EDateTime) And (TimeOfLastEvent BETWEEN @SDateTime AND @EDateTime) AND idComputer=@ID and AlertLevel &gt; 20 and ResolutionState &lt;&gt; 255&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8755687638002005072-5597127329510182676?l=mom-netiq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/5597127329510182676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8755687638002005072&amp;postID=5597127329510182676' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/5597127329510182676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/5597127329510182676'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/2007/05/ive-created-sql-query-to-generate.html' title='Recent MOM Alerts'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8755687638002005072.post-1726899327516422017</id><published>2007-05-24T06:59:00.000-07:00</published><updated>2007-05-24T07:23:15.727-07:00</updated><title type='text'>FileSize Monitoring for MOM 2005</title><content type='html'>&lt;span style="font-family:courier new;"&gt;I've created a script that will monitor a file size for MOM 2005 if the file size is less then the specified threshold it will generate and event in MOM.&lt;br /&gt;&lt;br /&gt;NAME: FilesizeMonitor.vbs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Parameters - File_name (need to specify the Path and the file Name)and FileSize_Threshold (File size in KB)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Create New Event Rule to Monitor the Event ID 4444 for File Threshold Exceed and Event 4441 for File Not found Error.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;'*****************************************************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Option Explicit&lt;br /&gt;Dim filesize, fs, file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Dim Filename, FileSizeThreshold&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Dim objEvt, objParameters&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;Const EVENT_TYPE_SUCCESS = 0&lt;br /&gt;Const EVENT_TYPE_ERROR   = 1&lt;br /&gt;Const EVENT_TYPE_WARNING = 2&lt;br /&gt;Const EVENT_TYPE_INFORMATION = 4&lt;br /&gt;Const EVENT_TYPE_AUDITSUCCESS = 8&lt;br /&gt;Const EVENT_TYPE_AUDITFAILURE = 16&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On Error Resume next&lt;br /&gt;&lt;br /&gt;Set objParameters = ScriptContext.Parameters&lt;br /&gt;Filename = objParameters.get("File_name")&lt;br /&gt;FileSizeThreshold = objParameters.get("FileSize_Threshold")&lt;br /&gt;&lt;br /&gt;Set fs=CreateObject("Scripting.FileSystemObject")&lt;br /&gt;Set file=fs.GetFile(Filename)&lt;br /&gt;&lt;br /&gt;If Err.Number &gt; 0 Then&lt;br /&gt;&lt;br /&gt;Set objEvt = ScriptContext.CreateEvent&lt;br /&gt;objEvt.Message = "Cannot find the file " &amp; Filename &amp;amp; " on the server " &amp; objEvt.LoggingComputer&lt;br /&gt;objEvt.EventSource = "FileSizeMonitor"&lt;br /&gt;objEvt.EventType = EVENT_TYPE_ERROR&lt;br /&gt;&lt;div align="left"&gt;objEvt.EventNumber = 4441&lt;/div&gt;&lt;div align="left"&gt; &lt;/div&gt;&lt;div align="left"&gt;ScriptContext.Submit(objEvt)&lt;/div&gt;&lt;div align="left"&gt;ScriptContext.Quit&lt;br /&gt;Else&lt;br /&gt;filesize = file.Size / 1024&lt;/div&gt;&lt;div align="left"&gt; &lt;/div&gt;&lt;div align="left"&gt;if filesize &lt;&gt;&lt;div align="left"&gt;Set objEvt = ScriptContext.CreateEvent&lt;/div&gt;&lt;div align="left"&gt;objEvt.Message = "The File " &amp; Filename &amp;amp; " on " &amp; objEvt.LoggingComputer &amp;amp; " is less then the specified threshold (threshold =" &amp; FileSizeThreshold &amp;amp; ")"&lt;/div&gt;&lt;div align="left"&gt;objEvt.EventSource = "FileSizeMonitor"&lt;/div&gt;&lt;div align="left"&gt;objEvt.EventType = EVENT_TYPE_ERROR&lt;/div&gt;&lt;div align="left"&gt;objEvt.EventNumber = 4444 &lt;/div&gt;&lt;div align="left"&gt;ScriptContext.Submit(objEvt)&lt;/div&gt;&lt;div align="left"&gt;ScriptContext.Quit&lt;/div&gt;&lt;div align="left"&gt; &lt;/div&gt;&lt;div align="left"&gt;End If&lt;br /&gt;End if&lt;/div&gt;&lt;div align="left"&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8755687638002005072-1726899327516422017?l=mom-netiq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mom-netiq.blogspot.com/feeds/1726899327516422017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8755687638002005072&amp;postID=1726899327516422017' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/1726899327516422017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8755687638002005072/posts/default/1726899327516422017'/><link rel='alternate' type='text/html' href='http://mom-netiq.blogspot.com/2007/05/filesize-monitoring-for-mom-2005.html' title='FileSize Monitoring for MOM 2005'/><author><name>Mohan Muniswamy</name><uri>http://www.blogger.com/profile/12461027364371205530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry></feed>
