Showing results for 
Search instead for 
Did you mean: 
Create Post

Configuration Template isn't writing to NRAM

I have a simple configuration change template to set the SNMP location & contact of Juniper devices. I created a new Juniper Device template because the default one wasn't working either.

Here is my configuration template.



        This change template configures SNMP base options on JunOS devices.


        Juniper, IOS, SNMP


        NCM Node


        The node the template will operate on.  All templates require this by default. The target node is selected during the first part of the wizard so it will not be available for selection when defining values of variables.


        e.g. Office1 or Office2


        Specify a location for the SNMP device


script ConfigureSNMPJuniperIOS (

NCM.Nodes @ContextNode,

string @Location



   string @Contact='"IT"'

   string @SNMPLocation='"' + @Location + '"'




        set snmp location @SNMPLocation

        set snmp contact @Contact



Here is my device template

<!-- edited with XML Spy v4.4 U ( by () -->

<!--SolarWinds Network Management Tools-->

<!--Copyright 2005 SolarWinds.Net All rights reserved-->

<Configuration-Management Device="Juniper Devices" SystemOID="">


<Command Name="Reset" Value="set cli complete-on-space off${CRLF}set cli screen-width 0${CRLF}set cli screen-length 0"/>

<Command Name="Reboot" Value="request system reboot${CRLF}yes"/>

<Command Name="EnterConfigMode" Value="edit"/>

<Command Name="ExitConfigMode" Value="exit"/>

<Command Name="DownloadConfig" Value="show"/>

<Command Name="UploadConfig" Value="${EnterConfigMode}${CRLF}${ConfigText}${CRLF}${ExitConfigMode}"/>

<Command Name="SaveConfig" Value="commit and-quit"/>

<Command Name="Version" Value="show version brief"/>



2/17/2020 1:44:52 PM on Corp-VC-Core ( by HECLA\jsanders

When I run the commands in the CLI statement (set snmp location & contact...) by CLI via Putty and execute a commit I get the following.


jsanders@Corp-VC-Core# commit and-quit


configuration check succeeds


commit complete


commit complete


commit complete


commit complete


commit complete

Exiting configuration mode



However, when I run the script via the config template change and choose the write to NVRAM option I get


Entering configuration mode



set snmp location "CdA Office"


set snmp contact "Hecla IT"




The change does not commit and if I re-login to the box via putty it tells me I have uncommitted changes and they reflect the script I just ran.

--- JUNOS 12.3R9.4 built 2015-02-12 11:08:41 UTC


jsanders@Corp-VC-Core> edit

Entering configuration mode

The configuration has been changed but not committed


jsanders@Corp-VC-Core# show | compare

[edit snmp]

-  location Office2;

+  location "Office1";

What am I doing wrong?

Labels (2)
Tags (3)
0 Kudos
0 Replies