Can I add a rule or discover one object by SCOM SDK programmatically.
There's no such program. You'll need to look at powershell, but i think that will not help you either (mostly gets/reads, not sets/config), but you could write your own cmdlets as everything is available in the .net code of course. Rob Korving http://jama00.wordpress.com/
February 16th, 2011 11:57am

Hi Rob, Thanks a lot. I was also searching for the .net API to do this task. Could you please point me out the class or API need to used here. I have searched SDK guide but not able to find. Thanks Abhiram
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2011 7:39am

Is it possible to do below tasks by SCOM SDK programmatically(C#) ? 1. Create a rule ( So that some alert will be generated once it breached the rule condition) 2. Discover one object(i.e Programmatically I need to initiate a discovery process on SCOM server for a particular device, that box might be then managed by Agent or Agentless ). Thanks Abhiram
February 26th, 2011 8:41am

i don;t think you'll find something. also i can't point out how to start exactly, nothing is really documented about this. My colleague wrote 3 blogs about setting an override with powershel, maybe it's helpful for ya: http://jama00.wordpress.com/2010/05/12/setting-an-override-on-a-rule-with-powershell-opsmgr-snapin-part-3/.Rob Korving http://jama00.wordpress.com/
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2011 9:04am

Hi The OpsMgr SDK is documented here and has examples in C#: http://msdn.microsoft.com/en-us/library/cc268402.aspx Specifics about monitoring and discovery are shown here: http://msdn.microsoft.com/en-us/library/bb437498.aspx If you give some more information (perhaps an example) about what you are looking to achieve then we might be able to give more detailed advice. You might also get more of a response if you post on the authoring forum. Cheers GrahamView OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
February 26th, 2011 9:14am

Hi, Thanks a lot Graham. Let me give some more detail. We need one client program which will be create the rule as per user requirment without going to SCOM console. User will provide all the required detail then this program will create a Rule(Alert generating Rule) on SCOM server. So that once that Rule will breached, then a new Alert will be generated on SCOM. We need one more program which will take input "machine name", "mode"(Agent/Agentlesss). Then it will initiate SCOM discovery , and will manage that box as Agent or Agentless managed. Thanks, Abhiram
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2011 9:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics