cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4470
Views
0
Helpful
16
Replies

Device does not have NED registered

Allase
Level 1
Level 1

I have a virtual router with IOS XRv iosxrv-k9-demo-6.0.1.

I tried ta add this device with the NED cisco-iosxr-cli-7.18 but I have this error :

#############################################################

admin@ncs(config)# devices device myrouter1 connect
result false
info Device myrouter1 does not have a Network Element Driver registered

#############################################################
Can you help me please ?

Thanks

1 Accepted Solution

Accepted Solutions

lmanor
Cisco Employee
Cisco Employee

First, the NED that you are using, cisco-iosxr-cli-7.18 , is a CLI NED, so connecting with NETCONF has not point.

If you want to connect and use NETCONF, you must either acquire or build the NETCONF NED from device YANG modules.

 

A few morre questions,

1) What is the result of the command (from operational mode)

admin@ncs> show packages package oper-status | tab

and 

admin@ncs> show packages package cisco-iosxr-cli-7.18

Is the oper-status for the NED UP?

 

2) Is the device configured to accept SSH on port 22 (as per your NSO device config)

Can you SSH to the device via Linux ssh command on the server that is hosting NSO?

 

3) when you attempt to connect to the device what do all the other NSO Log files show

    from NSO logs directory:

$ tail -f *.log

and attempt connect

View solution in original post

16 Replies 16

I tried this configuration :

##########################################################################

admin@ncs(config)# devices device myrouter1 address 10.1.1.254 port 830 authgroup mygroup
admin@ncs(config-device-myrouter1)# device-type netconf ned-id cisco-iosxr-cli-7.18
admin@ncs(config-device-myrouter1)# state admin-state unlocked
admin@ncs(config-device-myrouter1)# commit

##########################################################################

But I have thoses errors :

####################################################################################
admin@ncs# devices device myrouter1 connect
result false
info Device myrouter1 does not advertise any known YANG modules
admin@ncs# *** ALARM connection-failure: Device myrouter1 does not advertise any known YANG modules

####################################################################################

Try device type cli

Even though it it can do NETCONF, the NED using the CLI

When I tried this configuration :

device-type cli ned-id cisco-iosxr-cli-7.18

I receive this error :

result error
info Device myrouter1 does not have a Network Element Driver registered

When I tried this configuration :

device-type netconf ned-id netconf

I can connect to the device but I can't download the configuration by the commande sync-from (the conf in NSO is empty) :

admin@ncs# devices device myrouter1 check-sync
result unsupported
admin@ncs# devices device myrouter1 sync-from
result true

 

any idea ? is it possible de manage a virtual router iosxrv-k9-demo-6.0.1 with NSO 5.3 and cisco-iosxr-cli-7.18 NED or netconf NED ? Thanks

lmanor
Cisco Employee
Cisco Employee

The cli NED should be able to manage the vXR device.

You  need to get some more information on what is going on between NSO/NED and the router.

I'd enable the southbound trace for the device to see if that provides any new information:

admin@ncs% set devices device xr-0 trace raw

admin@ncs% request devices device xr-0 disconnect
admin@ncs% request devices device xr-0 connect

.trace file with device name will be created in the logs directory.

Also tail all NSO logs while you attempt the connect and sync-from the device.

I add the device, I activate the trace and I make a disconnect/connect to the device. The trace file is created but it is empty !

~/ncs-run/logs$ cat ned-cisco-iosxr-cli-7.18-myrouter1.trace

~/ncs-run/logs$

 

Here are the configurations :

################################################################################################

admin@ncs# show running-config devices device myrouter1
devices device myrouter1
address 10.1.1.254
port 22
ssh host-key ssh-rsa
key-data "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCQrx4L6sr2bhNBqiwNSW9AN1LnhGqog3pFbRh+IzP+\ndoMplrNgmGmj6gs9vY7TjaDqesxvCNGnK2IihIX7FWsNkg1+NiArXPGAkHg9v8SnHPkQ9BM5\n+UlsxAhX30aiFh3/qTG64p5yzTVQ9TYUetHDJO6dZQNE6sT8nliQeVUcoQ=="
!
authgroup mygroup
device-type cli ned-id cisco-iosxr-cli-7.18
device-type cli protocol ssh
trace raw
state admin-state unlocked
config
admin
exit-admin-config

################################################################################################

Here are the results for the commands :

#########################################################

admin@ncs(config)# devices device myrouter1 connect
result false
info Device myrouter1 does not have a Network Element Driver registered

admin@ncs# devices device myrouter1 check-sync
result error
info Device myrouter1 does not have a Network Element Driver registered
admin@ncs#

##########################################################

 

When I configure device-type cli ned-id cisco-iosxr-cli-7.18 --> trace file empty and error message "result false
info Device myrouter1 does not have a Network Element Driver registered"

When I configure device-type netconf ned-id netconf --> connection is established but replay to synch-from is empty :

##################### RPC Request ###################################

<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<get-config><source><running/></source><filter></filter></get-config></rpc>

#################### RPC Replay ###############################

<?xml version="1.0"?>
<rpc-reply message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<data/>
</rpc-reply>

 

Thank you for your help

lmanor
Cisco Employee
Cisco Employee

First, the NED that you are using, cisco-iosxr-cli-7.18 , is a CLI NED, so connecting with NETCONF has not point.

If you want to connect and use NETCONF, you must either acquire or build the NETCONF NED from device YANG modules.

 

A few morre questions,

1) What is the result of the command (from operational mode)

admin@ncs> show packages package oper-status | tab

and 

admin@ncs> show packages package cisco-iosxr-cli-7.18

Is the oper-status for the NED UP?

 

2) Is the device configured to accept SSH on port 22 (as per your NSO device config)

Can you SSH to the device via Linux ssh command on the server that is hosting NSO?

 

3) when you attempt to connect to the device what do all the other NSO Log files show

    from NSO logs directory:

$ tail -f *.log

and attempt connect

1) --> java-uninitialized

admin@ncs# show packages package oper-status
PACKAGE
PROGRAM META FILE
CODE JAVA PYTHON BAD NCS PACKAGE PACKAGE CIRCULAR DATA LOAD ERROR
NAME UP ERROR UNINITIALIZED UNINITIALIZED VERSION NAME VERSION DEPENDENCY ERROR ERROR INFO
-------------------------------------------------------------------------------------------------------------------------------
cisco-ios-cli-3.0 - - X - - - - - - - -
cisco-ios-cli-3.8 - - X - - - - - - - -
cisco-ios-cli-6.42 - - X - - - - - - - -
cisco-iosxr-cli-3.0 - - X - - - - - - - -
cisco-iosxr-cli-3.5 - - X - - - - - - - -
cisco-iosxr-cli-7.18 - - X - - - - - - - -
cisco-nx-cli-3.0 - - X - - - - - - - -
cisco-nx-cli-5.13 - - X - - - - - - - -

admin@ncs# show packages package cisco-iosxr-cli-7.18
packages package cisco-iosxr-cli-7.18
package-version 7.18.2
description "NED package for the Cisco IOS XR"
ncs-min-version [ 4.4.2 ]
directory ./state/packages-in-use/1/cisco-iosxr-cli-7.18
component upgrade-ned-settings
upgrade java-class-name com.tailf.packages.ned.iosxr.UpgradeNedSettings
component cisco-ios-xr
ned cli ned-id cisco-iosxr-cli-7.18
ned cli java-class-name com.tailf.packages.ned.iosxr.IosxrNedCli
ned device vendor Cisco
NAME VALUE
---------------------------------------------------------------------------------------------------
show-partial -
show-tag interface
entitlement-tag regid.2015-10.com.cisco.cisco-iosxr-NED,1.0_9956fc34-cbed-4d13-a1ea-6a36f4e40a99

build-info date "2019-12-27 19:54:43"
build-info file ncs-5.3-cisco-iosxr-7.18.2.tar.gz
build-info arch linux.x86_64
build-info java "compiled Java class data, version 52.0 (Java 1.8)"
build-info python ""
build-info erlang 20.3.8.19
build-info package name cisco-iosxr-cli-7.18
build-info package version 7.18.2
build-info package ref 7.18.2
build-info package sha1 54642ee7
build-info ncs version 5.3
build-info ncs sha1 ""
build-info dev-support version 1.0
build-info dev-support branch 270f126
build-info dev-support sha1 270f126
oper-status java-uninitialized
admin@ncs#

2) Yes, NSO server can connect to device by ssh

3)

==> audit.log <==
<INFO> 29-Apr-2020::16:43:58.345 amine-virtual-machine ncs[2256]: audit user: admin/41 CLI 'devices device myrouter1 connect'

==> devel.log <==
<DEBUG> 29-Apr-2020::16:43:58.585 amine-virtual-machine ncs[2256]: ncs progress db=undefined usid=41 thandle=1449: ncs: device myrouter1: connect: device connect...
<ERR> 29-Apr-2020::16:43:58.586 amine-virtual-machine ncs[2256]: ncs cli ned-id 'cisco-iosxr-cli-7.18:cisco-iosxr-cli-7.18' not registered by user code. The following ned-ids are registered: []
<DEBUG> 29-Apr-2020::16:43:58.595 amine-virtual-machine ncs[2256]: ncs progress db=undefined usid=41 thandle=1449: ncs: device myrouter1: connect: device connect error

==> audit.log <==
<INFO> 29-Apr-2020::16:43:58.597 amine-virtual-machine ncs[2256]: audit user: admin/41 CLI done

 

lmanor
Cisco Employee
Cisco Employee

OK, oper-status java-uninitialized is reported for all packages.

A look at logs/ncs-java-vm.log will probably show your error.

 

I'd guess that 'oper-status java-uninitialized' on all packages probably indicates that your server environment does not have the pre-requisite Java requirements. Please confirm that your server environment meets the requirements specified in the NSO installation guide located in the <nso-install-dir>/doc/pdf.

For java it is Java JDK-8.0 or higher ($ java -version command should show 1.8 or higher)

 

 

 

 

Java and ant are installed -->

amine@ubuntu-vm:~/ncs-run$ java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
amine@ubuntu-vm:~/ncs-run$ ant -version
Apache Ant(TM) version 1.10.5 compiled on March 28 2019
amine@ubuntu-vm:~/ncs-run$

 

ncs-java-vm.log -->

Starting java-vm with options:
' -classpath ./state/packages-in-use/1/cisco-iosxr-cli-7.18/shared-jar/*:./state/packages-in-use/1/cisco-iosxr-cli-7.18/private-jar/*:/home/amine/nso-5.3/java/jar/* -Dport=4569 -Djava.security.egd=file:/dev/./urandom -Dfile.encoding=UTF-8 -Dorg.apache.logging.log4j.simplelog.StatusLogger.level=OFF'
UPGRADE: Ignored upgrade of cisco-ios ned-settings (Enable and recompile if needed)
Starting java-vm with options:
' -classpath :/home/amine/nso-5.3/java/jar/* -Dport=4569 -Djava.security.egd=file:/dev/./urandom -Dfile.encoding=UTF-8 -Dorg.apache.logging.log4j.simplelog.StatusLogger.level=OFF'
NCS JVM STARTING
NcsLogger applying Default configuration!
<INFO> 29-avr.-2020::20:36:51.635 NcsMain JVM-Launcher: - CONNECTED TO to NCS --> Socket[addr=/127.0.0.1,port=4569,localport=49350]
<INFO> 29-avr.-2020::20:36:51.740 NcsMain JVM-Launcher: - READ SOCKET =>
<INFO> 29-avr.-2020::20:36:51.781 NcsMain JVM-Launcher: - <= GOT INIT_JVM

 

Thank you lmanor

I re installed "java" and "ant" packages, the CLI NED is becoming UP and the XRv is managed by NSO.
Now, if I want to manage the device by netconf, how can I acquire the devices Yang modules and build the netconf NED ?

After a period where everything seems to be working, I have the same problem again --> JAVA UNINITIALIZED

#####################################################################################

admin@ncs# show packages package oper-status
PACKAGE
PROGRAM META FILE
CODE JAVA PYTHON BAD NCS PACKAGE PACKAGE CIRCULAR DATA LOAD ERROR
NAME UP ERROR UNINITIALIZED UNINITIALIZED VERSION NAME VERSION DEPENDENCY ERROR ERROR INFO
-------------------------------------------------------------------------------------------------------------------------------
cisco-iosxr-cli-7.18 - - X - - - - - - - -

 

admin@ncs# show java-vm
java-vm start-status stopped
java-vm status not-connected
admin@ncs#

###############################################################################################

 

To start the java-vm, I make thoses modifications on ncs.conf, restart NSO and start java-vm

###############################################################################################

<hide-group>

<name>debug</name>

</hide-group>

 

admin@ncs> unhide debug

admin@ncs> request java-vm start
result Starting Java VM

################################################################################################

Now it's OK but I don't understand why the java-vm was stopped again.