We have a huge number of devices where hostnames were changed, however, the device's hostname remains the older one.
According to the docs, the detection rate for hostname changes is 24 hours, so, hostnames should be reflected at least 48h later.
DX NetOps Performance Management uses the NameLock attribute to determine if a name can be changed or not, to see if there is a NameLock enabled on a device.
If you override a device's name via DA's API, it will lock the name in DA so the system can't change it unless you remove the lock via rest. In the device's endpoint, you'll see a NameLock attribute under Item.
Release : All supported DX NetOps Performance Management releases
Component : PM Discovery
Disable nameLock via API.
To do so, you have to run API PUT call again devices endpoint.
DAHOSTNAME:DAPORT/rest/devices/deviceID
Containing this in Body, format application/xml.
<Device version="1.0.0">
<Item version="1.0.0">
<NameLock>UNLOCKED</NameLock>
</Item>
</Device>
To determine if NameLock is enabled you have to run API GET call against devices endpoint.
DAHOSTNAME:DAPORT/rest/devices/deviceID
If NameLock is in the LOCKED state, you should see this in response: