cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
877
Views
0
Helpful
6
Replies
Highlighted
Beginner

NSO Load merge giving error

Trying to load netsim lab to NSO and getting this error. Can anyone help ?

 

gag@Jaswant-Singh:~/ncs-run$ ncs_cli -u admin -C

admin connected from 127.0.0.1 using console on Jaswant-Singh
admin@ncs# config
Entering configuration mode terminal
admin@ncs(config)# load merge devices.xml
Loading.
Error: on line 1: access denied
admin@ncs(config)#

6 REPLIES 6
Highlighted
Cisco Employee

Re: NSO Load merge giving error

Can you provided some more details? Is this a system install or a local install?

 

Highlighted
Beginner

Re: NSO Load merge giving error

It is local install

Highlighted
Cisco Employee

Re: NSO Load merge giving error

We're going to need a little more to try help you out here...

 

NSO version?

What is the ncs-netsim lab that you mentioned? From NSO examples.ncs? from dcloud?

What does the devices.xml file contain?

What have you done to get to where you are now?

Highlighted
Beginner

Re: NSO Load merge giving error

gagan@Jaswant-Singh:~/ncs-run$ ncs --version
5.1.0.1
gagan@Jaswant-Singh:~/ncs-run$ echo $NCS_DIR
/home/gagan/nso-5.1
gagan@Jaswant-Singh:~/ncs-run$ ncs-netsim create-network $NCS_DIR/packages/neds/cisco-ios-cli-3.0 2 ios
DEVICE ios0 CREATED
DEVICE ios1 CREATED
gagan@Jaswant-Singh:~/ncs-run$ ncs-netsim start
DEVICE ios0 OK STARTED
DEVICE ios1 OK STARTED
gagan@Jaswant-Singh:~/ncs-run$ ncs-netsim cli-i ios0

admin connected from 127.0.0.1 using console on Jaswant-Singh
ios0> en
ios0# exit
gagan@Jaswant-Singh:~/ncs-run$
gagan@Jaswant-Singh:~/ncs-run$
gagan@Jaswant-Singh:~/ncs-run$ ncs-setup --netsim-dir ./netsim --dest . --package $NCS_DIR/packages/neds/cisco-ios-cli-3.0
Using netsim dir ./netsim
gagan@Jaswant-Singh:~/ncs-run$ ncs
gagan@Jaswant-Singh:~/ncs-run$ ncs_cli -u admin

admin connected from 127.0.0.1 using console on Jaswant-Singh
admin@ncs> show packages
packages package cisco-ios-cli-3.0
package-version 3.0.0.4
description "NED package for Cisco IOS"
ncs-min-version [ 3.0.2 ]
directory ./state/packages-in-use/1/cisco-ios-cli-3.0
component upgrade-ned-id
upgrade java-class-name com.tailf.packages.ned.ios.UpgradeNedId
component cisco-ios
ned cli ned-id cisco-ios-cli-3.0
ned cli java-class-name com.tailf.packages.ned.ios.IOSNedCli
ned device vendor Cisco
NAME VALUE
---------------------
show-tag interface

build-info date "2019-04-13 20:36:20"
build-info file cisco-ios-cli-3.0-source-3.0.0.4.tar.gz
build-info arch .linux.x86_64
build-info java "compiled Java class data, version 50.0"
build-info package name cisco-ios-cli-3.0
build-info package version 3.0.0.4
build-info package ref 3.0.0.4
build-info package sha1 This_Is_An_Example_NED
build-info ncs version 5.1.0.1_HEAD
build-info ncs sha1 This_NED_should_not_be_used
oper-status up
[ok][2019-07-12 15:30:38]
admin@ncs> request devices connect
connect-result {
device ios0
result true
info (admin) Connected to ios0 - 127.0.0.1:10022
}
connect-result {
device ios1
result true
info (admin) Connected to ios1 - 127.0.0.1:10023
}
[ok][2019-07-12 15:30:49]
admin@ncs> request devices sync-from
sync-result {
device ios0
result false
info External error in the NED implementation for device ios0: read timeout
}
sync-result {
device ios1
result false
info External error in the NED implementation for device ios1: read timeout
}
[ok][2019-07-12 15:31:20]
admin@ncs>

Highlighted
Beginner

Re: NSO Load merge giving error

Not understanding why I am getting that error. I am trying to run example from examples.ncs directory.

Highlighted
Cisco Employee

Re: NSO Load merge giving error

Hello,

I just tried the exact commands that you performed and was successful.. (details below)

That suggests that maybe there are differences in your environment, perhaps a firewall?

 

If you enable the NSO southbound trace to the device, you may gather some more information on why the sync-from is failing...

 

admin@ncs> configure
Entering configuration mode private

[edit]
admin@ncs% set devices device ios0 trace raw

[edit]
admin@ncs% commit

admin@ncs% request devices device ios0 disconnect

admin@ncs% request devices device ios0 connect
result true

 

Trace file will be creates at ~ncs-run/logs/ned-cisco-ios-cli-3.0-ios0.trace

 

Tail this file during a sync-from and see if there is any interesting failure information:

 

~/ncs-run/logs$ tail -f ned-cisco-ios-cli-3.0-ios0.trace


>> 15-Jul-2019::14:14:25.273 user: admin/37 thandle 174 hostname NSO-VM-1 device ios0 CLI CONNECT to ios0-127.0.0.1:10022 as admin (Trace=true)
-- SSH connecting to host: 127.0.0.1:10022 --
-- SSH initializing session --

*** input 15-Jul-2019::14:14:25.335 user: admin/37 thandle 174 hostname NSO-VM-1 device ios0 ***

admin connected from 127.0.0.1 using ssh on 
ios0>

 

<.....>

 

 

======= SUCCESSFUL Sync-from ============

 

~ncs-run$ ncs --version
5.1.0.1
~ncs-run$ echo $NCS_DIR
/Users/lmanor/NCS/releases/nso-5.1.0.1
~ncs-run$ ncs-netsim create-network $NCS_DIR/packages/neds/cisco-ios-cli-3.0 2 ios
DEVICE ios0 CREATED
DEVICE ios1 CREATED
~ncs-run$ ncs-netsim start
DEVICE ios0 OK STARTED
DEVICE ios1 OK STARTED
~ncs-run$ ncs-setup --netsim-dir ./netsim --dest . --package $NCS_DIR/packages/neds/cisco-ios-cli-3.0
Using netsim dir ./netsim
~ncs-run$
~ncs-run$ ncs
~ncs-run$ ncs_cli -u admin

admin connected from 127.0.0.1 using console on NSO-VM-1
admin@ncs> show packages
packages package cisco-ios-cli-3.0
package-version 3.0.0.4
description "NED package for Cisco IOS"
ncs-min-version [ 3.0.2 ]
directory ./state/packages-in-use/1/cisco-ios-cli-3.0
component upgrade-ned-id
upgrade java-class-name com.tailf.packages.ned.ios.UpgradeNedId
component cisco-ios
ned cli ned-id cisco-ios-cli-3.0
ned cli java-class-name com.tailf.packages.ned.ios.IOSNedCli
ned device vendor Cisco
NAME VALUE
---------------------
show-tag interface

build-info date "2019-04-13 20:38:10"
build-info file cisco-ios-cli-3.0-source-3.0.0.4.tar.gz
build-info arch .darwin.x86_64
build-info java "compiled Java class data, version 50.0 (Java 1.6)"
build-info package name cisco-ios-cli-3.0
build-info package version 3.0.0.4
build-info package ref 3.0.0.4
build-info package sha1 This_Is_An_Example_NED
build-info ncs version 5.1.0.1_HEAD
build-info ncs sha1 This_NED_should_not_be_used
oper-status up
[ok][2019-07-15 13:58:43]
admin@ncs> request devices connect
connect-result {
device ios0
result true
info (admin) Connected to ios0 - 127.0.0.1:10022
}
connect-result {
device ios1
result true
info (admin) Connected to ios1 - 127.0.0.1:10023
}
[ok][2019-07-15 13:59:02]
admin@ncs> request devices sync-from
sync-result {
device ios0
result true
}
sync-result {
device ios1
result true
}