We’ve got quite a lot of 2008 and 2008 R2 VMs. I’m having problems with the CPU % processor time metric. For 2008 servers it’s ‘Processor - % Processor Time’, but for 2008 R2 servers it’s ‘Processor Information / % Processor Time’. This means on the Server 2008 perspective that I often have a blank CPU graph, depending on which metric is selected and whether it’s an R2 or non R2 server!
Is there a way I can pick one metric that will show % Processor Time regardless of whether it’s 2008 or 2008 R2? I tried to create a 2008 R2 perspective, but that resulted in all of the 2008 Non R2 computers having no CPU information ?
I haven’t tested this, but give it a try - When you create the perspective, try creating the perspective “For Members Of”. you should have an option to target it to a class. From there, choose “Windows Server 2008 Computer” as your class. Then repeat for “Windows Server 2008 r2 Computer” (using correct metric of course)
That was only the required perspective will show for each OS.
Targeting metrics can be painful if you’re not experienced with SCOM. I’ll show you how to get the target for metrics using the SCOM console and PowerShell below.
In the SCOM console, you can get the rule target (class) by opening performance view (right click object > open > performance view) and opening the Rule properties:
Which shows:
Where the Rule target is the class you require.
In PowerShell you would expect this to be easy, think again ?
First, we need to pull the correct rule for the object:
Thanks. Unless I’m doing it wrong, that only half works - i think that 2008 R2 computers are also members of the 2008 computers so I get a Windows Server 2008 and a Windows Server 2008 R2 perspective for Server 2008 R2 objects!