How to prevent Spectrum from querying a device when using an attribute marked as Database

book

Article ID: 222128

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

When using Rest or CLI to query a device attribute (non Spectrum specific) Spectrum will send an SNMP request to the device to obtain the value.  This can cause network delays and extra traffic.  How can we configure Spectrum to only pull the stored attribute value?

Cause

Spectrum configuration

Environment

Release : 21.2

Component :

Resolution

Make sure the attribute has the memory and/or database flag set.  Then you need to add the attribute handle and  CSC_MOST_AVAILALBE setting to the $SPECROOT/tomcat/webapps/spectrum/WEB-INF/attr-config.xml file.  For example:

<attribute>
    <id>0x1102e</id><!-- sysLocation -->
   <read-mode>CSC_MOST_AVAILABLE</read-mode>
  </attribute>

Cycle Tomcat.  The initial population will query the device so the attribute will be populated.  Subsequent queries will use the stored value.