cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
210
Views
5
Helpful
2
Replies
Highlighted
Beginner

NXOS Netconf Port

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
Highlighted
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
Highlighted
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

Highlighted
Collaborator

Hi @CLI_Owl 

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

Content for Community-Ad
Cisco Community October 2020 Spotlight Award Winners
This widget could not be displayed.