How to update the Notes attribute 0x11564 using the CA Spectrum Modeling Gateway

Document ID : KB000057349
Last Modified Date : 14/02/2018
Show Technical Document Details

SUMMARY:  How to update the Notes attribute 0x11564 using the CA Spectrum Modeling Gateway

The Modeling Gateway can be used to update attribute values for existing models in the Spectrum database. This document explains how to update the Notes attribute id 0x11564 and can be used as a template for updating others as well.

 

INSTRUCTIONS: The Notes attribute id 0x11564 is not a default attribute for Modeling Gateway. You first need to add the Notes attribute id 0x11564 to the .modelinggatewayresource.xml and .modelinggateway.dtd files as follows:

 

Add the following under the "<Attributes" tag in the .modelinggatewayresource.xml file to define the Notes attribute to be used:

 

<Attributes

        Notes                         = "0x11564"

         circuit_id                    = "0xc4042f"

         circuit_name                  = "0xc40430"

 

Add the following to the "<!ATTLIST Device" tag in the .modelinggateway.dtd to use it with the Device model. The third column is the data type of the attribute being added. For the Notes attribute id 0x11564, the data type is "Text String"

 

<!ATTLIST Device

                 ip_dnsname        CDATA              #REQUIRED

                 secdomain_ipname  CDATA              #IMPLIED

                 Notes             CDATA              "Text String"

                 model_handle      CDATA              #IMPLIED

 

After making the changes to the .modelinggatewayresource.xml and .modelinggateway.dtd files, the following xml can be used to update the Notes attribute for model name "myserver" to a value of "myinformation".

 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE Import SYSTEM ".modelinggateway.dtd">

<Import>

  <Update>

  <Device ip_dnsname=  "myserver"  Notes=  "myinformation" />

  </Update>

</Import>