cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1993
Views
5
Helpful
2
Replies

How to check NSO is system install or Local Install

amitsin8
Cisco Employee
Cisco Employee

Is there any command to check NSO is system install or Local Install

2 Replies 2

lmanor
Cisco Employee
Cisco Employee

Hello,

 

I don't know of a NSO command to tell if it has been installed as local or system-install, however from linux you can determine the likely install method from where things are located:

Easy way is to check the ncs binary, if found in a path that goes thru the 'current' link, then it is probably system-install:

 

$ which ncs
/opt/ncs/current/bin/ncs


$ ls -la /opt/ncs/
total 12
drwxr-xr-x. 5 root root 85 Dec 10 15:19 ./
drwxr-xr-x. 7 root root 4096 Dec 10 15:19 ../
lrwxrwxrwx. 1 root root 9 Dec 10 15:19 current -> ncs-5.2.1/
drwxr-xr-x. 2 root root 6 Dec 10 15:19 downloads/
-rw-r--r--. 1 root root 80 Dec 10 15:19 installdirs
drwxr-xr-x. 17 root root 4096 Dec 10 15:19 ncs-5.2.1/
drwxr-xr-x. 2 root root 6 Dec 10 15:19 packages/

 

Other indicators of system-install:

ncs.conf located in /etc/ncs directory:

$ ls /etc/ncs
ipc_access ncs.conf ncs.crypto_keys ssh/ ssl/

 

NSO logs are located at /var/log/ncs:

$ ls /var/log/ncs/
audit.log ncserr.log.1 ncserr.log.siz ncs.log netconf.log
devel.log ncserr.log.idx ncs-java-vm.log ncs-python-vm.log snmp.log

 

NSO is automatically started on linux

on Redhad/CentOS distros, ncs init script located in /etc/init.d/ncs

$ ls /etc/init.d/ncs
/etc/init.d/ncs*

Jason Belk
Cisco Employee
Cisco Employee

You can also check to see if the default credentials of admin / admin or oper / oper work on the web UI.