Reconfigure Model using command line in CA Spectrum
search cancel

Reconfigure Model using command line in CA Spectrum

book

Article ID: 233945

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

To reconfigure a Model from the OneClick console, you manually select the model, and select:

Tools menu -> Reconfiguration -> Reconfigure Model.

How can this be automated via script?

Environment

DX NetOps Spectrum Release 20.2 or later

Cause

Use the command line (CLI) to issue the reconfigure command via update action.

Resolution

In order to script this via the command line, use the Spectrum VNMSH CLI API. The commands would be:

#For Windows
cd %SPECROOT%/vnmsh
#For Linux
cd $SPECROOT/vnmsh

./connect 
./update action=65550 mh=$MH 

 

Where $MH is the value of the Model_Handle attribute

This is a one time action, if the device is not reachable or in maintenance then this action will be ignored.

You need to run it again when the device is available.

Additional Information

For further information on the Spectrum CLI API, refer to the TechDocs:

TechDocs : DX NetOps 21.2 Spectrum : Command Line Interface