cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

NXOS Netconf Port

NetDevOp
Beginner
Beginner

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 

1 ACCEPTED SOLUTION

Accepted Solutions

Francesco Molino
VIP Mentor VIP Mentor
VIP Mentor

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:

 

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/93x/progammability/guide/b-cisco-nexus-9000-series-nx-os-programmability-guide-93x/b-cisco-nexus-9000-series-nx-os-programmability-guide-93x_chapter_0100110.html#Cisco_Reference.d...

 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

2 REPLIES 2

Francesco Molino
VIP Mentor VIP Mentor
VIP Mentor

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:

 

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/93x/progammability/guide/b-cisco-nexus-9000-series-nx-os-programmability-guide-93x/b-cisco-nexus-9000-series-nx-os-programmability-guide-93x_chapter_0100110.html#Cisco_Reference.d...

 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Sergiu.Daniluk
VIP Advisor VIP Advisor
VIP Advisor

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: