Share via


SCOM 2012: Creating Views for the UNIX/Linux Role

Return to section contents

Example Role Views

This example assumes the use of the UNIX/Linux Authoring Library example MP. For more information on creating and building the MP authoring project, see Getting Started.

This example Management Pack Fragment defines standard views (Alert, State, and Diagram views) and a folder targeted to a Role.

*Note:  contents located between pairs of ## characters should be customized for your environment.  This includes ID and string values. Be sure to remove the ## characters before building the MP.
*


<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Presentation>
<Views>
<!-- Alert view -->
<View ID="##MyMP.MyCustomRole.Alert.View##" Accessibility="Public" Enabled="true" Target="##MyMP.MyCustomRole##" TypeID="SC!Microsoft.SystemCenter.AlertViewType" Visible="true">
  <Category>Operations</Category>
  <Criteria>
    <ResolutionState>
      <StateRange Operator="NotEquals">255</StateRange>
    </ResolutionState>
  </Criteria>
  <Presentation>
    <ColumnInfo Index="0" SortIndex="0" Width="22" Grouped="true" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Severity</Name>
      <Id>Severity</Id>
    </ColumnInfo>
    <ColumnInfo Index="1" SortIndex="-1" Width="54" Grouped="false" Sorted="false" IsSortable="false" Visible="true" SortOrder="Ascending">
      <Name>Icon</Name>
      <Id>Icon</Id>
    </ColumnInfo>
    <ColumnInfo Index="2" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Path</Name>
      <Id>MonitoringObjectPath</Id>
    </ColumnInfo>
    <ColumnInfo Index="3" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Source</Name>
      <Id>MonitoringObjectDisplayName</Id>
    </ColumnInfo>
    <ColumnInfo Index="4" SortIndex="-1" Width="22" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Maintenance Mode</Name>
      <Id>MonitoringObjectInMaintenanceMode</Id>
    </ColumnInfo>
    <ColumnInfo Index="5" SortIndex="-1" Width="250" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Name</Name>
      <Id>Name</Id>
    </ColumnInfo>
    <ColumnInfo Index="6" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Resolution State</Name>
      <Id>ResolutionState</Id>
    </ColumnInfo>
    <ColumnInfo Index="7" SortIndex="-1" Width="150" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Created</Name>
      <Id>TimeRaised</Id>
    </ColumnInfo>
    <ColumnInfo Index="8" SortIndex="1" Width="100" Grouped="false" Sorted="true" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Age</Name>
      <Id>Age</Id>
    </ColumnInfo>
    <ColumnInfo Index="9" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Type</Name>
      <Id>Category</Id>
    </ColumnInfo>
    <ColumnInfo Index="10" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Owner</Name>
      <Id>Owner</Id>
    </ColumnInfo>
    <ColumnInfo Index="11" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Priority</Name>
      <Id>Priority</Id>
    </ColumnInfo>
    <ColumnInfo Index="12" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Latency</Name>
      <Id>Latency</Id>
    </ColumnInfo>
    <ColumnInfo Index="13" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Description</Name>
      <Id>Description</Id>
    </ColumnInfo>
    <ColumnInfo Index="14" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Connector</Name>
      <Id>ConnectorId</Id>
    </ColumnInfo>
    <ColumnInfo Index="15" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Forwarding Status</Name>
      <Id>ConnectorStatus</Id>
    </ColumnInfo>
    <ColumnInfo Index="16" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Class</Name>
      <Id>Class</Id>
    </ColumnInfo>
    <ColumnInfo Index="17" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Time in State</Name>
      <Id>TimeInState</Id>
    </ColumnInfo>
    <ColumnInfo Index="18" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 1</Name>
      <Id>CustomField1</Id>
    </ColumnInfo>
    <ColumnInfo Index="19" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 2</Name>
      <Id>CustomField2</Id>
    </ColumnInfo>
    <ColumnInfo Index="20" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 3</Name>
      <Id>CustomField3</Id>
    </ColumnInfo>
    <ColumnInfo Index="21" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 4</Name>
      <Id>CustomField4</Id>
    </ColumnInfo>
    <ColumnInfo Index="22" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 5</Name>
      <Id>CustomField5</Id>
    </ColumnInfo>
    <ColumnInfo Index="23" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 6</Name>
      <Id>CustomField6</Id>
    </ColumnInfo>
    <ColumnInfo Index="24" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 7</Name>
      <Id>CustomField7</Id>
    </ColumnInfo>
    <ColumnInfo Index="25" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 8</Name>
      <Id>CustomField8</Id>
    </ColumnInfo>
    <ColumnInfo Index="26" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 9</Name>
      <Id>CustomField9</Id>
    </ColumnInfo>
    <ColumnInfo Index="27" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Custom Field 10</Name>
      <Id>CustomField10</Id>
    </ColumnInfo>
    <ColumnInfo Index="28" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Resolved By</Name>
      <Id>ResolvedBy</Id>
    </ColumnInfo>
    <ColumnInfo Index="29" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Time Resolved</Name>
      <Id>TimeResolved</Id>
    </ColumnInfo>
    <ColumnInfo Index="30" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Last State Change</Name>
      <Id>TimeResolutionStateLastModified</Id>
    </ColumnInfo>
    <ColumnInfo Index="31" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Last Modified</Name>
      <Id>LastModified</Id>
    </ColumnInfo>
    <ColumnInfo Index="32" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Last Modified By</Name>
      <Id>LastModifiedBy</Id>
    </ColumnInfo>
    <ColumnInfo Index="33" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Management Group</Name>
      <Id>ManagementGroup</Id>
    </ColumnInfo>
    <ColumnInfo Index="34" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Site</Name>
      <Id>SiteName</Id>
    </ColumnInfo>
    <ColumnInfo Index="35" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Repeat Count</Name>
      <Id>RepeatCount</Id>
    </ColumnInfo>
    <ColumnInfo Index="36" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Ticket ID</Name>
      <Id>TicketId</Id>
    </ColumnInfo>
  </Presentation>
  <Target />
</View>
 
<!-- State View -->
<View ID="##MyMP.MyCustomRole.State.View##" Accessibility="Public" Enabled="true" Target="##MyMP.MyCustomRole##" TypeID="SC!Microsoft.SystemCenter.StateViewType" Visible="true">
  <Category>Operations</Category>
  <Criteria>
    <InMaintenanceMode>false</InMaintenanceMode>
  </Criteria>
  <Presentation>
    <ColumnInfo Index="0" SortIndex="0" Width="100" Grouped="false" Sorted="true" IsSortable="true" Visible="true" SortOrder="Descending">
      <Name>State</Name>
      <Id>##MyMP.MyCustomRole##</Id>
    </ColumnInfo>
    <ColumnInfo Index="1" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Maintenance Mode</Name>
      <Id>InMaintenanceMode</Id>
    </ColumnInfo>
    <ColumnInfo Index="2" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Name</Name>
      <Id>Name</Id>
    </ColumnInfo>
    <ColumnInfo Index="3" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
      <Name>Path</Name>
      <Id>Path</Id>
    </ColumnInfo>
    <ColumnInfo Index="4" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="false" SortOrder="Ascending">
      <Name>Display Name</Name>
      <Id>System.Entity/DisplayName</Id>
    </ColumnInfo>
  </Presentation>
  <Target />
</View>
 
<!-- Diagram View -->
<View ID="##MyMP.MyCustomRole.Diagram.View##" Accessibility="Public" Enabled="true" Target="##MyMP.MyCustomRole.Group##" TypeID="SC!Microsoft.SystemCenter.DiagramViewType" Visible="true">
  <Category>Operations</Category>
  <Criteria />
  <Presentation>
    <DiagramViewCriteria>
      <DiagramViewDisplay ShowVirtualGroup="false">
        <NodesPerRow>3</NodesPerRow>
        <ContainmentLine>
          <Color />
          <SourceArrow IsFilled="false">
            <ArrowStyle>NoAnchor</ArrowStyle>
          </SourceArrow>
          <TargetArrow IsFilled="false">
            <ArrowStyle>ArrowAnchor</ArrowStyle>
          </TargetArrow>
        </ContainmentLine>
        <NonContainmentLine>
          <Color Red="6" Green="134" Blue="253" />
          <SourceArrow IsFilled="false">
            <ArrowStyle>NoAnchor</ArrowStyle>
          </SourceArrow>
          <TargetArrow IsFilled="false">
            <ArrowStyle>ArrowAnchor</ArrowStyle>
          </TargetArrow>
          <LineStyle>DashDotDot</LineStyle>
        </NonContainmentLine>
      </DiagramViewDisplay>
    </DiagramViewCriteria>
  </Presentation>
  <Target></Target>
</View>
 
</Views>
<Folders>
<!-- Folder -->
<Folder ID="##MyMP.MyCustomRole.Folder##" Accessibility="Internal" ParentFolder="SC!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
</Folders>
 
<FolderItems>
<!-- FolderItems, linking views to the Folder -->
<FolderItem ElementID="##MyMP.MyCustomRole.Diagram.View##" ID="##MyMP.MyCustomRole.Diagram.View.FolderItem##" Folder="##MyMP.MyCustomRole.Folder##" />
<FolderItem ElementID="##MyMP.MyCustomRole.State.View##" ID="##MyMP.MyCustomRole.State.View.FolderItem##" Folder="##MyMP.MyCustomRole.Folder##" />
<FolderItem ElementID="##MyMP.MyCustomRole.Alert.View##" ID="##MyMP.MyCustomRole.Alert.View.FolderItem##" Folder="##MyMP.MyCustomRole.Folder##" />
</FolderItems>
 
</Presentation>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
 
  <DisplayString ElementID="##MyMP.MyCustomRole.Folder##">
    <Name>##MyRole##</Name>
    <Description></Description>
  </DisplayString>
 
  <DisplayString ElementID="##MyMP.MyCustomRole.Alert.View##">
    <Name>Active Alerts</Name>
  </DisplayString>
  <DisplayString ElementID="##MyMP.MyCustomRole.State.View##">
    <Name>State View</Name>
  </DisplayString>
  <DisplayString ElementID="##MyMP.MyCustomRole.Diagram.View##">
    <Name>Diagram View</Name>
    <Description />
  </DisplayString>
 
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</ManagementPackFragment>