Cisco Cisco Elastic Services Controller 1.1 Developer's Guide

Page of 82
1  Introduction 
 
The NETCONF API of ESC is to let the northbound clients communicate with ESC using the NETCONF 
protocol.  
1.1  Using NETCONF 
The easiest way to interact with the NETCONF agent in ConfD is to use a small python based program 
called netconf-console that ships with ConfD.  In an ESC 1.0 VM, the netconf-console is located in: 
/opt/confd-5.2.1/bin/netconf-console 
There are the following  operations supported by using netconf-console: 
1.1.1  Get configuration 
# netconf-console --user=admin --password=admin --get-
config -x “/esc_datamodel”
 
1.1.2  Get non-configurable data 
# netconf-console --user=admin --password=admin --get -x 
“/esc_datamodel/opdata” 
1.1.3  Subscribe ESC notifications 
# netconf-console --user=admin --password=admin --create-
subscription=escEvent 
1.1.4  Make RPC calls 
# netconf-console --user=admin --password=admin --rpc 
rpc.xml 
1.1.5  Push in configurations 
# netconf-console --user=admin --password=admin --edit-
config cfg.xml 
1.2  ConfD CLI 
ConfD has a CLI to enable user to read, write configurations and check operational data. 
The path of ConfD CLI in ESC is in: 
/opt/confd-5.2.1/bin/confd_cli 
1.3  Change ConfD Admin Password 
ConfD admin Password can be changed using ConfD CLI. 
1) /opt/confd-5.2.1/bin/confd_cli  -u admin