question

AnishJain-8644 avatar image
0 Votes"
AnishJain-8644 asked

Replacement of Deprecated SCOM SDK Commands

Hello,

We have an application that is integrated with SCOM. We are using various methods from the management group for getting different data. But as per documentation :

GetMonitoringPerformanceData() and some other similar performance APIs are now obsolete.

Previous Question: https://social.technet.microsoft.com/Forums/en-US/9aa5e8fe-963d-42f0-a273-a791efe70474/different-ways-of-scom-integration-with-third-party-applications?forum=operationsmanagergeneral#8cec2d3c-407b-4c3c-9184-295396899054

I can see that there are various updates now. On this link, we can see the new command mentioned to be used instead of this one.

We were using GetMonitoringPerformanceDataReader() and it did not have any parameters to be passed in this function. The replacement for this would be GetMonitoringPerformanceDataReader(MonitoringPerformanceDataCriteria). So, we need to compulsory pass criteria in it.


Earlier the case was it brought all data and our use case remain the same, so we need to choose a condition that brings all the data.

These were some criteria we thought of:

  • CounterName LIKE '%'

  • CounterName IS NOT NULL

  • CounterName LIKE '%' OR CounterName IS NULL

  • CounterName is NULL OR CounterName IS NOT NULL

It might be the case that in our environment we don't get certain events or edge case events.

Can you suggest what would be the best criteria which we can use so that our functionality works the same before replacing it with new command?


Thanks

CC: @LeonLaude

msc-operations-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers