Login with Facebook
Showing posts with label CMS. Show all posts
Showing posts with label CMS. Show all posts

Monday, August 22, 2011

HP uCMDB: Creating New CIs using Enrichment Rules

In this article, I have used one of the HP uCMDB features to create additional CIs based on the discovered data on certain CI

Scenario:

Operators want to display Operating System name as CI linked with Node CI

Steps:

1-Create New CIT for the Operating System

2-Create relation between Operating System CIT an d Node CIT

3- Create Correlation Rule

3a- in Query Mode adding your Searching criteria  TQL

3b- in Enrichment Mode add the CIT you want to create

3c- Add  Query Node Definition (How the new CI Attributes will be populated)

4- Create Scheduler task to run the Enrichment Rule

 

1-Create New CIT for the Operating System

Under Modeling > CI Type Manager right click the CIT tree and create a new CIT

I recommend to create the CIT under NodeElement CIT to inherit all the relations and configurations as all NodeElement child CITs

Note: Remove ABSTRACT_CLASS from Type Qualifiers to be able to create CIs

 

image

2-Create relation between Operating System CIT an d Node CIT

Select Node CIT and OS CIT and right click select Add/remove Relationship.

 

image

3- Create Correlation Rule

Move to Modeling > Enrichment manager and create new rule

 

image

 

image

image

image

3a- in Query Mode adding your Searching criteria  TQL

In Query mode

image

image

I will Edit the Query Node Properties and filter my TQL

I will select DiscoverOSName is Not Null to ensure that this will apply to only nodes that Has this attribute populated

image

 

 

3b- in Enrichment Mode add the CIT you want to create

Change the Operations to Enrichment Mode and add the operating System CIT, and Add the relation between Node CIT and Operating System CIT

 

image

3c- Add  Query Node Definition (How the new CI Attributes will be populated)

Fill the Operating System attributes as needed.

for Name attribute use the option By Attribute and select Node CIT and DiscoveredOsName

 

image

Note: You may create combination of Node attributes as a value by choosing Advanced

 

image

4- Create Scheduler task to run the Enrichment Rule

 

Go to Administration >  Scheduler

Create New Schedule

image

Add Run an Enrichment Rule

image

Select your schedule

image

Run the schedule

 

The Outcome will be like this, create a view to with Node and OS CITs to get the result.

image

Saturday, August 20, 2011

Modeling: Creating relationship between OS and Nodes

The main idea here is to group multiple Servers under Operating System name, this may be needed by some operators to identify operating system for Node CIs by just a glimpse.

My objective is to show how simply this can be done in HP uCMDB

Steps:

  1. Create a new CIT for Operating System.
  2. Create several OS instances
  3. Create a Virtual calculated relationship between OS and Node CIs

1- Create a new CIT for Operating System.

Open CI Type Manager  by Modeling > CI Type Manager

Create CIT for Operation System

Assign the Name attribute as Key

Create CIT instances that matches the operating system names populated in your Node CIs like DiscoveredOSName

image

Assign the Name attribute as Key

image

2- Create several OS instances

Create CIT instances that matches the operating system names populated in your Node CIs like DiscoveredOSName

image

 

Modeling > IT Universe Manager

Click on New CI

image

3- Create a Virtual calculated relationship between OS and Node CIs

Modify your View or Model or Prospective to have this relation, below I have created a new view.

Modeling > Modeling Studio 

Create New View  I named it “OS2Node”

Add both Operating System and Node CITs

Create Joined Relationship

image

Select Name Attribute from Operating System CIT and DiscoverOSName from Node CIT and select Operator Sub string ignore case

image

This is the final result of the CIs and its relations.

image