How can CA Spectrum reread the MAC_Address of a device?
search cancel

How can CA Spectrum reread the MAC_Address of a device?

book

Article ID: 16716

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Sometimes a MAC Address needs to be repopulated in CA Spectrum but the reconfiguration option does not read and/or update the MAC_Address attribute. 

How can Spectrum reread a devices MAC ADDRESS?

Environment

Release: All Supported Releases
Component: SPCDIS - Discovery and Modeling

Resolution

Starting in CA Spectrum 10.03.00 and above there is a CLI update action code (0x10170) that can be used on the model.

For example:

host> cd /usr/CA/spectrum/vnmsh

host> ./connect

host> ./show models | grep SwCiscoIOS

0x1000089   Name  0x2100b2    SwCiscoIOS

host> ./update action=0x10170 mh=0x1000089



 

Additional Information

You can add the following to the <SPECROOT>/tomcat/webapps/spectrum/WEB-INF/topo/config/reconfiguration-subview-config.xml to create a "Rediscover MAC" button like the "Reconfigure Model" and "Discover Connections" buttons seen in the Reconfiguration subview of a model.

Do not edit the original. Make a copy and place the copy in <SPECROOT>/custom/topo/config

Copy the following "Rediscover MAC button" tags: 
 

<field-subview expanded="true">
<show-labels>false</show-labels>
<field-column>
<column>
<swing-cell-template>
<renderer-class>
<param name="actionID">0x10170</param>
<param name="text">Rediscover MAC</param>
<param name="toolTipText">Performs a MAC address discovery on the model</param>
<param name="confirmSuccess">true;true</param>
com.aprisma.spectrum.app.topo.client.render.ActionButtonPanelCellRenderer
</renderer-class>
</swing-cell-template>
</column>
</field-column>
</field-subview>


Add the snippet code here: 





Save the file and restart Tomcat for the changes to take effect.

Note:
You may also have to close and reopen instances of the Console for the button to render properly. 


Example: