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
DX NetOps Spectrum Release : 21.2.x, 10.4.x
Component : SPCAPP Network Configuration Manager (NCM)
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.
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.
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: