Unable to change device type in CAPM

Document ID : KB000099868
Last Modified Date : 01/06/2018
Show Technical Document Details
Issue:
After updating the /opt/IMDataAggregator/data/custom/devicetypes/DeviceTypes.xml file on the Data Aggregator and rediscovering the device the device type does not change
Environment:
CAPM 3.x
Cause:
syntax error
Resolution:
The following exception is seen in /opt/IMDataCollector/apache-karaf-2.4.3/data/log/Exception.log on the Data Collector:

An existing application exception RECURRED (Key=xxxxxxxxx), Recurrence count=1 : Unable to parse the device type definition XML file: Error on line 37: The element type "sysObjectID" must be terminated by the matching end-tag "</sysObjectID>". : Error on line 37: The element type "sysObjectID" must be terminated by the matching end-tag "</sysObjectID>". | (ExceptionLogger.java:104) 

Looking at  /opt/IMDataAggregator/data/custom/devicetypes/DeviceTypes.xml on the Data Aggregator we see:

        <sysObjectID>1.3.6.1.4.1.3417.1.5.1</SysObjectID>
        <sysObjectID>1.3.6.1.4.1.2620.1.6.123.1.49</sysObjectID>

The closing tag must be correct or the update to the device will not occur.  Change </SysObjectID> to </sysObjectID> and wait one minute for the change to take effect.  Then rediscover the device.  This should resolve the issue as you should now see the device type change
Additional Information:
Override Device Types documentation:

https://docops.ca.com/ca-performance-management/3-5/en/building/manage-devices/override-device-types