How to change Device Type in Data Aggregator
search cancel

How to change Device Type in Data Aggregator

book

Article ID: 192298

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management Network Observability

Issue/Introduction

A device is discovered as a Switch but need it to be set as a Server.

Need a Switch to bring up the Server Context Dashboard Report in Performance Management.

Override Device Type in Performance Management.

Environment

All supported Performance Management releases

Resolution

In this scenario we've discovered a Palo Alto device which was set with a Device Type of Switch. The device uses sysObjectID 1.3.6.1.4.1.25461.2.3.22.

To make these changes we edit the (default path) /opt/IMDataAggregator/data/custom/devicetypes/DeviceTypes.xml file.

By default, the "<Servers>" section on the DeviceTypes.xml is commented out.  Remove the "Comment" lines (in bold) below and replace the lines in between with the desired updated entries:
 
 
    <!-- To map system OIDs to Server device type, use <Servers> followed by <sysObjectID>.   -->
<!-- Don't forget to uncomment me after making changes
    <Servers>
      <sysObjectID>1.3.6.1.4.1.2.3.1.2.1.1.3</sysObjectID>
    </Servers>
-->
 
 
To set the device to be a "Server" Device Type, add the following section to the DeviceTypes.xml file. Note that sysServicesOverride is 'false' by default. In this case using "true" tells the system to override the default initially discovered Device Type value with the one specified.

 
<Servers>
  <sysObjectID sysServicesOverride="true">1.3.6.1.4.1.25461.2.3.22</sysObjectID>
</Servers>
 
 

After saving the file changes a new Discovery against the target device(s) is required. This can be done either via:

  1. Rediscovery button on the Details tab for a device when selected in the Monitored Devices page.
  2. Discovery Profile run against the devices IP address.

After the Discovery run, confirm the Device Type seen for the device on its Details tab has changed to the correct value.

In order for the device to show the Context Report Dashboard for the new Device Type assigned, a Full Data Aggregator Synchronization needs to be run. Recommendation is to run that after hours to limit user impact in the web UI.

Additional Information

  1. After editing the DeviceTypes.xml file we should see a message in the (default path) /opt/IMDataAggregator/apache-karaf-<version>/data/log/karaf.log file. 

    • A sample message would be:

      • INFO  | mporter-thread-1 | 2020-06-04 13:41:18,332 | DiscoveryDefaultConfigListener | l.DiscoveryDefaultConfigListener  178 | .im.aggregator.discovery |       | Custom device type definition has been modified

  2. Linux servers running the net-snmpd agent with sysObjectID "1.3.6.1.4.1.8072.3.2.10" can get classified as "Server/Router/Firewall".  We can use lines similar to the following to get these classified as "Server":

<Servers>
  <sysObjectID sysServicesOverride="true">1.3.6.1.4.1.8072.3.2.10</sysObjectID>
</Servers>