Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Insight Discovery how to classify Host object types

Horacio Escalada October 18, 2021

Discovery scan seems to bring laptop, workstation and servers information as a Host object.
If this is the case, is there an attribute that can be used to identify the category a Host object belongs to?

1 answer

1 accepted

0 votes
Answer accepted
Hakan Bahadir October 20, 2021

Hello,

In the "Host" object type, the "Model" attribute keeps the model of the hardware when you import an Insight. Discovery scan. You can use this attribute to create new categories. There are many ways to use this attribute. An example could be:

1- Create one new Object Type called "Device Category". 

2- Add one attribute and call it as "Device Model". Set the attribute as unique.

3- Export the Hosts from your Insight Discovery export to a CSV file. Open in Excel/Google sheets and clean the data so that you have only one column "Model" and they are unique. Then create new column as "Device Category".

4- Define which category each model belongs to and save as CSV file. It could look like:

Name, Device Model
Laptop, MacBook Pro
Server, PowerEdge T630
Virtual Server, VMware Virtual Platform

5- Import the csv file to "Device Category" object type.

6- Create a new attribute for the "Host" object type as "Category". Set its type as reference and map it to "Device Category" object type.

7- Edit the Import configuration for Insight Discovery. Expand the settings for "Host". Add one more line and

- set the "Data Locator" as "Model"

- set the "Insight Attribute" as "Category"

- add the following IQL to the "Object mapping (IQL)":

"Device Model" = ${Model} 

8- Execute the  latest zip file again. It should update all the Host objects and set their categories.

 

PS1: Test it in your test environment first.

PS2: You need to fill in the category list periodically in time. You can do it manually with export/cleanup/edit/import or you could write a new automation rule for that.

 

I hope that helps.

Cheers

Hakan Bahadir

Horacio Escalada October 21, 2021

Thanks @Hakan Bahadir I was thinking on similar approach, your instructions are clear and easy to follow. Thanks again!

Like Hakan Bahadir likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events