netopeer icon indicating copy to clipboard operation
netopeer copied to clipboard

<get-config> is giving the empty data

Open pradyp11 opened this issue 8 years ago • 3 comments

Hi, I'm using netopeer server and NETCONFc client. When i send request for the modules advertised by server and also my custom modules it gives a empty data.

THnx

pradyp11 avatar May 16 '16 20:05 pradyp11

Hi, I will need a lot more information to be able to help you. It would be best if you started the server with netopeer-server -v3 and then share its whole output here.

Regards, Michal

michalvasko avatar May 17 '16 07:05 michalvasko

Hi Michal,

The output for netopeer-server -v3

netopeer-server[22465]: Shared memory location: /dev/shm/libnetconfshm netopeer-server[22465]: Shared memory file libnetconfshm already exists - opening netopeer-server[22465]: POSIX SHM File Descriptor: 4 (600B). netopeer-server[22465]: Too many running/crashed libnetconf apps. netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model ietf-inet-types. netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model ietf-yang-types. netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model ietf-netconf-monitoring. netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model ietf-netconf-notifications. netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model nc-notifications. netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model notifications. netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model ietf-netconf-with-defaults. netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model ietf-netconf-acm. netopeer-server[22465]: ncds_set_validation: Relax NG validator set (//var/lib/libnetconf//ietf-netconf-acm-config.rng) netopeer-server[22465]: ncds_set_validation: Schematron validator set (//var/lib/libnetconf//ietf-netconf-acm-schematron.xsl) netopeer-server[22465]: Datastore ietf-netconf-acm initiated with ID 8. netopeer-server[22465]: Checking the default Events stream path //var/lib/libnetconf//streams/. netopeer-server[22465]: Adding augment model "/usr/local/etc/netopeer/cfgnetopeer/ietf-x509-cert-to-name.yin" netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model ietf-x509-cert-to-name. netopeer-server[22465]: Adding static transapi "/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server.yin" netopeer-server[22465]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server-config.rng) netopeer-server[22465]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server-schematron.xsl) netopeer-server[22465]: "ssh" features in "ietf-netconf-server" module enabled. netopeer-server[22465]: "inbound-ssh" features in "ietf-netconf-server" module enabled. netopeer-server[22465]: "outbound-ssh" features in "ietf-netconf-server" module enabled. netopeer-server[22465]: Datastore ietf-netconf-server initiated with ID 1804289384. netopeer-server[22465]: Setting the default SSH configuration for the ietf-netconf-server module... netopeer-server[22465]: callback_srv_netconf_srv_listen_srv_port: SSH listening on the port 830 netopeer-server[22465]: Adding static transapi "/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer.yin" netopeer-server[22465]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer-config.rng) netopeer-server[22465]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/cfgnetopeer/netopeer-cfgnetopeer-schematron.xsl) netopeer-server[22465]: "dynamic-modules" features in "netopeer-cfgnetopeer" module enabled. netopeer-server[22465]: "ssh" features in "netopeer-cfgnetopeer" module enabled. netopeer-server[22465]: Datastore netopeer-cfgnetopeer initiated with ID 846930887. netopeer-server[22465]: Setting the default configuration for the cfgnetopeer module... netopeer-server[22465]: Setting the default configuration for the cfgnetopeer module SSH... netopeer-server[22465]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op ADD. netopeer-server[22465]: Adding base model "/root/Downloads/sdn-mon-connectivity.yin" netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model sdn-mon-connectivity. netopeer-server[22465]: Missing RelaxNG schema for validation (/root/Downloads/sdn-mon-connectivity-config.rng - No such file or directory). netopeer-server[22465]: Missing Schematron stylesheet for validation (/root/Downloads/sdn-mon-connectivity-schematron.xsl - No such file or directory). netopeer-server[22465]: Datastore sdn-mon-connectivity initiated with ID 1681692778. netopeer-server[22465]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op ADD. netopeer-server[22465]: Adding base model "/root/Downloads/toaster.yin" netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model toaster. netopeer-server[22465]: Missing RelaxNG schema for validation (/root/Downloads/toaster-config.rng - No such file or directory). netopeer-server[22465]: Missing Schematron stylesheet for validation (/root/Downloads/toaster-schematron.xsl - No such file or directory). netopeer-server[22465]: Datastore toaster initiated with ID 1714636916. netopeer-server[22465]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op ADD. netopeer-server[22465]: Adding transapi "/usr/local/etc/netopeer/ietf-system/ietf-system.yin" netopeer-server[22465]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/ietf-system/ietf-system-config.rng) netopeer-server[22465]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/ietf-system/ietf-system-schematron.xsl) netopeer-server[22465]: "timezone-name" features in "ietf-system" module enabled. netopeer-server[22465]: "authentication" features in "ietf-system" module enabled. netopeer-server[22465]: "local-users" features in "ietf-system" module enabled. netopeer-server[22465]: Datastore ietf-system initiated with ID 1957747794. netopeer-server[22465]: Model "ietf-system" transAPI: nothing changed. netopeer-server[22465]: Starting FMON thread for ietf-system data model. netopeer-server[22465]: Transapi calling callback /A:netopeer/A:modules/A:module/A:enabled with op ADD. netopeer-server[22465]: Unable to monitor "/etc/ntp.conf" (No such file or directory) netopeer-server[22465]: Adding transapi "/usr/local/etc/netopeer/turing-machine/turing-machine.yin" netopeer-server[22465]: ncds_features_parse: no feature definitions found in data model turing-machine. netopeer-server[22465]: ncds_new_internal: Relax NG validator set (/usr/local/etc/netopeer/turing-machine/turing-machine-config.rng) netopeer-server[22465]: ncds_new_internal: Schematron validator set (/usr/local/etc/netopeer/turing-machine/turing-machine-schematron.xsl) netopeer-server[22465]: Datastore turing-machine initiated with ID 424238336. netopeer-server[22465]: Netopeer server successfully initialized. netopeer-server[22465]: sock_listen: could not bind "::0" port 830 (Address already in use) netopeer-server[22465]: Server is not listening on any address!

pradyp11 avatar May 17 '16 14:05 pradyp11

Hi, as I have already mentioned, you need to fix at least the problem of this server instance not listening on any address (last 2 errors), you are now likely connecting to some other (obviously broken) instance. If you cannot make sense from the error and from what I have already written (here and in that closed issue you replied into), then I am unable to help you more, you should know such basics and not waste our time here.

Regards, Michal

michalvasko avatar May 17 '16 14:05 michalvasko