Python script to update the clients name of devices displayed on the Network-wide
> Clients
- Meraki Dashboard access
- Meraki API key
- Meraki network ID
- Clone or download this repo
git clone https://github.com/xaviervalette/meraki-update-clients-name-from-list
- Install required packages
python3 -m pip install -r requirements.txt
- Add a
config.yml
file as follow:
└── meraki-update-l7-firewall-rules/
+ ├── config.yml
├── requirements.txt
└── src/
└── main.py
- 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
- Now you can run the code by using the following command:
python3 src/main.py
The output should be as followed:
Request status code : 201