CMDB — Hardware with Windows installed
Use this example to build a CMDB query to find all hardware in my service offering that has Microsoft Windows installed.
始める前に
Role required: none
手順
- Navigate to All > Configuration > CMDB Query Builder and then select Create new.
- Enter All hardware in my service offering that has Windows installed as the query name.
- Choose CMDB Query and then select Create.
-
In the CMDB Classes list, locate the following classes, and then drag them to the canvas:
ヒント:Use the search box to find items quickly.
- Service
- Service Offering
- Application Service
- Searching for infrastructure, Hardware
-
Connect the Service node to the Service Offering node.
In the Properties sidebar, select Add Relationship Type and select the Connect to::Connected by relationship.
-
Connect the Serviced Offering node to the Application Service node.
In the Properties right-side bar, select Add Relationship Type and select the Connect to::Connected by relationship.
-
Select the Application Service node.
In the Properties right-side bar, select Convert attached nodes to pattern to include all CIs within the application service, in the query.
- Connect the Application Service node to the Hardware node.
- All infrastructure under Service,
- Select Save.
-
Select Run and then review the results.
You can select Column options of the Service column header, and select to Group by Service. Then expand a service to see all the hardware infrastructure under that service.
- Return to the CMDB Query Builder window, to expand the query to include only infrastructure CIs on which Windows is installed.
- Select Non-CMDB Tables, locate the Software Instance class, and drag it to the canvas.
-
Connect the Hardware node to the Software Instance node.
In the Properties right-side bar, set Use CI reference column to Installed on.
-
Point to the Software Instance node, and select on the Apply filters icon that appears.
- In the Filters section, add the condition [Product Name.Name] [is] [windows].
- Close the Filters section.
- Select Save.
- Select Run and review the new results.