search cancel

Add the value of the device sysName to an interface model in Spectrum

book

Article ID: 256085

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Add the value of the device sysName to an interface model in Spectrum 

Environment

Release : Any

Resolution

Spectrum uses a model type hierarchy. If one model type is used as a base model type for another, the new model automatically inherits the attribute from the base model type.

All model types start at the root model type.

Use the Model Type Editor (MTE) to add a new attribute call MySysName to the root model type:

NOTE: Using MTE requires having an X-Windows client loaded on the client system.

- Shutdown the SpectroSERVER

- If on Windows, Start a bash shell by running "bash -login"

- cd to the $SPECROOT/SS directory and enter the following command to start MTE:

../SS-Tools/mte -logging

NOTE: The reason for using the "-logging" parameter is because MTE will create an mte xml file that contains the changes made to the catalog. Then you can import this mte xml file into other SpectroSERVER database catalogs in the environment so the catalogs are all consistent. 

- Click on the Model Types tab in the Navigation panel, find and select the Root model type

- Click on the Attributes tab in the Contents panel

- Click on the plus "+" icon in the Attributes tab to create a new attribute

- Create a new attribute with the following information (The example below uses MySysName for the attribute name. You can use any attribute name for your environment.)

- Click the OK button

- Select File -> Commit to Database from the top level menu then click on the OK button to save the changes to the permanent catalog

- Select File -> Exit from the top level menu then click OK to exit

You should see something similar to the following in the bash shell where you started MTE:

[[email protected] SS]$ ../SS-Tools/mte -logging
This MTE session will be logged to mte_change.1213_101910.xml
Opening new log file mte_change.1213_101910.xml
[[email protected] SS]$

NOTE: mte_change.1213_101910.xml is the mte xml file that can be used to import into other SpectroSERVER database catalogs in the environment. This will be discuss later on in this knowledge article.

- Start the SpectroSERVER as normal

- Restart tomcat and webtomcat on all OneClick systems

- Log into OneClick, select an interface model, open the Component Detail panel, click on the Attributes tab and filter for the new MySysName attribute. It should now be populated with the sysName of the parent device model.

Additional Information

To import the mte xml file on other SpectroSERVER systems:

- Run a backup of the SpectroSERVER database in case there are issues with the import

- Copy the mte xml file to the $SPECROOT/SS directory

- Log into the SpectroSERVER system

- Shutdown the SpectroSERVER as normal

- If on Windows, start a bash shell by running "bash -login"

- cd to the $SPECROOT/SS directory and enter the following command where <MTE> is the file name of the mte xml file:

../SS-Tools/dbtool/import <MTE>

- Start the SpectroSERVER as normal

- Restart tomcat and webtomcat on all OneClick systems

Attachments