12-06-2019 09:21 AM
Hi team, i am new to NSO and im trying to follow labs and noticed that the cisco-ios package was not in my ncs-run directory...
I found the packages in my install directory as below...
cisco-ios-cli-3.0
cisco-ios-cli-3.8
these are the two packages i am trying to use... i copied them to the ncs-run directory in the /packages directory...
when i go in to NSO and reload the package... they fail with no error message so how can i find out what the issue could be??
mderosa@ncs# show packages package ?
Description: Show installed packages
Possible completions:
cisco-ios-cli-3.0 - NED package for Cisco IOS
cisco-ios-cli-3.8 - NED package for Cisco IOS
cisco-iosxr-cli-3.0 - NED package for Cisco IOS XR
cisco-nx-cli-3.0 - NED package for the Cisco NX
| - Output modifiers
<cr> -
mderosa@ncs> request packages reload force
reload-result {
package cisco-ios-cli-3.0
result false
info --ERROR--
}
reload-result {
package cisco-ios-cli-3.8
result false
info --ERROR--
}
reload-result {
package cisco-iosxr-cli-3.0
result false
info --ERROR--
}
reload-result {
package cisco-nx-cli-3.0
result false
info --ERROR--
}
[ok][2019-12-06 08:54:24]
please can someone point me in the direction?
This is a brand new fresh install of NSO 5.2.1... i followed instructions for performing a local-install
thanks
Mario
12-06-2019 09:37 AM
Interesting... i see Java is uninitialised...
mderosa@ncs# show packages package oper-status
PACKAGE
PROGRAM META FILE
CODE JAVA BAD NCS PACKAGE PACKAGE CIRCULAR DATA LOAD ERROR
NAME UP ERROR UNINITIALIZED VERSION NAME VERSION DEPENDENCY ERROR ERROR INFO
---------------------------------------------------------------------------------------------------------------
cisco-ios-cli-3.0 - - X - - - - - - -
cisco-ios-cli-3.8 - - X - - - - - - -
cisco-iosxr-cli-3.0 - - X - - - - - - -
cisco-nx-cli-3.0 - - X - - - - - - -
i will investigate that...
Mario
12-06-2019 10:16 AM
Hi!
Two things. Java and Ant are required for the application to work correctly, do you have them installed?
You can check as follows:
➜ ~ java --version openjdk 13.0.1 2019-10-15 OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.1+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.1+9, mixed mode, sharing) ➜ ~ ant -v Apache Ant(TM) version 1.10.7 compiled on September 1 2019
Also you only need one of the two cisco-ios packages. I would pick the newer one cisco-ios-cli-3.8.
You should not need to recompile them if they come with the NSO installation (which those appear to be).
You should be able to just put them in the nso-run/packages folder and run a packages reload force.
One other thing I see is that you are logged in as your local computer user into NSO "mderosa@ncs", rather than a user which has admin access to the application. The default user for NSO local install is admin. You can login as admin by doing
ncs_cli -C -u admin
instead of just doing
ncs_cli -C
The -C gives you the Cisco style CLI (if you don't have it it is Junos style).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide