cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

1134
Views
0
Helpful
1
Replies
Highlighted
Enthusiast

Getting an device connection refused error, " info Failed to connect to device router-0: connection refused: useMaapiSetValues"

Hi NSO Team,

Please advise me on below mentioned error message,

admin@ncs> request devices sync-from

sync-result {

    device router-0

    result false

    info Failed to connect to device router-0: connection refused: useMaapiSetValues

}

[ok][2018-07-04 10:28:37]

admin@ncs> *** ALARM connection-failure: Failed to connect to device router-0: connection refused: useMaapiSetValues

Environment details:

NSO version: 4.4.4

I am following below device command to connect the device:

set devices device router-0 address 172.16.49.80 port 830

set devices authgroups group csrgroup default-map remote-name admin remote-password admin remote-secondary-password admin

set devices device router-0 authgroup csrgroup

set devices device rou ter-0 state admin-state unlocked

set devices device router-0 device-type cli ned-id cisco-ios protocol ssh

set devices device router-0 trace pretty

FYI,

tail -f  logs/devel.log:

<DEBUG> 4-Jul-2018::10:28:36.988 cisco-nso ncs[3413]: ncs Requestor {'sync-from',57,<0.731.0>} tries to acquire lock for device <<"router-0">>

<INFO> 4-Jul-2018::10:28:36.989 cisco-nso ncs[3413]: ncs syncing from router-0...

<INFO> 4-Jul-2018::10:28:37.023 cisco-nso ncs[3413]: ncs connecting NED router-0

<DEBUG> 4-Jul-2018::10:28:37.048 cisco-nso ncs[3413]: devel-cdb connect from Cdb-ResourceManaged-2

<INFO> 4-Jul-2018::10:28:37.215 cisco-nso ncs[3413]: ncs failed to connect to router-0: noconnection

<DEBUG> 4-Jul-2018::10:28:37.215 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=42: entering write phase for operational...

<DEBUG> 4-Jul-2018::10:28:37.216 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=42:   cdb: write_start

<DEBUG> 4-Jul-2018::10:28:37.216 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=42: entering prepare phase for operational...

<DEBUG> 4-Jul-2018::10:28:37.216 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=42:   cdb: prepare

<DEBUG> 4-Jul-2018::10:28:37.217 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=42: entering commit phase for operational...

<DEBUG> 4-Jul-2018::10:28:37.217 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=42:   cdb: commit

<DEBUG> 4-Jul-2018::10:28:37.301 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=43: entering write phase for operational...

<DEBUG> 4-Jul-2018::10:28:37.301 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=43:   cdb: write_start

<DEBUG> 4-Jul-2018::10:28:37.301 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=43: entering prepare phase for operational...

<DEBUG> 4-Jul-2018::10:28:37.301 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=43:   cdb: prepare

<DEBUG> 4-Jul-2018::10:28:37.301 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=43: entering commit phase for operational...

<DEBUG> 4-Jul-2018::10:28:37.301 cisco-nso ncs[3413]: ncs commit progress db=undefined usid=57 thandle=43:   cdb: commit

<INFO> 4-Jul-2018::10:28:37.337 cisco-nso ncs[3413]: ncs syncing from router-0 error

<DEBUG> 4-Jul-2018::10:28:37.358 cisco-nso ncs[3413]: ncs Device <<"router-0">> is unlocked

Thanks

Kannan

1 REPLY 1
Cisco Employee

Re: Getting an device connection refused error, " info Failed to connect to device router-0: connection refused: useMaapiSetValues"

Hi Kannan

this seems a bit odd to me - you have "port 830" -- but ssh ? and the cisco IOS NED ?

question: are you trying to connect w/ NETCONF? or SSH?

set devices device router-0 address 172.16.49.80 port 830

set devices authgroups group csrgroup default-map remote-name admin remote-password admin remote-secondary-password admin

set devices device router-0 authgroup csrgroup

set devices device rou ter-0 state admin-state unlocked

set devices device router-0 device-type cli ned-id cisco-ios protocol ssh

set devices device router-0 trace pretty

I would think if it's a normal cisco IOS device, and SSH is enabled, you do not need to specify anything off of the default port.

it's unclear to me why you specify "port 830"

perhaps you can try ?

thanks

gregg