I have a router device which is already present in netbrain. So when someone changes the device hostname in the device, would it reflect on netbrain automatically?
Also added to that, if we run discovery task using an api with the device ip, does it change the updated details in netbrain?
Thanks in advance
Regards,
Charan Kumar N
Page 1 / 1
It will detect the change with one caveat. If only the hostname changes, then you can find it under domain management->data accuracy->hostname change. If you change the model of the device and the hostname at the same time (in the case of a device refresh for example), it won’t detect that; you have to manually delete the old device.
For the IP difference. I’ve had it where a seeded discovery will change the IP of an existing device, but if I do a manual scan of a subnet/IP, it will detect that it’s an existing device and won’t do any additional changes to the device object. It can be frustrating if it adds the device as SNMP only via the first discovered IP, and it won’t check for SSH on subsequent IP addresses that are on the device that it will scan.
Thanks for the response
My requirement is that I have a device with the same ip and same model. It would be already present in Netbrain tool. So when a hostname is changed in the device, I want to automatically update it without any manual intervention.
So whether the discovery API call would automatically update the device hostname if we run it with the device IP?
Via the normal API, it doesn’t look like it. However, you could potentially work with Netbrain support to get them to develop a plugin that uses the backend python (hostname_change.py on worker server). Add that plugin as a task in the discovery that has an execution point for after completion.
Hi Charan,
Thanks for submitting the Query.
Please refer to the solution as below,and also shared our findings via email charan152000@gmail.com
Yes, we can achieve the following features using the two methods.
1. Manual-update: - When you click on the detect option under hostname tab, it will update the most recent records then, choose the specific device and click on Keep the latest data. It will delete the old entry hostname and save the latest entries into the NetBrain domain.
Path: - Under Domain Management, In the Data Accuracy Resolution tab, click Hostname Change in the left pane.
Note: After updating devices hostnames, you will need to manually build the topology to assure the topology accuracy.
2. Auto-update: - We do have a plugin for it. Please use the plugin to update the hostname Change adjusting automatically.
If the device's hostname changes while executing the Basic System Benchmark or Scheduled System Discovery tasks, the details will be updated accordingly.
Path details as below: -
Domain Management
• Basic system benchmark task --> Plugins --> Add Execution Point --> Under Built in Plugins --> Plugin_Features--> Hostname Change --> Select both options ( Check_and Amend / Maunually_Check)
• Scheduled System Discovery --> Plugins --> Add Execution Point --> Under Built in Plugins --> Plugin_Features--> Hostname Change --> Select both options ( Check_and Amend / Maunually_Check)
Description:
When to use this plugin?
This plugin is used to do the Hostname Change adjusting automatically. If there are some Hostname Change device periodically in your domain, you can use this plugin.
What this plugin do?
This plugin will detect the Hostname Change and keep the last device automatically.
How to use this plugin?
At first, you need to make sure where to execute this plugin? And you can execute the plugin in: 1. Benchmark task 2. Discovery task 3. Schedule Plugin Task