
This application is a part of the Netopeer2 software bundle, but compiled and installed separately. It is a NETCONF client with
a command line interface developed and primarily used for Netopeer2 server testing, but allowing all the standards and even
some optional features of a full-fledged NETCONF client.
Netopeer2-cli serves as a generic NETCONF client providing a simple interactive command line interface. It allows you to
establish a NETCONF session with a NETCONF-enabled device on the network and to obtain and manipulate its configuration
data.
6.2.5 Workflow in application practice
In practical application, we use the YANG language to model the device and generate the YANG model. The model is then
instantiated to generate configuration files in XML format. The device was then configured using this configuration file as input
via netopeer.
Figure 21. Workflow for netopeer
6.3 Installing Netopeer2-cli on Ubuntu18.04
Use the following steps for installing Netopeer2-cli onUbuntu18.04 operating systems.
1. Install the following packages:
$ sudo apt install -y git cmake build-essential bison autoconf dh-autoreconf flex
$ sudo apt install -y libavl-dev libprotobuf-c-dev protobuf-c-compiler zlib1g-dev
$ sudo apt install -y libgcrypt20-dev libssh-dev libev-dev libpcre3-dev
2. Install libyang:
$ git clone https://github.com/CESNET/libyang.git
$ cd libyang;
$ git checkout v1.0-r4 -b v1.0-r4
$ mkdir build; cd build
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
$ make
$ sudo make install
3. Install sysrepo(v0.7.8):
$ git clone https://github.com/sysrepo/sysrepo.git
$ cd sysrepo
$ git checkout v0.7.8 -b v0.7.8
NXP Semiconductors
NETCONF/YANG
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
75 / 199