Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clixon_netconf_ssh_callhome.c #523

Open
khromenokroman opened this issue May 25, 2024 · 6 comments
Open

clixon_netconf_ssh_callhome.c #523

khromenokroman opened this issue May 25, 2024 · 6 comments
Labels

Comments

@khromenokroman
Copy link

Hello, in version 5.9.0 it was in test/util clixon_netconf_ssh_call home.c and in 7.0.1 this is not
in the documentation https://clixon-docs.readthedocs.io/en/latest/netconf.html it says what should be used

The call home and callhome-client referred to above are implemented by the utility functions:
util/clixon_netconf_ssh_callhome and util/clixon_netconf_ssh_callhome_client.

I also looked at the tests test_netconf_ssh_callhome.sh , it is also used in tests there
-o ProxyCommand=\"clixon_netconf_ssh_callhome_client

But I don't have it.

can you tell me how I should do it in the end? Need help :))

@khromenokroman
Copy link
Author

image
I took the latest one available, but when connecting from sending, the request itself is not sent, hello comes and the body itself is not there :((

@khromenokroman
Copy link
Author

khromenokroman commented May 25, 2024

client

ssh -s -v -l sysadmin -o ProxyUseFdpass=yes -o ProxyCommand="clixon_netconf_ssh_callhome_client -a 10.0.5.7" . netconf < msg
<?xml version="1.0" encoding="UTF-8"?><hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><capabilities><capability>urn:ietf:params:netconf:base:1.1</capability></capabilities></hello>]]>]]><rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><get-config><source><candidate/></source></get-config></rpc>]]>]]>

servet

clixon_netconf_ssh_callhome -c /usr/share/test/clixon/clixon-test.xml -a 10.0.5.7

I do it according to the documentation https://clixon-docs.readthedocs.io/en/latest/netconf.html 10.5 example

@olofhagsand
Copy link
Member

the utility functions have moved to https://github.com/clicon/clixon-util

@olofhagsand
Copy link
Member

I updated the docs to point to that location.

@olofhagsand
Copy link
Member

There is also a regression test here: https://github.com/clicon/clixon/blob/master/test/test_netconf_ssh_callhome.sh
You should be able to make it work via that.
If you see other problems with the docs, please tell.

@khromenokroman
Copy link
Author

@olofhagsand tell me, I understand correctly that when using call home, I have to make sure that the ssh key is on the host, it does not transmit it itself, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants