How to overwrite Hostnames?

Hey.

 

I´m currently testing Jira, Insight and Discovery for our Company, because we want to implement a CMDB. 

One use case I couldn´t handle with Discovery is the following:

If the hostname of a Client changes, Insight imports this host as a new (second) host, although the Serial-Number, MAC-Adress and many more attributes are identical.

So I tried to set the attribute Serial-Number for Hosts unique. When the next Discovery import was ready, Insight indeed recognized that the Serial Number is already in use, but didn´t overwrite the name of the Host but rather just declined it with an error.

 

Do you have any hint how to solve this?

 

Thanks a lot.

1 answer

Hi,

in that case the Host in the import result will be ignored.

You can do the following:

The Discovery-Tool has a file called ObjectHashSettings.xml

edit this file and change the following from

<HostInfo_Hostname>true</HostInfo_Hostname>

<HostInfo_FQDN>true</HostInfo_FQDN>

to

<HostInfo_Hostname>false</HostInfo_Hostname>

<HostInfo_FQDN>false</HostInfo_FQDN>

Now the Hostname (and FQDN) will be not used when the Hash of the HostObject is build.

 

Also don't forget to revert your attribute change in Insight.

 

PS: Why is the Hostname changing? It shouldn't change.

 

// Christian

Hey Christian!

Thanks for the fast answer.

I edited the file and reverted the attribute change.

Now, I have the same host in my Insight twice again, just with different hostnames. 

But I want Insight/Discovery to recognize that this host already exists, only with another hostname and overwrite the name. 

 

And to answer your question: Sometimes PCs switch departments and in that case we also adapt the hostname.

I am sorry I forgot to say,

that if you change the HashSetting and you will get "new" Hashes

this will result in "new" Objects. You need to delete the old ones.

Also when you updating the discovery-tool the updater asks you if you want to overwrite the ObjectHashSettings.xml file.

You need to choose "No" be aware any changes to that file will result in "new" Objects.

 

// Christian

Alright, thanks a lot. I´ll apply a new object-schema and try again :)

It worked now. Thanks a lot Christian!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

335 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you