netopeer, netopeer-cli installation and configuration

# Install required software

apt-get update

apt-get install -y git libxml2 libxml2-dev libxslt-dev libssh2-1-dev libcurl4-gnutls-dev libdbus-1-dev doxygen libevent-dev libreadline-dev libncurses-dev libxml++2.6-dev libtool python-libxml2 openssh-server xsltproc cmake build-essential libssl-dev libtool-bin wget python-setuptools vim

apt-get clean

apt-get purge

 # Install libssh >= 0.6.4

wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.6.4.tar.gz

tar xvfz libssh-0.6.4.tar.gz

rm -rf libssh-0.6.4.tar.gz

cd libssh-0.6.4/build

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..

make && make install

 # Install pyang

https://anukulverma.wordpress.com/2016/03/26/pyang-installation/

 # Install libnetconf and lnctool

https://anukulverma.wordpress.com/2016/03/15/libnetconf-installation/

 

[libnetconf] # cp dev-tools/lnctool/lnctool /usr/local/bin/

 # Install netopeer (cli)

git clone https://github.com/CESNET/netopeer.git

cd netopeer/server/

./configure –disable-dbus

make && make install

cd ../cli

./configure

make && make install

 

=============     Run netopeer-cli      ===================

Start :

netopeer-cli

connect –login <username> <ip>

If you face library not found error while starting netopeer-cli [this maybe due to path mismatch, some libraries and installed in /usr/local/lib and some are in /usr/lib]

As a workaround create soft links for those libraries

[check versions properly]

ln -s /usr/local/lib/libnetconf.so.0.10.0 /usr/lib/libnetconf.so.0

ln -s /usr/local/lib/libssh_threads.so.4.4.1 /usr/lib/libssh_threads.so.4

ln -s /usr/local/lib/libssh.so.4.4.1 /usr/lib/libssh.so.4

start netopeer-cli again

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s