# Netconf-console or restconf takes a lot of time

**URL:** <https://dmap-community.ductus.global/t/netconf-console-or-restconf-takes-a-lot-of-time/1465>\
**Category:** Other Northbound Interfaces\
**Created:** [August 10, 2017, 9:46am UTC](https://dmap-community.ductus.global/t/netconf-console-or-restconf-takes-a-lot-of-time/1465 "2017-08-10T09:46:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![poornima11](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@poornima11](https://dmap-community.ductus.global/u/poornima11)\
**Post date:** [August 10, 2017, 9:46am UTC](https://dmap-community.ductus.global/t/netconf-console-or-restconf-takes-a-lot-of-time/1465/1 "2017-08-10T09:46:09Z")

</div>

Team,

Our schema is huge and has a number of configuration and state data under each entry inside the list. We use a number of grouping and nested containers inside the list.  
Approximately, around 1500 lines of config under each entry in the list ( learnt from netconf.trace ). In our set-up, currently we have around 700 entries.

Get config using, netconf-console or restconf, takes a lot of time to provide us the config.

netconf-console --user=admin --password=admin --get-config -x ‘/managed-ap/database’  
Log from netconf.log  
 10-Aug-2017::08:32:56.085 9627d376126c confd[847]: netconf id=872 new ssh session for user “admin” from 127.0.0.1  
 10-Aug-2017::08:32:56.099 9627d376126c confd[847]: netconf id=872 got rpc: {urn:ietf:params:xml:ns:netconf:base:1.0}get-config attrs: message-id=“1”  
 10-Aug-2017::08:32:56.099 9627d376126c confd[847]: netconf id=872 get-config source=running attrs: message-id=“1”  
 10-Aug-2017::08:32:56.187 9627d376126c confd[847]: netconf id=872 sending rpc-reply, attrs: message-id=“1”  
 10-Aug-2017::08:33:33.611 9627d376126c confd[847]: netconf id=872 close-session attrs: message-id=“0”  
 10-Aug-2017::08:33:33.612 9627d376126c confd[847]: netconf id=872 sending rpc-reply, attrs: message-id=“0”

As you can see, it almost took above a minute to fetch the config.

When I fetch a single leaf parameter inside the list, the response is faster.  
netconf-console --user=admin --password=admin --get-config -x ‘/managed-ap/database/ap\_name’  
  
 10-Aug-2017::08:29:38.274 9627d376126c confd[847]: netconf id=866 new ssh session for user “admin” from 127.0.0.1  
 10-Aug-2017::08:29:38.288 9627d376126c confd[847]: netconf id=866 got rpc: {urn:ietf:params:xml:ns:netconf:base:1.0}get-config attrs: message-id=“1”  
 10-Aug-2017::08:29:38.288 9627d376126c confd[847]: netconf id=866 get-config source=running attrs: message-id=“1”  
 10-Aug-2017::08:29:38.364 9627d376126c confd[847]: netconf id=866 sending rpc-reply, attrs: message-id=“1”  
 10-Aug-2017::08:29:38.412 9627d376126c confd[847]: netconf id=866 close-session attrs: message-id=“0”  
 10-Aug-2017::08:29:38.413 9627d376126c confd[847]: netconf id=866 sending rpc-reply, attrs: message-id=“0”

Same problem when we try to fetch state data as well.  
netconf-console --user=admin --password=admin --db=operational --get -x ‘/managed-ap/database/oper-state-data’  
 10-Aug-2017::09:31:30.748 ba007ff505bd confd[183]: netconf id=726 new ssh session for user “admin” from 127.0.0.1  
 10-Aug-2017::09:31:30.758 ba007ff505bd confd[183]: netconf id=726 got rpc: {urn:ietf:params:xml:ns:netconf:base:1.0}get attrs: message-id=“1”  
 10-Aug-2017::09:31:30.758 ba007ff505bd confd[183]: netconf id=726 get attrs: message-id=“1”  
 10-Aug-2017::09:31:30.843 ba007ff505bd confd[183]: netconf id=726 sending rpc-reply, attrs: message-id=“1”  
 10-Aug-2017::09:31:38.762 ba007ff505bd confd[183]: netconf id=726 close-session attrs: message-id=“0”  
 10-Aug-2017::09:31:38.763 ba007ff505bd confd[183]: netconf id=726 sending rpc-reply, attrs: message-id=“0”

How do we evaluate the problem here? Kindly suggest.  
We are using confd 6.0.2 version.

Best regards

---

<div class="post-metadata">

**Author:** ![nabil](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nabil](https://dmap-community.ductus.global/u/nabil)\
**Post date:** [August 16, 2017, 11:24pm UTC](https://dmap-community.ductus.global/t/netconf-console-or-restconf-takes-a-lot-of-time/1465/2 "2017-08-16T23:24:00Z")

</div>

This might be normal, depending on how much data is being returned.

How does the CLI behave in this case when you do : “show configuration managed-ap database ap\_name”? How much time does it take?

Is this a consistent observation or intermittent?

---

<div class="post-metadata">

**Author:** ![poornima11](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@poornima11](https://dmap-community.ductus.global/u/poornima11)\
**Post date:** [August 29, 2017, 4:36am UTC](https://dmap-community.ductus.global/t/netconf-console-or-restconf-takes-a-lot-of-time/1465/3 "2017-08-29T04:36:58Z")

</div>

The CLI is relatively faster but is also slow. This is a consistent observation when we have a large amount of data to be fetched.

Best regards
