F5 device showing wrong device type in CA PC

Document ID : KB000122466
Last Modified Date : 06/12/2018
Show Technical Document Details
Introduction:

In capc there are only 4 basic types for a model to be classified as:

Router/switch, switch, server and device.

 

If the type of some SNMP manageable devices were not identified as expected, override the device types. Based on the device service information, Data Aggregator automatically classifies manageable devices as Router, Switch, and Server types. If a manageable device cannot be identified as Router, Switch, or Server, it is classified as the 'Device' device type.

Environment:
CAPC 3.x
Instructions:

Map the device sysObjectID MIB value explicitly to the correct device type in the following file on the Data Aggregator host:

 

$KARAF_HOME/custom/devicetypes/DeviceTypes.xml file

Note: You cannot add new device types to the DeviceTypes.xml file.

The DeviceTypes.xml file contains a template to map the sysObjectID to appropriate device types. By default, the file does not contain any sysObjectID-to-type mapping entry. To classify a device type with a particular sysObjectID, modify the template to add the sysObjectID-to-type entries into the file. Before you add a sysObjectID, uncomment the section where you are adding the sysObjectID.

Note: Updates to the DeviceTypes.xml file can take up to one minute to apply.

A device can be classified into multiple device types. However, the type, Device, is mutually exclusive to other device types. For example, if you add a sysObjectID to one or more of the Router, Switch, or Server device types and you also add that sysObjectID to the 'Device' device type, the 'Device' device type is dropped and is not recognized.

Note: When you upgrade the Data Aggregator, the DeviceTypes.xml file is not preserved. After the upgrade, restore the file from the following directory:

/opt/IMDataAggregator/backup/apache-karaf/custom/devicetypes/DeviceTypes.xml

Example: Map a Device sysObjectID to Another Device Type

Follow these steps:

  1. Open the $KARAF_HOME/custom/devicetypes/DeviceTypes.xml file.
  2. Enter the following information:

    <DeviceType>
        <Routers>
         <sysObjectID>1.3.6.5.1.34</sysObjectID>
        </Routers>
        <Switches>
          <sysObjectID>1.3.6.5.5.3</sysObjectID>
          <sysObjectID>1.3.6.5.1.34</sysObjectID>
         </Switches>
        <Servers>
          <sysObjectID>1.3.6.5.567.1</sysObjectID>
        </Servers>
        <Device>
          <sysObjectID>1.3.6.5.49.1</sysObjectID>
        </Device>
    <DeviceType>
  3. Run discovery on the discovery profile that contains the devices.
    Note: The changes that you make to the DeviceTypes.xml file do not take effect on existing devices until you rerun discovery.
    When discovery is run, the following results occur:
    • All devices that have a sysObjectID of 1.3.6.5.1.34 are classified as a device type of Router and Switch.
    • All devices that have a sysObjectID of 1.3.6.5.5.3 are classified as a device type of Switch.
    • All devices that have a sysObjectID of 1.3.6.5.567.1 are classified as a device type of Server.
    • All devices that have a sysObjectID of 1.3.6.5.49.1 are classified as a device type of Device.
Additional Information:
https://docops.ca.com/ca-performance-management/3-6/en/building/manage-devices/override-device-types