02-18-2024 10:56 AM
Hi,
I have a strange issue and I cannot figure out what was wrong.
I have a netconf device but when I do sync-from I got error:
admin@ncs> request devices device zrdm60gcsmf01 sync-from
result false
info Failed to connect to device zrdm60gcsmf01: Protocol error
[ok][2024-02-18 13:33:20]
admin@ncs> exit
and the trace log size is 0:
-rw-rw-r--. 1 sm000x sm000x 0 Feb 18 13:33 netconf-zrdm60gcsmf01.trace
However, I am able to use
ssh -s sm000x@zrdm60gcsmf01-ip-addess -p 22 netconf
to invoke the netconf (Although it takes longer than usual time)
The device type is netconf:
admin@ncs> show configuration devices device zrdm60gcsmf01
address x.x.x.x;
port 22;
authgroup SMF;
device-type {
netconf {
ned-id smf-nc-1.0;
}
}
state {
admin-state unlocked;
}
I am able to do sync-from to other device with the same authgroup and ned-id:
dmin@ncs> request devices device z68bcsmf01 sync-from
result true
[ok][2024-02-18 13:49:42]
admin@ncs> show configuration devices device z68bcsmf01
address x.x.x.x;
port 22;
authgroup SMF;
device-type {
netconf {
ned-id smf-nc-1.0;
}
}
state {
admin-state unlocked;
}
Does anyone have same expierence?
What does "Protocol error" mean?
THX
sm000x
02-22-2024 05:18 AM
02-22-2024 11:49 PM - edited 02-22-2024 11:50 PM
Hi @sm000x,
As an example, the device manager (vendor A) can, for their OpenSSH server, separate the NETCONF port from the CLI port, with NETCONF on its IANA assigned port 830. Example device /etc/ssh/sshd_config:
Port 22
Port 830
...
Match LocalPort 830
PasswordAuthentication yes
AuthenticationMethods publickey password
ForceCommand /path/to/bin/netconf-subsys
...
Match all
PasswordAuthentication no
AuthenticationMethods publickey keyboard-interactive
ForceCommand /path/to/bin/confd_cli
...
Subsystem netconf /path/to/bin/netconf-subsys
Another option is to run two sshd instances serving either the CLI or NETCONF on separate ports.
02-23-2024 05:35 AM
02-21-2024 05:34 AM
02-20-2024 02:40 PM - edited 02-20-2024 03:08 PM
Hello,
Regarding the trace, maybe you need to enable them.
devices device <device_name> trace raw
commit dry-run
commit
devices device <device_name> connect
Can you also execute the following command and post the output
devices device <device_name> connect | detail debug
#sync-from but if it's fails for the connect it will also fail for the sync-from
devices device <device_name> sync-from | detail debug
Regarding the other devices , are they using the same version ? Same config ssh/netconf config ?
02-20-2024 02:58 PM
02-20-2024 03:10 PM
02-20-2024 03:13 PM - edited 02-20-2024 03:17 PM
Regarding the other devices , are they using the same version ( device os version) ? Same config ssh/netconf config ( i mean device config) ?
02-21-2024 05:46 AM
02-20-2024 03:17 PM - edited 02-20-2024 03:19 PM
Can you switch to netconf ned & check if the connect is working ? ( IF you have no services on it otherwise create a new device that use the previous ip
devices device <device-name> device-type netconf ned-id netconf
02-21-2024 05:42 AM
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