Copy Running to Startup is not working

Hi,
I have opened the Netconf option to communicate with my confd.
I can do get and set of configuration.
But when running copy-config from running to startup this command it will say it is successful BUT the configuration is not updated…

the command (rapped with “rpc” and so on…):

`


`

The output :

[2017/07/26 17:03:00] Sent command 4e1dc784-d497-487c-9817-75a421462282:7.
**[2017/07/26 17:03:00] **
[2017/07/26 17:03:00] Session 4e1dc784-d497-487c-9817-75a421462282 message: rpc sent.
**[2017/07/26 17:03:00] **
[2017/07/26 17:03:00] Session 4e1dc784-d497-487c-9817-75a421462282 message: reply received.
**[2017/07/26 17:03:00] **
[2017/07/26 17:03:00] Command 4e1dc784-d497-487c-9817-75a421462282:7; copy-config was successful (took 59 ms).

But when you check startup config - no updates there.
When i run CLI command with same credentials on same confd it will work (copy running-config startup-config)

Hello,

please can you describe how do you check content of startup config? Did you try to invoke copy-config via NETCONF and check with CLI (show startup-config) if it is present?

I tried a simple test and I was able to copy configuration from running to startup without problems. I found I had to enable both the startup datastore and startup capability in confd.conf. Did you do both of these steps?

You might try to also test the result via NETCONF by doing a get-config or get on the startup datastore for what you thought should have been copied. I did the but checked via CLI, but possibly your NETCONF request went to a different device?

Hi Greg,
Yes , i was checking “show startup-config” from CLI , and the change was not there.
But when running the copy command from CLI and then running the “show startup-config”, changes were there.

Also , “startup” capability is enabled both in general section and in netconf section

<datastores> <!-- 'startup' means that the system keeps separate running and startup configuration databases. When the system reboots for whatever reason, the running config database is lost, and the startup is read. Enable this only if your system uses a separate startup and running database. --> <startup> <enabled>true</enabled> </startup>

and under netconf section is have this :
<!-- enable only if /confdConfig/datastores/startup is enabled --> <startup> <enabled>true</enabled> </startup>

Hi ,
Yes , i was checking “show startup-config” from CLI , and the change was not there.
But when running the copy command from CLI and then running the “show startup-config”, changes were there.

Hello,

I have made small example and copy config works for both CLi and NETCONF.

The example can be downloaded here:
https://cisco.box.com/s/p03xdpf6wlako2lbb9solfm60mizy4rk

Instructions are in Makefile.

Please, can you test?