cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1581
Views
0
Helpful
2
Replies

SCRYPT PHYTON TO CONFIGURATIONS

Ramses1
Community Member

Hi Community.

Someone has a scrypt to do a massive configuration of VLANS in meraki switches by API, I have the scrypt to do it one by one but I need to make several and I don't know much about programming.

2 Replies 2

I am not sure if this approach is really a good idea ...

But if you have a working script for one VLAN, make a copy/paste of that call and adjust the parameters.

The more efficient way would be to have a csv file with all parameters and loop through the lines of this file.

And if you want to learn this, here is a good start:

image.png

--
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.

sungod
Level 11
Level 11

The 'best' way to do it will depend on exact details/context.

I suggest look at switch templates and port profiles to see if using them would solve all/part of what you want to do...

https://documentation.meraki.com/Architectures_and_Best_Practices/Cisco_Meraki_Best_Practice_Design/Best_Practice_Design_-_MS_Switching/Templates_for_Switching_Best_Practices

https://documentation.meraki.com/MS/Port_and_VLAN_Configuration/Switch_Port_Profiles

The API can also be used with these.

Within the API, action batches a possible way to be more efficient when making a lot of changes...

https://developer.cisco.com/meraki/api-v1/action-batches-overview/