netopeer-cli can not connect to netopeer-server-ml

274 views
Skip to first unread message

mobao

unread,
Mar 12, 2015, 5:38:49 AM3/12/15
to neto...@googlegroups.com


Hi all,

  I have tested the netopeer-server-sl a few days before, and yet, when I used netopeer-cli to connect netopeer-server-ml, I feel confused. According to the guidelines of netopeer-server-ml, I installed it step-by-step:

  1. # cd /home/mobao/netopeer/server ; #./configure --with-dbus-services ; #make ; #make install
  2. Configure NACM just like below:

    
  3. #vi /etc/ssh/sshd_config. Add "Port 830". Restart sshd service.
  4..Stop and disable firewall service.

  BUT, when I try to open the netopeer-server, it looks like this:

[root@localhost mobao]# netopeer-server -v 3
netopeer-server[2272]: Shared memory key: -4
netopeer-server[2272]: Shared memory ID: 262146
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model ietf-inet-types.
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model ietf-yang-types.
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model ietf-netconf-monitoring.
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model ietf-netconf-notifications.
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model nc-notifications.
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model notifications.
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model ietf-netconf-with-defaults.
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model ietf-netconf-acm.
netopeer-server[2272]: ncds_set_validation: Relax NG validator set (//var/lib/libnetconf//ietf-netconf-acm-data.rng)
netopeer-server[2272]: ncds_set_validation: Schematron validator set (//var/lib/libnetconf//ietf-netconf-acm-schematron.xsl)
netopeer-server[2272]: Datastore ietf-netconf-acm initiated with ID 8.
netopeer-server[2272]: Checking the default Events stream path //var/lib/libnetconf//streams/.
netopeer-server[2272]: Adding augment model "/usr/local/etc/netopeer/cfgnetopeer/ietf-x509-cert-to-name.yin"
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model ietf-x509-cert-to-name.
netopeer-server[2272]: Adding static transapi "/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server.yin"
netopeer-server[2272]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server-data.rng)
netopeer-server[2272]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server-schematron.xsl)
netopeer-server[2272]: Datastore ietf-netconf-server initiated with ID 1804289384.
netopeer-server[2272]: Setting default configuration for ietf-netconf-server module
netopeer-server[2272]: callback_srv_netconf_srv_ssh_srv_listen_oneport: port 830
netopeer-server[2272]: callback_srv_netconf_srv_ssh_srv_listen: started sshd (PID 2273)
netopeer-server[2272]: Adding static transapi "/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer.yin"
netopeer-server[2272]: ncds_features_parse: no feature definitions found in data model netopeer-cfgnetopeer.
netopeer-server[2272]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer-data.rng)
netopeer-server[2272]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer-schematron.xsl)
netopeer-server[2272]: Datastore netopeer-cfgnetopeer initiated with ID 846930887.
netopeer-server[2272]: Netopeer server successfully initialized.
netopeer-server[2272]: Some message received
netopeer-server[2272]: Unsupported DBus message type received.
netopeer-server[2272]: Some message received
netopeer-server[2272]: Unsupported DBus message type received.

  It looks that it didn't work correctly. On the other side, I use cli to connect server, it looks like this:

netconf> connnect --port 830 --login root 192.168.0.237
libnetconf ERROR: Unable to connect to 192.168.0.237:830.
connect: connecting to the 192.168.0.237:830 as user "root" failed.
netconf>

  What's the matter? 

  Best Regards, thanks!

mobao

Michal Vasko

unread,
Mar 12, 2015, 6:35:43 AM3/12/15
to neto...@googlegroups.com
Hi Mobao,

netopeer-configurator and netopeer-server output seem correct. However, the third step you mentioned, editing the global system SSHD confguration file is not needed with netopeer-server, as it uses its own. You can try "ssh -p 830 ro...@192.168.0.237 -s netconf", it should output the hello message. If not, then there is another problem. To start I would suggest you delete the NETCONF SSH subsystem from "/etc/ssh/sshd_config" and try connecting again.

Regards,
Michal

mobao

unread,
Mar 13, 2015, 3:21:58 AM3/13/15
to neto...@googlegroups.com
Hi Michal,

    Yesterday, on the server side, I followed your suggestion, and deleted the "Port 830" in /etc/ssh/sshd_config file (as it uses its own). Then, restart sshd service. When I typed in command: ssh ro...@192.168.0.237 -p 830 -s netconf in cli, it return result like below:
ssh: connect to host 192.168.0.237 port 830: No route to host
    But today, It works as perfect ^_^:
ro...@192.168.0.237's password: 
<hello> 
...     
</hello>
    I don't know why? Whatever, I can continue my NETCONF testing work! thank you so much!

    regards,
mobao
Reply all
Reply to author
Forward
0 new messages