How to Export Firmware Version and SysDescr Values When Using the Modelinggateway

book

Article ID: 209724

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

 

I need to export Spectrum inventory, including the device software version.  When exporting via the Modelinggateway
  the device details do not seem to include this information.

Cause

 

The  Device Export Attributes in the .modelinggatewayresource.xml configuration file has a default
   set of attributes to export. This can be expanded by manually updating to include desired attributes.

Environment

Release : 20.2

Component : Spectrum Core / SpectroSERVER

Resolution


The .modelinggatewayresource.xml file can be modified to include attributes like NRM_RunningFirmware/0x12de0 and
    sysDescr/0x100052.


- make a backup of the original configuration file
      $SPECROOT/SS-Tools/.modelinggatewayresource.xml  to $SPECROOT/SS-Tools/.modelinggatewayresource.xml.orig

- Edit the <DeviceExportAttributes> section of the configuration and add entries for the desired attributes

Example

        <NRM_RunningFirmware attribute_id="0x12de0" />
        <sysDescr attribute_id="0x10052" />

 

 

For this example, I set the ExportConfiguration to only export devices to minimize output

 

Run the modelinggateway export

Syntax:
modelinggateway.bat -vnm <vnm_name> [-user <SS user>] [-i <importfile>/{<importfile1>,<importfile2>...} | [ -cmdb ] -e <exportfile>] [-o <outputfile>] [-debug <debugfile>]


cd $SPECROOT/SS-Tools/
./modelinggateway.bat -vnm <landscapeName> -e device_export_with_firmware



This will then generate a file named device_export_with_firmware.xml

Looking at one of the device entries in the xml file we can see the firmware and sysDescr attribute values are present

 

 

Attachments