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?
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
Thanks @Hakan Bahadir I was thinking on similar approach, your instructions are clear and easy to follow. Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.