Slow NCM config download for Juniper devices in Spectrum
search cancel

Slow NCM config download for Juniper devices in Spectrum

book

Article ID: 246852

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

The configuration download is sometimes slow for Juniper devices.  What used to take only a few seconds in older versions of Spectrum is now taking several minutes.

This is still the case even after increasing the memory allocated to NCM by editing

$SPECROOT/lib/SDPM/partslist/NCMSERV.idb 

And changing:

$SPECROOT/bin/JavaApps/bin/ncmservice<CSEXE> -Xms512M -Xmx2048M  

Environment

DX NetOps Spectrum Release : 21.2.x, 10.4.x
Component : SPCAPP Network Configuration Manager (NCM)

Cause

Default behavior: For juniper devices configuration is captured using xml rpc call session

It has been reported that using XML RPC, increases the memory utilization in latest juniper devices. Hence, it has been recommended that we use “show configuration” command instead to avoid this issue.

Resolution

In Spectrum 10.4.2 and higher we added a new capture option:

 Use CLI mode for NCM Operations

When you enable this option, NCM starts using the CLI mode to perform NCM operations on the Juniper JUNOS device family. Previously, only XML RPC was available for executing NCM operations on these devices. Now, users can decide whether they want to use XMP RPC or CLI mode.

 

Additional Information

Two new boolean attributes “useCLICaptureMode” and "useCLIUploadMode" have been added to NCM_Juniper_Family. The default value has been set to false. 

If “useCLICaptureMode” is set to false, then configuration will captured using XML RPC call session. If the value is set to true, then configuration will be captured using the following command in CLI mode:

show configuration | no-more

If “useCLIUploadMode” is set to false, then configuration will uploaded using XML RPC call session. If the value is set to true, then configuration will be uploaded using the commands: