The Meraki Community
Register or Sign in
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • About cionica1993
cionica1993

cionica1993

Here to help

Member since Jan 19, 2020

‎05-21-2021
Kudos from
User Count
PhilipDAth
Kind of a big deal PhilipDAth
1
View All
Kudos given to
User Count
PhilipDAth
Kind of a big deal PhilipDAth
1
RubenG
RubenG
1
View All

Community Record

7
Posts
1
Kudos
0
Solutions

Badges

CMNA
First 5 Posts
Lift-Off View All
Latest Contributions by cionica1993
  • Topics cionica1993 has Participated In
  • Latest Contributions by cionica1993

Re: Share your nostalgic networking stories. Win swag!

by cionica1993 in Community Announcements
‎05-20-2021 01:40 PM
‎05-20-2021 01:40 PM
I remember in late 2000's when Internet Cafe's first came around my town I had one at the ground floor of my apartament building. I was just a kid and I convinced the owner to let me connect to it's internal network in order to play Counter-Strike with the guys that were going there.    I had to work every weekend in the Internet Cafe and he connected me with an RJ-45 by hanging it from my balcony on the 7th floor  to his window on the ground floor.    Those were the days... ... View more

Re: Python Script for Updating Vlans subnets on 1400+ networks

by cionica1993 in Developers & APIs
‎01-24-2020 06:35 AM
1 Kudo
‎01-24-2020 06:35 AM
1 Kudo
Hello, So I think I've done it. I tested it on 3 networks and it worked. See the code below: import csv from datetime import datetime import os import meraki # Either input your API key below by uncommenting line 10 and changing line 15 to api_key=api_key, # or set an environment variable (preferred) to define your API key. The former is insecure and not recommended. # For example, in Linux/macOS: export MERAKI_DASHBOARD_API_KEY=093b24e85df15a3e66f1fc359f4c48493eaa1b73 api_key = 'xxx' def updateNetworkVlan(self, networkId: str, vlanId: str, **kwargs): csv_file = open('TestScript.csv') csv_reader = csv.reader(csv_file, delimiter=',') # csv_reader stocheaza id retea si subnet print(csv_reader) for NetworkID, Subnet, IP in csv_reader: print(NetworkID, Subnet, IP) collect = {} network_id = NetworkID collect[NetworkID] = network_id vlan_id = '1' collect['vlan_id'] = vlan_id update_network_vlan = UpdateNetworkVlanModel() update_network_vlan.name = 'Agentii' update_network_vlan.subnet = Subnet update_network_vlan.appliance_ip = IP update_network_vlan.dhcp_handling = DhcpHandlingEnum.ENUM_RUN_A_DHCP_SERVER update_network_vlan.dhcp_lease_time = DhcpLeaseTimeEnum.ENUM_1_DAY update_network_vlan.dhcp_boot_options_enabled = False update_network_vlan.dhcp_boot_next_server = 'null' update_network_vlan.dhcp_boot_filename = 'null' update_network_vlan.dns_nameservers = 'google_dns' collect['update_network_vlan'] = update_network_vlan result = vlans_controller.update_network_vlan(collect) One more question tough, after I run it I would like to get a print back that everythong was OK or if I got any errors on any networks. How can I do that? Really appreciate the guidance !! ... View more

Re: Python Script for Updating Vlans subnets on 1400+ networks

by cionica1993 in Developers & APIs
‎01-21-2020 02:28 PM
‎01-21-2020 02:28 PM
Thanks a lot ! I'll post the code when it's done. However, I think I stumbled on another problem. Given the fact that the IP's have been assigned randomly through the template, if I have an IP subnet which is already used and I try to update it on the right location the dashboard will not let me. So right now, I'm stuck in thinking how to solve this first. ... View more

Re: Python Script for Updating Vlans subnets on 1400+ networks

by cionica1993 in Developers & APIs
‎01-20-2020 01:34 PM
‎01-20-2020 01:34 PM
VLAN's on MX, the whole network consists of MX's. I just need to update the default VLAN's subnets, basically the LAN network ( i'm not using multiple vlans) It's really a simple network, just really big. ... View more

Re: Python Script for Updating Vlans subnets on 1400+ networks

by cionica1993 in Developers & APIs
‎01-20-2020 01:32 PM
‎01-20-2020 01:32 PM
My network is full of MX's. I'm just updating the default VLAN 1 subnet, I had to use a configuration template and a bulk network template. In the configuration template a assigned a /15 from which each network will be randomly assigned a /26 ( that's how the template works ). After that I deployed a bulk template with all the locations and applied the configuration template on them. I pulled all the organizations information, it was pulled in a JSON file. I turned that into a .CSV and created one column with the network ID, another with the network and subnet and another with the MX IP. I started today to watch again a python course from Udemy, hopefully this week I'll be able to write the code. I found the Update networks vlan python wrapper from https://github.com/meraki/dashboard-api-python and now I need to write the code for parsing the CSV and assign those variables into the wrapper. ... View more

Python Script for Updating Vlans subnets on 1400+ networks

by cionica1993 in Developers & APIs
‎01-20-2020 02:00 AM
‎01-20-2020 02:00 AM
Hello all,   First of all I'm a newbie in python and I've been trying to use the python wrappers from https://github.com/meraki/dashboard-api-python in order build a script to update 1400+ vlans. I've been failing since I started. Can anyone help me with this ? At least provide some guidance. I would also need to parse a .csv file in order to map the correct subnet to the NetworkID.  ... View more
Labels:
  • Labels:
  • Code Sample

Re: Updating MX VLAN Ports through API

by cionica1993 in Developers & APIs
‎01-19-2020 12:54 PM
‎01-19-2020 12:54 PM
I am trying to do the same thing but only updating VLAN subnet for 1000+ networks. Can you please share your code?I am having a really hard time to create it ... View more
Kudos from
User Count
PhilipDAth
Kind of a big deal PhilipDAth
1
View All
Kudos given to
User Count
PhilipDAth
Kind of a big deal PhilipDAth
1
RubenG
RubenG
1
View All
My Top Kudoed Posts
Subject Kudos Views

Re: Python Script for Updating Vlans subnets on 1400+ networks

Developers & APIs
1 3747
View All
Powered by Khoros
custom.footer.
  • Community Guidelines
  • Cisco Privacy
  • Khoros Privacy
  • Privacy Settings
  • Terms of Use
© 2023 Meraki