How to write custom cmdlet and return an object which can be recognized by scom

Hi 

         A cmdlet was written and finished by our teamWhile running this custom cmdlet,  i could get some information from the PowerShell terminal such as some storage information, capacity information and so on. In addition, this cmdlet uses print method System.Console.WriteLine to print these information. How could I show these information with scom views (such as state view or dashboard view) through coding these cmdlet. (Actually, Only using cmdlet can receive information. )

 

         The health state can be this: healthy == successfully receiving information periodically

                                                           Other state== failing to receive information periodically.

Thanks!

June 22nd, 2015 11:35pm

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

Other recent topics Other recent topics