Ying Li(MVP) at myITforum.com

PowerShell & System Center

OpsMgr – Create a group for SAN attached servers

I need to monitor system event 100 – EMC PowerPath generated error. In my previous blog, I detailed how to setup a monitor/rule to monitor event. The challenge here is that I want to target my monitor/rule to servers attached to EMC SAN. Here is how I did it -

First, I need to create a new WMI based custom attribute in OpsMgr.

In OpsMgr console – click Authoring, expand Management Pack Objects, right click Attributes, choose Create a New Attribute

 

image

Click Next,

image

Next to Discovery Type, choose WMI Query, Target Windows Computer, OpsMgr will automatically change the Target to Windows Computer_Extended and I changed that to Windows Computer_SanAttached. Then pick an unsealed Management Pack, then click Next

image

In this screen, I specify the WMI Namespace is root\cimv2 and the WMI query is

Select * From Win32_DiskDrive Where Model=”PowerDevice by PowerPath”

Property Name is Model and the query interval I set it to 3600 second as we don’t pop up a SAN attached server that often!

Click Finish – I am done creating the new custom attribute.

Next, I am going to create a new group based on this custom attribute.

The Dynamic Rule looks like this – The class is Windows Computer_SANAttached, select your custom attribute SAN Attached, the operator is “contains” and the value is “PowerDevice by PowerPath”

image

Last but not least, override my monitor/rule using the group I just created!

you could use this as a guide to create your custom attributes then groups at will!

Comments

No Comments