Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

NX-OS ios_config type equivalent?

Hi all,

Is there an equivalent to ios_config on nx-os?  If there is, can it handle config-sync?

 

Is this something I should be focusing on using TcL & expect from a linux box rather than the tcl installed on the devices?

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Ideally you should be using

Ideally you should be using Python on NX-OS as it will be the first class language moving forward.  There is also a Cisco NX-OS API built in for Python.  The Python "cli" command can help you run config.

 

For Tcl on NX-OS, the "cli" command will allow you to run config commands.  For example:

 

cli "config t ; int e1/1 ; description test"

 

See https://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/6_x/nx-os/fundamentals/configuration/guide/b_Cisco_Nexus_7000_Series_NX-OS_Fundamentals_Configuration_Guide_Release_6-x/b_Cisco_Nexus_7000_Series_NX-OS_Fundamentals_Configuration_Guide_Rele... for more details.

2 REPLIES
Cisco Employee

Ideally you should be using

Ideally you should be using Python on NX-OS as it will be the first class language moving forward.  There is also a Cisco NX-OS API built in for Python.  The Python "cli" command can help you run config.

 

For Tcl on NX-OS, the "cli" command will allow you to run config commands.  For example:

 

cli "config t ; int e1/1 ; description test"

 

See https://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/6_x/nx-os/fundamentals/configuration/guide/b_Cisco_Nexus_7000_Series_NX-OS_Fundamentals_Configuration_Guide_Release_6-x/b_Cisco_Nexus_7000_Series_NX-OS_Fundamentals_Configuration_Guide_Rele... for more details.

Community Member

Thanks Joseph!

Thanks Joseph!

447
Views
0
Helpful
2
Replies
CreatePlease to create content