cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1480
Views
10
Helpful
5
Replies

unable to run the l3VPN services example on the NSO user guide

kerim mohammed
Level 3
Level 3

Hi,

I don't seem to be able to run one of the examples provided on the user guide because of the following error when running "make stop clean all start" :

root@localhost mpls-vpn]# make stop clean all start


ncs-netsim stop


*** Need to either specify a netsim directory with --dir or be able

*** to find a netsim directory above us in the directory hierarchy

Try ncs-netsim --help or man ncs-netsim to get usage text

make: [stop] Error 1 (ignored)

ncs --stop

connection refused (stop)

make: [stop] Error 1 (ignored)

for i in l3vpn l3vpnui cisco-ios cisco-iosxr juniper-junos alu-sr; do \

make -C packages/${i}/src clean || exit 1; \

done

make[1]: Entering directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpn/src'

rm -rf  ../load-dir/*

rm -f ../*jar/*.jar

cd java && ant -q clean || true

/bin/sh: ant: command not found

rm -f java/src/com/example/l3vpn/namespaces/*.java

make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpn/src'

make[1]: Entering directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpnui/src'

rm -rf  ../load-dir/*

#rm -f ../*jar/*.jar

#cd java && ant -q clean || true

#rm -f java/src//namespaces/*.java

make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpnui/src'

make[1]: Entering directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/cisco-ios/src'

rm -rf ncsc-out/* ../load-dir/* ncsc-out/*

rm -f ../jar/*.jar

rm -f java/src/com/tailf/packages/ned/ios/namespaces/*.java

cd java && ant clean

/bin/sh: ant: command not found

make[1]: *** [clean] Error 127

make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/cisco-ios/src'

make: *** [clean] Error 1

[root@localhost mpls-vpn]#

I appreciate your input.

Thanks,

Kerim

1 Accepted Solution

Accepted Solutions

Hi,

"/bin/sh: ant: command not found"

You need to install ant

Ubuntu ex:

sudo apt-get install ant

Make sure you also have JDK installed

br,

Martin

View solution in original post

5 Replies 5

Hi,

"/bin/sh: ant: command not found"

You need to install ant

Ubuntu ex:

sudo apt-get install ant

Make sure you also have JDK installed

br,

Martin

Hi Martin,

;

thanks for the reply. It got me a bit closer. But, still no luck. Below is what am seeing now:

[root@localhost mpls-vpn]# java -version

openjdk version "1.8.0_131"

OpenJDK Runtime Environment (build 1.8.0_131-b12)

OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)

[root@localhost mpls-vpn]# ant -version

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64/lib/tools.jar

Apache Ant(TM) version 1.9.10 compiled on February 3 2018

[root@localhost mpls-vpn]# make stop clean all start

ncs-netsim stop

make: ncs-netsim: Command not found

make: [stop] Error 127 (ignored)

ncs --stop

make: ncs: Command not found

make: [stop] Error 127 (ignored)

for i in l3vpn l3vpnui cisco-ios cisco-iosxr juniper-junos alu-sr; do \

make -C packages/${i}/src clean || exit 1; \

done

make[1]: Entering directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpn/src'

Makefile:16: /src/ncs/build/include.ncs.mk: No such file or directory

make[1]: *** No rule to make target `/src/ncs/build/include.ncs.mk'.  Stop.

make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpn/src'

make: *** [clean] Error 1

[root@localhost mpls-vpn]#

Hi,

Make sure you source the ncsrc file in the NSO installation directory.

ex:

source /home/kerim/ncs_install/ncsrc

ncsrc has the paths to all the nso libs and binaries.

I sourced it. In fact, I installed jdk1.9 and set the environment variables (PATH). did new installation of ncs. but still...

able to give further configuration.

/bin/sh: line 4: 23231 Killed                  /home/kerim/ncs_install//bin/ncsc --ncs-compile-module yang/tailf-ned-cisco-ios.yang --ncs-device-dir ncsc-out --ncs-skip-statistics --ncs-device-type cli-ned

make[1]: *** [ncsc-out/modules/fxs/tailf-ned-cisco-ios.fxs] Error 137

make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/cisco-ios/src'

make: *** [build-all] Error 1

[root@localhost mpls-vpn]#

thanks...cleaned up the whole thing and restarted the VM. it starts working now. I appreciate your help.

Kerim

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: