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

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

book

Article ID: 57349

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

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.

Environment

Release: Any
Component:

Resolution

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>

Additional Information

Please reference the "Modeling Gateway Toolkit" section of the documentation for more information.