locked
Create Group with all Logical Disks based on another Group with Windows Servers as Members RRS feed

  • Question

  • Hi

    I need to put all 'Logical Disks' objects of another SCOM-Group in a new group. (Need to set override)

    For example:

    Servers

    • Server1 -> Disk C:
    • Server2 -> Disk C: / E:
    • Server3 -> Disk C: / E: / F:
    • Server4 -> Disk C:

    Groups (Objects: Windows Servers)

    • ServerGroup1 -> Members: Server1 and Server3
    • ServerGroup2 -> Members: Server2 and Server4

    New Groups i need to create (Objects: Logical Disks 2003/2008/2012)

    • ServerGroup1_Disks -> Members: C: (Server1) and C: / E: / F: (Server3)
    • ServerGroup2_Disks -> Members: C: / E: (Server2) and C: (Server4)

    How can I do that?

    Thanks!


    Thursday, May 22, 2014 7:00 AM

Answers

  • Hi, you can populate such groups from external source as in this article

    http://blogs.technet.com/b/kevinholman/archive/2009/01/27/populating-groups-from-a-sql-server-cmdb-step-by-step.aspx

    but using powershell script

    $Group1=get-scomgroup "First Group"
    $Group1=$Group1.GetRelatedMonitoringObjects() | select displayname
    get-scomclass | where {$_.displayname -like "Windows Server * Logical Disk"} | Get-SCOMClassInstance | where {$_.Path -in $Group1.displayname}

    But you should add the corresponding class to your new groups (2003/2008/2012)..from a fullname as example

    Microsoft.Windows.Server.6.2.LogicalDisk:comp1.domain;C:

    • Marked as answer by Yan Li_ Tuesday, June 3, 2014 3:19 AM
    Monday, May 26, 2014 2:04 PM

All replies

  • Hi Marc -

    You answered your own question I think (however the Windows Server group does not apply here).

    In the Authoring space of the SCOM console, choose New Group (i.e. "ServerGroup_Disks ") and manually add logical disks to the group.

    Apply the override to a monitor or rule that targets the Logical Disk class, apply the override to all objects in the group.


    John Joyner MVP-SC-CDM

    Thursday, May 22, 2014 2:16 PM
  • :)

    Manually is not the Problem.

    Nice to have would be automatic since the Computer-Groups are not fixed (Registry-based Discovery)

    Thursday, May 22, 2014 3:05 PM
  • Thanks for making that clear (that you want to apply an override to the pre-selected logical drive letters of servers that are in a group with dynamic membership).

    An instance of the logical disk class has a display name (like "F") and attributes like Compressed status and Size Bytes). Logical disks have a hosted relationship with Windows Computer class instances, which has attributes like NetBIOS Computer Name.

    Your SCOM dynamic group membership can only key on attributes in the Logical Disk or the Windows Computer class (screenshot below). You can't reference other SCOM groups in dynamic group population criteria.


    John Joyner MVP-SC-CDM

    Thursday, May 22, 2014 4:03 PM
  • Hi, you can populate such groups from external source as in this article

    http://blogs.technet.com/b/kevinholman/archive/2009/01/27/populating-groups-from-a-sql-server-cmdb-step-by-step.aspx

    but using powershell script

    $Group1=get-scomgroup "First Group"
    $Group1=$Group1.GetRelatedMonitoringObjects() | select displayname
    get-scomclass | where {$_.displayname -like "Windows Server * Logical Disk"} | Get-SCOMClassInstance | where {$_.Path -in $Group1.displayname}

    But you should add the corresponding class to your new groups (2003/2008/2012)..from a fullname as example

    Microsoft.Windows.Server.6.2.LogicalDisk:comp1.domain;C:

    • Marked as answer by Yan Li_ Tuesday, June 3, 2014 3:19 AM
    Monday, May 26, 2014 2:04 PM
  • You can do it only with script.

    Or you can create some marker (extend existing class or create new) for your servers and populate groups using this marker, also you can populate logical disks using this marker.


    Vladimir Zelenov | http://systemcenter4all.wordpress.com

    Wednesday, May 28, 2014 5:57 AM