Map the device sysObjectID MIB value explicitly to the correct device type in the following file on the Data Aggregator host:
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:
Example: Map a Device sysObjectID to Another Device Type
Follow these steps:
- Open the $KARAF_HOME/custom/devicetypes/DeviceTypes.xml file.
- Enter the following information:
- 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 126.96.36.199.1.34 are classified as a device type of Router and Switch.
- All devices that have a sysObjectID of 188.8.131.52.5.3 are classified as a device type of Switch.
- All devices that have a sysObjectID of 184.108.40.206.567.1 are classified as a device type of Server.
- All devices that have a sysObjectID of 220.127.116.11.49.1 are classified as a device type of Device.