cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1523
Views
0
Helpful
5
Replies

Fabric Switch scripting

sdeshingkar
Community Member

We are using MDS Cisco Fabric switch.I would like to know more about scirpting documentation for switch.

everytime we need to add the port descrition manually via DM.Could u please someone suggest how that can be managed by script.We have mulpiple server description need to add in DM.How that can be do it via script:

How i can copy the text file to switch location and which location path.

For Example:

Suppose i would like to add port description to Port fc12/21 on switch following is syntax how that i can run on for mulpiple servers:


config

interface fc12/21

switchport description XYZ (SP1)

no shutdown

end

show interface fc12/21


Please suggest.

5 Replies 5

dynamoxxx
Level 10
Level 10

add multiple commands to a file

@dynamoxxx

@dynamoxxx

Can you please give me one example please.

and How i can create this file under Switch and which location due to securities reason i unable to copy from windows to switch.

Thanks that will great help.

Email ID: [email protected]

you need to create this file somewhere, it's not like you are going to start writing scripts on the switch itself. Create the commands in notepad or whatever you use and then you can simply copy and paste the commands in your terminal window.

@dynamoxxx

@dynamoxxx

andlevin
Level 2
Level 2

You can leverage our template based provisioning in DCNM webui by creating script leveraging variable definitions in DCNM such as interface range to execute same command on multiple interfaces... DCNM will push configs to the switch via DCNM template.   Only available on latest image of DCNM 6.2.1

Andrew,

can you share some documentation that describes how to use DCNM templates. I've upgraded my lab system to 6.2.1 , the built-in help section is not very descriptive.

Thanks

@dynamoxxx

@dynamoxxx

Review Cisco Networking for a $25 gift card