question

RaviBhushan-3339 avatar image
0 Votes"
RaviBhushan-3339 asked Crystal-MSFT commented

Volumes\Drives getting monitored in SCOM

Hi,

I have a query regarding the Logical disk\Drives \Volumes getting monitored in SCOM. Rather than going on health explorer and checking for these one by one is there any other ways or script through which we can extract what are getting monitored along with the temp drives which sit into these volumes. I have to check it for approx 20 servers and issue is these all servers contains at least 4 drives and many more volumes.

With Best Regards,
Ravi

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.

RogerXue-3369 avatar image
1 Vote"
RogerXue-3369 answered RaviBhushan-3339 commented

You may consider to use the following powershell to export all logical disk monitor into files. Each files contains monitors for an instance of logical hard disk


$members=get-scomclass | where-object {$.displayname -like "Logical disk"} |get-scomclassinstance
$Members | ForEach-Object { Export-SCOMEffectiveMonitoringConfiguration -Instance $
-Path ("C:\temp\" + $.path + "" + $.displayname.replace(":","") + ".csv") -RecurseContainedObjects }

Roger

· 1
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.

@RogerXue-3369

Command executed but no CSV file created in the temp path.

Regards,
Ravi

0 Votes 0 ·
CyrAz avatar image
0 Votes"
CyrAz answered

Most common way of achieving this is through a Performance Report. You could also use a SQL query in the datawarehouse (see here for example : https://realworldcomputingblog.wordpress.com/2017/02/09/scom-2012-r2-sql-queries-to-retrieve-scom-performance-data/ )

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.

Crystal-MSFT avatar image
0 Votes"
Crystal-MSFT answered Crystal-MSFT commented

@RaviBhushan-3339, Here is the command I tried for the reference:
Get-SCOMClass -Name "logical*disk" | Get-SCOMClassInstance
101917-image.png

Hope it can help.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (26.9 KiB)
· 1
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.

@RaviBhushan-3339, Hope things are going well. I am writing to see if the commands are what you want. If there's anything unclear, feel free to let us know.

0 Votes 0 ·