search cancel

Spectrum Modeling Gateway CMDB export is showing devices as Network Interface Cards

book

Article ID: 200161

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

When running a modeling gateway export with the -cmdb option, some model types such as GnSNMPDev and Pingable models are showing as Network Interface Cards

Environment

Release : 10.x

Component : Spectrum Core / SpectroSERVER

Resolution

This is due to the default class mappings in the <SPECROOT>/SS-Tools/.cmdbresource.xml file.

To change this class mapping, you will need to edit the .cmdbresource.xml file and specifically this section:

<CMDBClassMapping>
    <CMDBClass family="Network" class="Network Interface Card" />
    <SPECTRUMModelClass>12</SPECTRUMModelClass> <!-- Pingable -->
    <SPECTRUMModelClass>13</SPECTRUMModelClass> <!-- MAC -->
    <SPECTRUMModelClass>14</SPECTRUMModelClass> <!-- SNMP -->
    <SPECTRUMModelClass>37</SPECTRUMModelClass> <!-- Generic TL1 Device -->
    <SPECTRUMModelClass>40</SPECTRUMModelClass> <!-- Wireless -->
  </CMDBClassMapping>

  You can edit this to something like the following to create new classes for model types:

  <CMDBClassMapping>
    <CMDBClass family="Network" class="GnSNMPDev" />
    <SPECTRUMModelClass>14</SPECTRUMModelClass> <!-- SNMP -->
  </CMDBClassMapping>

  <CMDBClassMapping>
    <CMDBClass family="Network" class="Pingable" />
    <SPECTRUMModelClass>12</SPECTRUMModelClass> <!-- Pingable -->
  </CMDBClassMapping>

  Once that file is saved, if you re-run the export they will show as the new classes.