Professional Documents
Culture Documents
TQL
Lesson # 8
HP UCMDB 8.0 Essentials
Lesson Objectives
2
Topology Query Language Overview
Introduction to TQL
3
Topology Query Language Overview
4
Topology Query Language Overview
5
Topology Query Language Overview
TQL
Query
CMDB
data
6
Topology Query Language Overview
7
Topology Query Language Overview
Constraint Types
8
Topology Query Language Overview
Attribute Constraints
Constraints based on an intrinsic characteristic of an
object
Example:
Host object with a DNS Name of foo.bar.com
Host with operating system like %Windows 2003%
9
Topology Query Language Overview
Relationship Constraints
Cardinality
Constraint based on relationships between instances
Can be applied to one or both ends of a link between two
nodes
May be used in combination with other constraints
Examples
1..* -- At least one to one, possibly to many
0..* -- Optional
0..0 -- Must not be there
7..14 -- Must be in the range 7 to 14
10
Topology Query Language Overview
0..0
Indicates that the CI has no CIs linked to it
None may exist
1..*
Indicates that the CI has at least one CI linked to it
1 to many
11
TQL DISCOVERY: ACTIVITY
Single Object Discovery
Assume the CMDB is populated with the following basic
geometric shapes. Each shape represents a component of the
environment. What does this TQL select from the CMDB?
TQL
12
TQL DISCOVERY: ACTIVITY
Multiple Object Discovery
TQL
13
TQL DISCOVERY: ACTIVITY
Complex Discovery
TQL
14
TQL DISCOVERY: ACTIVITY
Discovery Filter
How would we modify this TQL to return all squares, and also any circles
attached to squares?
TQL
0..*
1..*
15
Topology Query Language Overview
16
Topology Query Language Overview
TQL Types
View
Report
Correlation
Identity
Enrichment
Integration
Discovery
18
Topology Query Language Overview
19
Topology Query Language Overview
20
Topology Query Language Overview
21
Topology Query Language Examples
TQL for all networks with Unix hosts with their IP Addresses?
23
Topology Query Language Examples
Where can you verify the relationship type between two CITs?
24
Topology Query Language Overview
25
Topology Query Language Overview
26
Topology Query Language Overview
27
Topology Query Language Overview
28
Topology Query Language Overview
29
Topology Query Language Examples
Result Set
30
Topology Query Language Examples
Result Set
31
Topology Query Language Overview
32
Topology Query Language Overview
33
Topology Query Language Overview
TQL
34
Topology Query Language Overview
35
Topology Query Language Overview
36
Topology Query Language Overview
37
Topology Query Language Example
39
Topology Query Language Examples
40
Topology Query Language Overview
41
Topology Query Language Overview
42
Topology Query Language Overview
43
INTRODUCTION TO TQL
Review Questions
Summary
Key points in this lesson:
A TQL query provides a graphical or tabular representation
of nodes and relationships between the nodes
Exercises
46
47