09-10-2020 11:47 AM
Hello all,
I am trying to connect to a couple of Nexus 9k's using Netconf. I get a response over port 22 and can pull the config but I don't see any configuration options or documentation on how to get the switches to use port 830. Any suggestions on how to do this?
Thanks
Solved! Go to Solution.
09-10-2020 08:32 PM
Hi
After you enabled the feature netconf, automatically the switch listens to port 830, you don't have to do anything.
Have you tried connecting on port 830 over ssh to valide the connection?
Here a link showing how to test it:
09-10-2020 08:32 PM
Hi
After you enabled the feature netconf, automatically the switch listens to port 830, you don't have to do anything.
Have you tried connecting on port 830 over ssh to valide the connection?
Here a link showing how to test it:
09-10-2020 10:33 PM
Hi @NetDevOp
The hard way (cli style):
client-host % ssh -s admin@<mgmt-ip-of-nexus> -p 830 netconf # netconf operations
The easy way (the ncclient python module):
from ncclient import manager device = { "address": "<mgmt-ip-of-nexus>", "netconf_port": 830, "username": "admin", "password": "password" } with manager.connect(host = device["address"], port = device["netconf_port"], username = device["username"], password = device["password"], hostkey_verify = False) as m: # do your stuff
Stay safe,
Sergiu
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