Configuration Management module query samples
You can use simple or complex queries to query BMC Remedy ITSM Configuration Management. A simple query uses only one key and one value. A complex query compares one or more keys and one or more values.
Simple query sample
Using the values in the following table, you can create a query using the query 1 input of <value>'key 1' = "value 1" </value>
, returning configuration items for the ABC Company.
Inputs for sample simple query in BMC Remedy ITSM
Input |
Description |
---|---|
key 1 |
customer |
value 1 |
ABC Company |
HP ServiceCenter users can create simple and Advanced Find queries. A simple query that uses the values in the following table returns all configuration items where the ID equals 137.
Inputs for sample simple query in HP ServiceCenter
Input |
Description |
---|---|
key 1 |
id |
value 1 |
137 |
query 1 |
EQUALS |
You can use two key/value pairs to create a simple query in HP ServiceCenter as shown with the values in the following table. The query returns all configuration items where the ID equals 137 and the name contains Jones.
Inputs for sample simple query in HP ServiceCenter using multiple search criteria
Input |
Description |
---|---|
key 1 |
id |
value 1 |
137 |
query 1 |
EQUALS |
key 2 |
name |
value 2 |
Jones |
query 2 |
CONTAINS |
Complex query sample
Using the values in the following table, you can create a complex query in BMC Remedy ITSM using two additional values:
<value> 'key 1 = "value 1" or 'key 2' = "value2"</value>
This query returns all configurations opened by the CEO and all changes that have a high priority.
Inputs for complex query sample
Input |
Description |
---|---|
key 1 |
submitter |
value 1 |
CEO |
query |
|
key 2 |
priority |
value 2 |
High |
Advanced Find sample
You can create an Advanced Find query in HP ServiceCenter through a TrueSight Orchestration workflow. The query string from the HP ServiceCenter Advanced Find is split into two inputs within the workflow. The query 1 input contains the field and operator, and the value 1 input contains the value. Using the values in the following table, all changes for the ID with an impact of High are returned.
Sample HP ServiceCenter Advanced Find query inputs
Input |
Description |
---|---|
value 1 |
High (department affected) |
query 1 |
Impact equals |
Comments
Log in or register to comment.