Cisco NSO (Tailf)

 Installation of NCS/NSO Natively on a Linux

* Install  Java 1.8:
cisco@NSO:~$ sudo  apt install openjdk-8-jre

cisco@NSO:~$  sudo  java -version

java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM


* Install ant:

cisco@NSO:~$ sudo apt  install ant -y

cisco@NSO:~$ ant -version
Apache Ant(TM) version 1.9.6 compiled on July 20 2018

* Update System:
cisco@NSO:~$  sudo  apt update


* Install the NCS/NSO Software in a local directory

cisco@NSO:~/nso-4.7.linux.x86_64$  sh nso-4.7.linux.x86_64.installer.bin $HOME/nsc-47/

* The installation program creates a shell script file named ncsrc in each NCS/NSO installation, which sets the environment variables. Source this file to get these settings in your shell. You may want to add this sourcing command to your login sequence, such as .bashrc.

cisco@NSO:~$ source /home/cisco/nsc-47/ncsrc


*  Create a runtime directory where NCS/NSO keeps its database, state files, logs etc. In these instructions you assume that this directory is $HOME/ncs-run

cisco@NSO:~$ ncs-setup --dest $HOME/ncs-run
cisco@NSO:~$ ls -l ncs-run/
total 36
drwxrwxr-x 2 cisco cisco 4096 Nov 26 17:37 logs
drwxrwxr-x 2 cisco cisco 4096 Nov 26 17:37 ncs-cdb
-rw-rw-r-- 1 cisco cisco 9357 Nov 26 17:37 ncs.conf
drwxrwxr-x 2 cisco cisco 4096 Nov 26 17:37 packages
-rw-rw-r-- 1 cisco cisco  621 Nov 26 17:37 README.ncs
drwxrwxr-x 4 cisco cisco 4096 Nov 26 17:37 scripts
drwxrwxr-x 2 cisco cisco 4096 Nov 26 17:37 state

*  Finally start NCS/NSO and ensure that you run NCS/NSO from the runtime directory.

cisco@NSO:~/ncs-run$ ncs

* Verify the NCS/NSO status
cisco@NSO:~/ncs-run$ ncs --status | grep status
status: started

cisco@NSO:~/ncs-run$ ncs --version
4.7


*  NCS/NSO via the WebUI

cisco@NSO:~/ncs-run$ telnet localhost 8080
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

username/password: admin/admin 





* Stop ncs:
cisco@NSO:~/ncs-run$ ncs --stop
cisco@NSO:~/ncs-run$ ncs --status | grep status
connection refused (status)


------------------------------------------------------------------------------------------------------------

Comments

Popular posts from this blog

Kubernetes 104: Create a 2-node k3s cluster with k3sup

Cisco Nexus: Configuration VXLAN.

How to configure OSPF on Palo Alto Networks Firewall?