[OpsMgr] enumerate all rules/monitors names associated with a script (vbs/ps1)

Posted: September 12, 2011 in SCOM, SCOM 2007

I’ve wanted this script for a really long time.  And at last finalized it as response to this thread

How to find out which Management Pack holds a particular script

The script receives two arguments: RMS name and SCOM Script name.run it as

./GetWorkflowByScriptName.ps1 ‘localhost’ ‘GetSQL2005DBFreeSpace.vbs’

output will be as follows:

             ---Target--- - ---Rules---
       SQL Server 2005 DB - Collect Database Total Free Space (%)
       SQL Server 2005 DB - Collect Transaction Log Size (MB) : DEPRECATED
       SQL Server 2005 DB - Collect Transaction Log Free Space (MB) : DEPRECATED
       SQL Server 2005 DB - Collect Database Size (MB) : DEPRECATED
       SQL Server 2005 DB - Collect Transaction Log Free Space (%) : DEPRECATED
       SQL Server 2005 DB - Collect Database Total Free Space (MB)
             ---Target--- - ---Discoveries---
             ---Target--- - ---Monitors---
       SQL Server 2005 DB - DB Space Percentage Change
       SQL Server 2005 DB - DB Log File Space Free (MB) : DEPRECATED
       SQL Server 2005 DB - DB Total Space
       SQL Server 2005 DB - DB Log File Space Free (%) : DEPRECATED
       SQL Server 2005 DB - DB Space Free (MB) : DEPRECATED

Bits are available here, once downloaded rename to *.zip and upack
GetWorkflowsByScriptName.zip

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s