Answered by:
How to get Management Packs, Monitors, Rules, Overrides information based on Agent and created date or last modified date?

Question
-
Hi Guys,
I'm new to SCOM 2007 and powershell language. i want some information about scom management packs.
Its possible to get Management Packs, Monitors, Rules, Overrides information based on Agent and created date or last modified date through Powershell script? If anyone know give the solutions...Requirement #1. Management Packs Name and Last Updated. (This i'll use Get-Managementpack cmdlet and get the information).
Requirement #2. Every Management Pack have Monitors. For that Monitor details (Monitor Name, Class, Threshold, Frequency, Last Updated) based on Agent Agent and Created Date or Last Updated Date.
Requirement #3. Every Monitors have Rule. For that Rule details (Rule Name, Class, Threshold (I nope its not applicable for Rule), Frequency, Last Updated) based on Agent Agent and Created Date or Last Updated Date.
Requirement #4. Override details for Monitor and Rule based on Agent and Created Date or Last Updated Date.
Thanks in advance.
Regards,
Ramesh. C
Thursday, April 21, 2011 7:31 PM
Answers
-
Hi,
Regarding your query, please try the methods in the following articles and see if they can fit your requirements:
What Monitors, Rules and Discoveries are running on an OpsMgr Agent?
MMS Command Shell Presentation
http://blogs.technet.com/b/brianwren/archive/2008/03/11/mms-command-shell-presentation.aspx
Appendix: Monitors and Overrides for Management Packs
http://technet.microsoft.com/en-us/library/ee617132.aspx
Hope this helps.
Thanks.
Nicholas Li - MSFT
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- Proposed as answer by Nicholas Li Thursday, April 28, 2011 10:52 AM
- Marked as answer by Nicholas Li Friday, April 29, 2011 6:20 AM
Monday, April 25, 2011 6:12 AM
All replies
-
Hi,
Regarding your query, please try the methods in the following articles and see if they can fit your requirements:
What Monitors, Rules and Discoveries are running on an OpsMgr Agent?
MMS Command Shell Presentation
http://blogs.technet.com/b/brianwren/archive/2008/03/11/mms-command-shell-presentation.aspx
Appendix: Monitors and Overrides for Management Packs
http://technet.microsoft.com/en-us/library/ee617132.aspx
Hope this helps.
Thanks.
Nicholas Li - MSFT
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- Proposed as answer by Nicholas Li Thursday, April 28, 2011 10:52 AM
- Marked as answer by Nicholas Li Friday, April 29, 2011 6:20 AM
Monday, April 25, 2011 6:12 AM -
I think you have to ask yourselve why you need this information. It is just an enourmous amount of data, volatile since it can be changed at the next change in your environment and probably nobody ever reads this information.
There is no easy answer for requirements 2 till 4. You need to query the database for all rules and overrides, determine which are apllicable to your agent and then create an overview. I don't think this can be done and if it can be done, it won't be an easy query......
There is a healthservice related task in the operations console, which will show you the current active workflows for an agent (Show Running Rules and Monitors for this Health Service) . But normally you only use this when troubleshooting.
Regards,
Marc Klaver
http://jama00.wordpress.com/Tuesday, April 26, 2011 1:03 PM -
Perhaps this is what you are looking for: http://blogs.technet.com/b/stefan_stranger/archive/2010/11/30/what-monitors-rules-and-discoveries-are-running-on-an-opsmgr-agent.aspx
Regards,
Marc Klaver
http://jama00.wordpress.com/Friday, April 29, 2011 5:24 AM