Yuma Installation Guide

 

 

 

YANG-Based Unified Modular Automation Tools

 

 

YUMA Package Installation

 

Version 2.2

 

Last Updated: January 26, 2012

Table Of Contents

Yuma Installation Guide

1 Preface        2

1.1 Legal Statements        2

1.2 Additional Resources        2

1.2.1 WEB Sites        2

1.2.2 Mailing Lists        3

1.3 Conventions Used in this Document        3

2 Introduction        4

2.1 Intended Audience        4

3 Installation Requirements        4

3.1 Supported Platforms        4

3.2 External Packages        5

3.2.1 libxml2        5

3.2.2 libssh2        5

3.2.3 ncurses        5

3.2.4 zlib        5

3.3 Yuma Packages        5

3.3.1 yuma        5

3.3.2 yuma-doc        6

3.3.3 yuma-dev        6

4 Quick Installation        6

4.1 Ubuntu        6

4.1.1 External Libraries        6

4.1.2 Install the Yuma Package(s)        6

4.2 Fedora        7

4.2.1 External Libraries        7

4.2.2 Install the Yuma Package(s)        7

5 Installed Files        7

5.1 yuma Package        7

5.2 yuma-doc Package        9

5.3 yuma-dev Package         9

6 Next Steps        10

6.1 More Documentation        10

6.2 Running the Yuma Programs        11

6.2.1 yangcli, yangdump, yangdiff        11

6.2.2 netconfd and netconf-subsystem        11

 

1 Preface

1.1 Legal Statements

Copyright 2009 – 2012,  Andy Bierman,  All Rights Reserved.

1.2 Additional Resources

Other documentation includes:

        Yuma  Quickstart Guide

        Yuma User Manual

 Yuma netconfd  Manual

 Yuma yangcli Manual

        Yuma  yangdiff Manual

        Yuma  yangdump Manual

 Yuma Developer Manual

 

To obtain additional support you may join the yuma-users group on sourceforge.net and send email to this e-mail address

 yuma-users@lists.sourceforge.net

The SourceForge.net Support Page for Yuma can be found at this WEB page:

        http://sourceforge.net/projects/yuma/support

There are several sources of free information and tools for use with YANG and/or NETCONF.

The following section lists the resources available at this time.

1.2.1 WEB Sites

1.2.2 Mailing Lists

1.3 Conventions Used in this Document

The following formatting conventions are used throughout this document:

Documentation Conventions

Convention

Description

--foo

CLI parameter foo

<foo>

XML parameter foo

foo

yangcli command or parameter

$FOO

Environment variable FOO

$$foo

yangcli global variable foo

some text

Example command or PDU

some text

Plain text

2 Introduction

 

Refer to section 3 of the Yuma User Manual for a complete introduction to Yuma.

This section focuses on the client and server tools within the Yuma programs.

2.1 Intended Audience

This document is intended for users of the Yuma NETCONF client and server programs.  It covers the installation of the Yuma packages.

3 Installation Requirements

The following requirements must be met for Yuma to be installed.

3.1 Supported Platforms

The following platforms are supported at this time for the Yuma binary package:

3.2 External Packages

The following programs and libraries need to be available for Yuma to work.

3.2.1 libxml2

The libxml2 package is needed by the yuma package for some of the XML parsing functions.  This package is installed by the default Linux installation process.

To build yuma sources, also install the developer version of this package.  It is called libxml2-dev on Ubuntu systems.

3.2.2 libssh2

The libssh2 package is needed by the yuma package for the yangcli program to connect to NETCONF servers using the SSH protocol.  This package is called libssh2-1 on Ubuntu platforms.  This package is not installed by the default Linux installation process.

To build yuma sources, also install the developer version of this package.  It is called libssh2-1-dev on Ubuntu systems.

3.2.3 ncurses

The ncurses library is needed by the yuma package for some terminal support.  This package is installed by the default Linux installation process.

It is called libncurses5 on Ubuntu systems.  

To build yuma sources, also install the developer version of this package.  It is called libncurses5-dev on Ubuntu systems.

3.2.4 zlib

The zlib library is needed by the yuma package for some compression support, used by other libraries that yuma imports.  This package is installed by the default Linux installation process.

To build yuma sources, also install the developer version of this package.  It is called libz-dev on Ubuntu systems.

3.3 Yuma Packages

 The yuma files are split into 3 packages, described below.

3.3.1 yuma

The yuma package contains all the shared libraries, binary programs, man files, YANG files, sample .conf files, needed to run all the programs.  It must be installed.

3.3.2 yuma-doc

The yuma-doc package contains all the documentation files, including this file.  It is only needed if you want the PDF and HTML versions of the documentation installed.  Since these files take up a lot of disk space, an optional package is used to install them.

3.3.3 yuma-dev

The yuma-dev package contains all the server instrumentation library (SIL) developer files.  It is only needed if you want to add YANG modules to the server, and develop your own server instrumentation library code to load into the netconfd server at run-time.

 

4 Quick Installation

This section describes how to use the platform package manager program to install the Yuma    programs.

4.1 Ubuntu

4.1.1 External Libraries

First, make sure the external libraries are installed.

 

mydir> dpkg --list libxml2 libssh2-1

 

If the library is installed, the status will show 'ii libxml2', as in the example below:

 

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name           Version        Description

+++-==============-==============-============================================

ii  libssh2-1      1.2.2-1        SSH2 client-side library

ii  libxml2        2.7.6.dfsg-1ub GNOME XML library

mydir>

 

If the libxml2 library is not installed, then install it with following command:

 

mydir> sudo apt-get install libxml2 libssh2-1

4.1.2 Install the Yuma Package(s)

Next, install the Yuma package.  Here is an example showing all 3 packages being installed.

The actual hardware platform identifier may be different:

mydir> sudo dpkg -i yuma-2.1-1.u1004.i386.deb

mydir> sudo dpkg -i yuma-doc-2.1-1.u1004.i386.deb

mydir> sudo dpkg -i yuma-dev-12.1-1.u1004.i386.deb

 

4.2 Fedora

4.2.1 External Libraries

First, make sure the external libraries are installed.

 

mydir> rpm -q libxml2 ncurses libssh2

 

If the packages are installed then a line will be printed for each package showing the version, such as in the following example (your versions may be different)

 

libxml2-2.7.6-2.fc14.i686

ncurses-5.7-3.20090207.fc14.i686
libssh2-2.3.8.fc14.i686

 

If a package is not already installed, then install it.  This example shows how to install both external libraries:

mydir> sudo yum install libxml2 ncurses libssh2

4.2.2 Install the Yuma Package(s)

Next, install the Yuma package.  Here is an example.

The actual yuma revision and hardware platform may be different:

 

mydir> sudo yum localinstall yuma-2.1-1.fc14.i686.rpm

 

5 Installed Files

5.1 yuma Package

This section describes all the files and/or directories installed by the yuma package:

 

5.2 yuma-doc Package

This section describes all the files and/or directories installed by the yuma-doc package:

5.3 yuma-dev Package

 

6 Next Steps

6.1 More Documentation

 

The unix 'man' program can be used to get documentation about each program.  For example:

Each program also has extensive help information available with the --help CLI parameter.  For example:

6.2 Running the Yuma Programs

6.2.1 yangcli, yangdump, yangdiff

If you are just using the Yuma client applications, then there is no further mandatory setup required.

 

6.2.2 netconfd and netconf-subsystem

The Yuma server does not automatically start running when installed.  This will be supported in a future release.

The following steps must be taken to start the netconfd server:

 
 Port 22

 Port 830

 Subsystem netconf /usr/sbin/netconf-subsystem

 

 


 mydir> /usr/sbin/netconfd --log=$HOME/mylog &

 

 

 
 Fedora 12 version

 mydir> sudo  /etc/rc.d/init.d/sshd restart

 


       
Ubuntu 9.10 version:
       
        mydir>
sudo  /etc/init.d/ssh restart