SCRYPT PHYTON TO CONFIGURATIONS

Ramses1
Just browsing

SCRYPT PHYTON TO CONFIGURATIONS

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
KarstenI
Kind of a big deal
Kind of a big deal

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:
 

d8a91145ed111f08.png

sungod
Head in the Cloud

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/...

 

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/

 

Get notified when there are additional replies to this discussion.