Henrik,

Thanks for the prompt response. I had already looked into this and this does 
not give me what I need. I can put the whole machine in MM easily but I won't 
to ensure only the CPU, Disk and maybe Memory are placed into MM while 
NetBackup is running.

I will keep looking - thanks.


Peter Hakesley | Monitoring & Automation Technical Lead Engineer, Data Centre 
Services

t: +44(0)845 155 6556 ext: 4006
e: phakes...@sccis.net | w: www.scc.com<http://www.scc.com/>
a: SCC, CV1, Cole Valley, 20 Westwood Avenue, Tyseley, Birmingham B11 3RZ



From: listsadmin@lists.myitforum.com [mailto:listsadmin@lists.myitforum.com] On 
Behalf Of Henrik Andersen
Sent: 29/April/2016 12:47
To: ms...@lists.myitforum.com
Subject: [msmom] SV: SCOM 2012 R2 Powershell

Hi!,

With the out-of-the-box there Is no separate class for processor. You can 
enable a discovery for that:
[cid:image003.png@01D1A222.897614E0]

But I don't know it will be to any for help for you, because the CPU monitor is 
targeted at the at instance of the operating system:
[cid:image004.png@01D1A222.897614E0]

So if it is because you want to suppress cpu alerts, that's the class you will 
have to use.




Venlig hilsen


Henrik Andersen


Tools



Direkte +4563636158


Mobile +4521579037


h...@jndata.dk<mailto:h...@jndata.dk>

[cid:image001.gif@01D1A21A.F81A2F10]

JN Data A/S

·

Havsteensvej 4

·

4000 Roskilde


Telefon 63 63 63 63/ Fax 63 63 63 64


www.jndata.dk<http://www.jndata.dk>


[cid:image002.gif@01D1A21A.F81A2F10]
Fra: listsadmin@lists.myitforum.com<mailto:listsadmin@lists.myitforum.com> 
[mailto:listsadmin@lists.myitforum.com] På vegne af Pete Hakesley
Sendt: 29. april 2016 13:10
Til: MSMOM (ms...@lists.myitforum.com<mailto:ms...@lists.myitforum.com>) 
<ms...@lists.myitforum.com<mailto:ms...@lists.myitforum.com>>
Emne: [msmom] SCOM 2012 R2 Powershell

My System SCOM 2012 R2 UR9

I am working on a PowerShell script to be used later for maintenance mode 
start/stop based on Backups running.

The requirement is to identify the disks and the CPU and place these into MM.

So far I have

$Node = "<Name of a Windows Server>"
$MonClass = get-SCOMClass | where-object {$_.Name -eq 
"Microsoft.Windows.LogicalDisk"}
$ObjPool1 = get-SCOMClassInstance -Class $MonClass | where-object {$_.Path 
-match $Node}

This works fine
Example Output

HealthState     InMaintenance   DisplayName
-----------     -------------   -----------
Success         False                M:
Success         False                C:
Success         False                D:

However I cannot find the corresponding class for the Windows CPU e.g. I want 
all the CPU's on a server.

I have tried
Microsoft.Windows.Server.2012.R2.OperatingSystem
Microsoft.Windows.OperatingSystem
And others but I cannot find the class that has the CPU objects within.

Can anyone help please


Peter Hakesley | Monitoring & Automation Technical Lead Engineer, Data Centre 
Services

t: +44(0)845 155 6556 ext: 4006
e: phakes...@sccis.net<mailto:phakes...@sccis.net> | w: 
www.scc.com<http://www.scc.com/>
a: SCC, CV1, Cole Valley, 20 Westwood Avenue, Tyseley, Birmingham B11 3RZ








Reply via email to