# 2008 server CPU metrics

**URL:** <https://community.squaredup.com/t/2008-server-cpu-metrics/475>\
**Category:** Dashboard Server\
**Tags:** perspectives, 2008-r2, cpu, 2008\
**Created:** [September 28, 2017, 7:42am UTC](https://community.squaredup.com/t/2008-server-cpu-metrics/475 "2017-09-28T07:42:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![astonpa](https://community.squaredup.com/user_avatar/community.squaredup.com/astonpa/32/1088_2.png) [@astonpa](https://community.squaredup.com/u/astonpa)\
**Post date:** [September 28, 2017, 7:42am UTC](https://community.squaredup.com/t/2008-server-cpu-metrics/475/1 "2017-09-28T07:42:04Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![darrenj](https://community.squaredup.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@darrenj](https://community.squaredup.com/u/darrenj)\
**Post date:** [September 28, 2017, 8:56am UTC](https://community.squaredup.com/t/2008-server-cpu-metrics/475/2 "2017-09-28T08:56:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jelly](https://community.squaredup.com/user_avatar/community.squaredup.com/jelly/32/812_2.png) [@Jelly](https://community.squaredup.com/u/Jelly)\
**Post date:** [October 4, 2017, 11:10am UTC](https://community.squaredup.com/t/2008-server-cpu-metrics/475/3 "2017-10-04T11:10:16Z")

</div>

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:

![2017-10-04-11_37_19-Performance-squpscomgroup-Operations-Manager.jpg](https://community-cdn.squaredup.com/original/1X/f9264552405f673de83d76dbabb9264fffe86af7.jpeg)

Which shows:

![2017-10-04-11_37_54-Percent-Memory-Used-Properties.jpg](https://community-cdn.squaredup.com/original/1X/47a27a479d2fae953e412326d4830d3c524fc6c8.jpeg)

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:

_$rule = Get-SCOMRule -DisplayName ‘Percent Memory Used’ -ComputerName ‘[server1.fqdn.net](http://server1.fqdn.net)’_

_$rule_

Which gives us:

_$rule | select DisplayName,Target_

_DisplayName Target_   
_———– ——_   
_Percent Memory Used ManagementPackElementUniqueIdentifier=ce8b3d0d-530c-d1dd-b9b7-1fe321b33a6d_

Not particularly useful, so we need to translate the unique identifier into something useful:

_$target = $rule.Target.ID_

Which gives us:

_$target_

_Guid_   
_—-_   
_ce8b3d0d-530c-d1dd-b9b7-1fe321b33a6d_

This isn’t very useful again, so we need to get a display name for the class:

_$class_

_DisplayName_   
_———–_   
_Windows Server 2012 Operating System_

And there you have it. Not easy, but probably somewhat quicker than the SCOM console (ewww).

---

<div class="post-metadata">

**Author:** ![astonpa](https://community.squaredup.com/user_avatar/community.squaredup.com/astonpa/32/1088_2.png) [@astonpa](https://community.squaredup.com/u/astonpa)\
**Post date:** [September 28, 2017, 10:12am UTC](https://community.squaredup.com/t/2008-server-cpu-metrics/475/4 "2017-09-28T10:12:32Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![astonpa](https://community.squaredup.com/user_avatar/community.squaredup.com/astonpa/32/1088_2.png) [@astonpa](https://community.squaredup.com/u/astonpa)\
**Post date:** [September 28, 2017, 10:28am UTC](https://community.squaredup.com/t/2008-server-cpu-metrics/475/5 "2017-09-28T10:28:21Z")

</div>

Obvious answer is to create a new group and target perspective at that, thanks for giving me the nudge in the right direction!

---

<div class="post-metadata">

**Author:** ![astonpa](https://community.squaredup.com/user_avatar/community.squaredup.com/astonpa/32/1088_2.png) [@astonpa](https://community.squaredup.com/u/astonpa)\
**Post date:** [September 28, 2017, 10:32am UTC](https://community.squaredup.com/t/2008-server-cpu-metrics/475/6 "2017-09-28T10:32:06Z")

</div>

Actually, looks like using Windows 2008 Full computer and Windows 2008 R2 Full computer groups should do it.

---

<div class="post-metadata">

**Author:** ![darrenj](https://community.squaredup.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@darrenj](https://community.squaredup.com/u/darrenj)\
**Post date:** [September 28, 2017, 5:45pm UTC](https://community.squaredup.com/t/2008-server-cpu-metrics/475/7 "2017-09-28T17:45:26Z")

</div>

Awesome!! So many classes…so many to choose from 🙂
