Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


6.4.3 Example of policy creation

The following is an example of an automatic maintenance policy file.

<?xml version="1.0" encoding="utf-8" ?>
<AutoMaintenancePolicy>
  <MaintenancePolicyList>
    <DestGroupPolicyList>
      <DestGroupPolicy>
        <DestGroupPolicyKind>ipAddress</DestGroupPolicyKind>
        <CondIpAddress>
          <FromIpAddress>10.210.177.150</FromIpAddress>
          <ToIpAddress>10.210.177.160</ToIpAddress>
        </CondIpAddress>
        <DestGroupPath>IP-address</DestGroupPath>
        <DestGroupName>IP-address-group</DestGroupName>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
      <DestGroupPolicy>
        <DestGroupPolicyKind>ipAddress</DestGroupPolicyKind>
        <CondIpAddress>
          <FromIpAddress>192.168.111.0</FromIpAddress>
          <ToIpAddress>192.168.111.255</ToIpAddress>
        </CondIpAddress>
        <DestGroupPath>IP-address</DestGroupPath>
        <DestGroupName>IP-address-group</DestGroupName>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
      <DestGroupPolicy>
        <DestGroupPolicyKind>newHost</DestGroupPolicyKind>
        <DestGroupName>New-PCs</DestGroupName>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
      <DestGroupPolicy>
        <DestGroupPolicyKind>osType</DestGroupPolicyKind>
        <CondOSKind>
          <OsKind>Windows7</OsKind>
        </CondOSKind>
        <CondOSKindOption>
          <OsSubversion>true</OsSubversion>
          <CpuKind>true</CpuKind>
        </CondOSKindOption>
        <DestGroupPath>OS-type</DestGroupPath>
        <DestGroupName>Windows7</DestGroupName>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
      <DestGroupPolicy>
        <DestGroupPolicyKind>osType</DestGroupPolicyKind>
        <CondOSKind>
          <OsKind>Windows8_1</OsKind>
        </CondOSKind>
        <CondOSKindOption>
          <OsSubversion>true</OsSubversion>
          <CpuKind>true</CpuKind>
        </CondOSKindOption>
        <DestGroupPath>OS-type</DestGroupPath>
        <DestGroupName>Windows8_1</DestGroupName>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
      <DestGroupPolicy>
        <DestGroupPolicyKind>osType</DestGroupPolicyKind>
        <CondOSKind>
          <OsKind>WindowsServer2012R2</OsKind>
        </CondOSKind>
        <CondOSKindOption>
          <OsSubversion>true</OsSubversion>
          <CpuKind>true</CpuKind>
        </CondOSKindOption>
        <DestGroupPath>OS-type\Server</DestGroupPath>
        <DestGroupName>WindowsServer2012R2</DestGroupName>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
      <DestGroupPolicy>
        <DestGroupPolicyKind>departmentGroup</DestGroupPolicyKind>
        <CondDepartmentGroup>
          <TargetGroupRange>4</TargetGroupRange>
        </CondDepartmentGroup>
        <DestGroupPath>Department</DestGroupPath>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
      <DestGroupPolicy>
        <DestGroupPolicyKind>locationGroup</DestGroupPolicyKind>
        <CondLocationGroup>
          <TargetGroupRange>5</TargetGroupRange>
        </CondLocationGroup>
        <DestGroupPath>Location</DestGroupPath>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
      <DestGroupPolicy>
        <DestGroupPolicyKind>assetCostumField</DestGroupPolicyKind>
        <CondAssetCostumField>
          <AssetCostumFieldName>Server-Client</AssetCostumFieldName>
          <AssetCostumFieldName>PC-type</AssetCostumFieldName>
        </CondAssetCostumField>
        <DestGroupPath>Asset-management-item</DestGroupPath>
        <DestGroupTargetHostKind>all</DestGroupTargetHostKind>
      </DestGroupPolicy>
    </DestGroupPolicyList>
    <IDPolicyList>
      <IDPolicy>
        <IDName>ID_NewHosts</IDName>
        <IDPolicyKind>newHost</IDPolicyKind>
      </IDPolicy>
      <IDPolicy>
        <IDName>ID_notebookPCs</IDName>
        <IDPolicyKind>assetFieldDefinition</IDPolicyKind>
        <CondAssetFieldDefinitionValue>
          <AssetFieldDefinitionValue assetItem="true">
            <AssetFieldDefinitionName>PC-type</AssetFieldDefinitionName>
            <AssetFieldDefinitionValue>notebook</AssetFieldDefinitionValue>
          </AssetFieldDefinitionValue>
          <AssetFieldDefinitionValue assetItem="true">
            <AssetFieldDefinitionName>Server-Client</AssetFieldDefinitionName>
            <AssetFieldDefinitionValue>ClientPC</AssetFieldDefinitionValue>
          </AssetFieldDefinitionValue>
        </CondAssetFieldDefinitionValue>
      </IDPolicy>
      <IDPolicy>
        <IDName>ID_NotebookPC</IDName>
        <IDPolicyKind>assetFieldDefinition</IDPolicyKind>
        <CondAssetFieldDefinitionValue>
          <AssetFieldDefinitionValue assetItem="true">
            <AssetFieldDefinitionName>PC-type</AssetFieldDefinitionName>
            <AssetFieldDefinitionValue>Notebook</AssetFieldDefinitionValue>
          </AssetFieldDefinitionValue>
          <AssetFieldDefinitionValue assetItem="true">
            <AssetFieldDefinitionName>Server-Client</AssetFieldDefinitionName>
            <AssetFieldDefinitionValue>Other</AssetFieldDefinitionValue>
          </AssetFieldDefinitionValue>
        </CondAssetFieldDefinitionValue>
      </IDPolicy>
      <IDPolicy>
        <IDName>ID_NewYork_Control</IDName>
        <IDPolicyKind>assetFieldDefinition</IDPolicyKind>
        <CondAssetFieldDefinitionValue>
          <AssetFieldDefinitionValue assetItem="false">
            <AssetFieldDefinitionName>Installation-location</AssetFieldDefinitionName>
            <AssetFieldDefinitionValue>/National/EastCoast/NewYork/</AssetFieldDefinitionValue>
          </AssetFieldDefinitionValue>
        </CondAssetFieldDefinitionValue>
      </IDPolicy>
      <IDPolicy>
        <IDName>ID1150A</IDName>
        <IDPolicyKind>inventoryInfo</IDPolicyKind>
        <CondInventoryInfoValue>
          <CondInventoryInfoName>PolicyName001</CondInventoryInfoName>
          <CondInventoryInfoList>
            <ComputerInfo>
              <Model filterType="exactMatch">Modelname123</Model>
              <Manufacturer filterType="include">makername123</Manufacturer>
            </ComputerInfo>
            <SoftwareInfo installStatus="true">
              <SoftwareName filterType="startWith">Adobe Flash Player</SoftwareName>
              <Version filterType="less">
                <VersionValue1>26.0.0.137</VersionValue1>
              </Version>
            </SoftwareInfo>
            <AssetFieldDefinitionInfo>
              <AssetFieldDefinitionName>PersonalNumber</AssetFieldDefinitionName>
              <FieldValue filterType="startWith">
                <FieldValue1>USR2010</FieldValue1>
              </FieldValue>
            </AssetFieldDefinitionInfo>
            <AssetFieldDefinitionInfo>
              <AssetFieldDefinitionName>AAARequestDate</AssetFieldDefinitionName>
              <FieldValue filterType="between">
                <FieldValue1>20171001</FieldValue1>
                <FieldValue2>20171130</FieldValue2>
              </FieldValue>
            </AssetFieldDefinitionInfo>
          </CondInventoryInfoList>
        </CondInventoryInfoValue>
      </IDPolicy>
      <IDPolicy>
        <IDName>ID1150B</IDName>
        <IDPolicyKind>inventoryInfo</IDPolicyKind>
        <CondInventoryInfoValue>
          <CondInventoryInfoName>PolicyName002</CondInventoryInfoName>
          <CondInventoryInfoList>
            <NetworkInfo>
              <FromIpAddress>192.168.10.20</FromIpAddress>
              <ToIpAddress>192.168.10.255</ToIpAddress>
            </NetworkInfo>
            <SoftwareInfo installStatus="false">
              <SoftwareName filterType="startWith">ABC Software</SoftwareName>
            </SoftwareInfo>
            <AssetFieldDefinitionInfo>
              <AssetFieldDefinitionName>AAACurrentVersion</AssetFieldDefinitionName>
              <FieldValue filterType="exactMatch">
                <FieldValue1>1.8</FieldValue1>
              </FieldValue>
            </AssetFieldDefinitionInfo>
            <AssetFieldDefinitionInfo>
              <AssetFieldDefinitionName>SeatCode</AssetFieldDefinitionName>
              <FieldValue filterType="between">
                <FieldValue1>DP-A-501</FieldValue1>
                <FieldValue2>DP-B-299</FieldValue2>
              </FieldValue>
            </AssetFieldDefinitionInfo>
          </CondInventoryInfoList>
        </CondInventoryInfoValue>
      </IDPolicy>
    </IDPolicyList>
  </MaintenancePolicyList>
</AutoMaintenancePolicy>

This example defines automatic maintenance policies with the following characteristics:

Host groups
  • Computers with IP addresses in the ranges from 10.210.177.150 to 10.210.177.160 and 192.168.111.0 to 192.168.111.255 are registered in the host group IP-address-group at the route IP-address.

  • Newly created hosts are registered in the host group New-PCs.

  • Computers whose OS type is Windows 7 are registered in the Windows7 host group under the OS-type route, separated into 32-bit and 64-bit hosts. These hosts are further grouped by OS sub-version.

  • Computers whose OS type is Windows 8.1 are registered in the Windows 8.1 host group under the OS-type route, separated into 32-bit and 64-bit hosts. These hosts are further grouped by OS sub-version.

  • Computers whose OS type is Windows Server 2012 R2 are registered in the WindowsServer2012R2 host group under the OS-type\Server route, separated into 32-bit and 64-bit hosts. These hosts are further grouped by OS sub-version.

  • Computers positioned in a hierarchy based on department information are registered in a maximum of four levels under the Department route.

  • Computers positioned in a hierarchy based on installation location are registered in a maximum of five levels under the Location route.

  • Computers positioned in a hierarchy based on the Server-Client and PC-type additional management items of hardware asset information are registered under the Asset-management-item route.

ID groups
  • Newly added hosts are registered in the ID group ID_NewHosts.

  • Computers for which the value of the PC type additional management item is Notebook and the value of Server-Client is ClientPC or Other are registered in the ID group ID_notebookPCs.

  • Computers whose installation location is /National/EastCoast/NewYork/ are registered in the ID group ID_NewYork_Control.

  • Computers that meet all of the following conditions are registered in the ID group ID1150A. (The evaluations are case insensitive.)

    - The model name is equal to Modelname123.

    - The manufacturer name contains makername123.

    - A software program whose name starts with Adobe Flash Player and whose version is earlier than 26.0.0.137 is installed.

    - The value of the PersonalNumber additional management item starts with USR2010.

    - The value of the AAARequestDate additional management item is between 20171001 and 20171130.

  • Computers that meet all of the following conditions are registered in the ID group ID1150B. (The evaluations are case insensitive.)

    - The IP address is between 192.168.10.20 and 192.168.10.255.

    - A software program whose name starts with ABC Software is not installed.

    - The value of the AAACurrentVersion additional management item is 1.8.

    - The value of the SeatCode additional management item is between DP-A-501 and DP-B-299.

You can create a new automatic maintenance policy by copying this policy and changing attributes such as the IP address ranges and host group names. You can efficiently create multiple automatic maintenance policies by copying and editing an existing policy in this way.