# Doing commit confirmed with CLI

**URL:** <https://dmap-community.ductus.global/t/doing-commit-confirmed-with-cli/1339>\
**Category:** Other Northbound Interfaces\
**Created:** [June 19, 2017, 5:39am UTC](https://dmap-community.ductus.global/t/doing-commit-confirmed-with-cli/1339 "2017-06-19T05:39:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![evyatar](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@evyatar](https://dmap-community.ductus.global/u/evyatar)\
**Post date:** [June 19, 2017, 5:39am UTC](https://dmap-community.ductus.global/t/doing-commit-confirmed-with-cli/1339/1 "2017-06-19T05:39:49Z")

</div>

From the user guide (section 16.19.2) I can see that there are many options to the commit command:  
commit (check | and-quit | confirmed []…

but from confd cli I don’t see such options?  
How I can see it?  
I want to check the commit confirmed option using the CLI.

thanks,

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [June 19, 2017, 8:57am UTC](https://dmap-community.ductus.global/t/doing-commit-confirmed-with-cli/1339/2 "2017-06-19T08:57:21Z")

</div>

Have you enabled the candidate datastore in confd.conf?

For example:

```
$ pwd
/Users/tailf/confd-6.4.2/examples.confd/user_guide_examples/simple_cdb
$ diff -u confd.conf.bak confd.conf
--- confd.conf.bak	2017-06-19 09:48:55.000000000 +0200
+++ confd.conf	2017-06-19 09:23:25.000000000 +0200
@@ -171,7 +171,7 @@
          NETCONF, CLI or WebGUI, or other agents.
     -->
     <candidate>
- <enabled>false</enabled>
+ <enabled>true</enabled>
       <!-- By default, confd implements the candidate configuration
            without impacting the application. But if your system
            already implements the candidate itself, set 'implementation' to
@@ -197,7 +197,7 @@
          operations are allowed to write to the running configuration.
     -->
     <running>  
- <access>read-write</access>
+ <access>writable-through-candidate</access>
     </running>
   </datastores>
 
@@ -232,18 +232,18 @@
 
       <!-- enable only if /confdConfig/datastores/candidate is enabled -->
       <candidate>
- <enabled>false</enabled>
+ <enabled>true</enabled>
       </candidate>
 
       <confirmed-commit>
- <enabled>false</enabled>
+ <enabled>true</enabled>
       </confirmed-commit>
 
       <!--
            enable only if /confdConfig/datastores/running/access is read-write
       -->
       <writable-running>
- <enabled>true</enabled>
+ <enabled>false</enabled>
       </writable-running>
 
       <rollback-on-error>
```

---

<div class="post-metadata">

**Author:** ![evyatar](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@evyatar](https://dmap-community.ductus.global/u/evyatar)\
**Post date:** [June 19, 2017, 10:30am UTC](https://dmap-community.ductus.global/t/doing-commit-confirmed-with-cli/1339/3 "2017-06-19T10:30:53Z")

</div>

Hi,

I changed the confd.conf file according to your suggestion but still when I entering the confd\_cli in config exclusive mode I got:  
localhost(config)# commit ?  
Possible completions:  
and-quit Exit configuration mode  
check Validate configuration  
comment Add a commit comment  
label Add a commit label  
no-confirm No confirm  
save-running Save running to file before performing the commit  
  
localhost(config)# commit

No option for commit confirmed

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [June 19, 2017, 11:01am UTC](https://dmap-community.ductus.global/t/doing-commit-confirmed-with-cli/1339/4 "2017-06-19T11:01:32Z")

</div>

Hi,

Check that you configured ConfD using your modified confd.conf:

```
# show netconf-state | nomore | begin candidate | until confirmed-commit:1.1
netconf-state capabilities capability urn:ietf:params:netconf:capability:candidate:1.0
netconf-state capabilities capability urn:ietf:params:netconf:capability:confirmed-commit:1.0
netconf-state capabilities capability urn:ietf:params:netconf:capability:confirmed-commit:1.1
```

---

<div class="post-metadata">

**Author:** ![evyatar](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@evyatar](https://dmap-community.ductus.global/u/evyatar)\
**Post date:** [June 19, 2017, 1:56pm UTC](https://dmap-community.ductus.global/t/doing-commit-confirmed-with-cli/1339/5 "2017-06-19T13:56:12Z")

</div>

root@localhost:~/kvmpackage# ./Confd/bin/confd\_cli  
Welcome to ConfD Basic

The CLI may only be used during product development.  
Commercial use of the CLI is prohibited.  
You must disable the CLI in confd.conf for production.  
For more information, visit [http://www.tail-f.com](http://www.tail-f.com).  
root connected from 10.24.200.100 using ssh on localhost  
localhost# show netconf-state | nomore | begin candidate | until confirmed-commit:1.1  
netconf-state capabilities capability urn:ietf:params:netconf:capability:candidate:1.0  
netconf-state capabilities capability urn:ietf:params:netconf:capability:confirmed-commit:1.0  
netconf-state capabilities capability urn:ietf:params:netconf:capability:confirmed-commit:1.1

Looks that I confiogured as expected but no option for commit confirmed

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [June 19, 2017, 5:00pm UTC](https://dmap-community.ductus.global/t/doing-commit-confirmed-with-cli/1339/6 "2017-06-19T17:00:45Z")

</div>

I suggest you try ConfD Basic 6.4 examples.confd/user\_guide\_examples/simple\_cdb with the modified confd.conf and let me know the result you get.
