/meraki-update-clients-name-from-list

Update Meraki clients name from a input list

Primary LanguagePythonApache License 2.0Apache-2.0

Meraki update clients name from list

What is it ?

Python script to update the clients name of devices displayed on the Network-wide > Clients

image

Prerequisites

  • Meraki Dashboard access
  • Meraki API key
  • Meraki network ID

Get started

  1. Clone or download this repo
git clone https://github.com/xaviervalette/meraki-update-clients-name-from-list
  1. Install required packages
python3 -m pip install -r requirements.txt
  1. Add a config.yml file as follow:
└── meraki-update-l7-firewall-rules/
+   ├── config.yml
    ├── requirements.txt
    └── src/
         └── main.py  
  1. In the config.yml file, add the following variables:
#config.yml
---
apiKey: "<yourApiKey>"
networkId: "<yourNetworkId1>"
clients:
  - mac: "<firstClientMac>"
    name: "<firstClientName>"
  - mac: "<secondClientMac>"
    name: "<secondClientName>"
    
#[...]

  - mac: "<lastClientMac>"
    name: "<lastClientName>" 
...

⚠ The script will work even if the MAC is not in the given network clients page

  1. Now you can run the code by using the following command:
python3 src/main.py

Output

The output should be as followed:

Request status code : 201