Hi Stuart,
Did you create separate files for config_file.json
and ap-names.csv
? This need to be in the same directory as main-rename-ap.py
.
This is an example of the config_file.json
file:
{
"api": {
"org_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"token": "ApUYc...hsO",
"mist_url": "https://<api-endpoint>.mist.com/api/v1/"
},
"site": {
"name": "<site-name>"
}
}
You would insert your unique variables (org_id
, token
, and site name
) to connect to Mist.
This is an example of the contents of the CSV file:
name,mac
<ap-name1>,aabbcc001122
<ap-name2>,aabbcc001123
<ap-name3>,aabbcc001124
This should change the AP's name from the MAC to a name, in this case <ap-name*
>.
Hope this helps.
Original Message:
Sent: 02-24-2024 16:52
From: STUART JONES
Subject: Bulk names APs using python script
Hi all,
I'm a novice with Python and when trying to bulk rename APs with the guide:Renaming Access Points Use Case , I get the error:
main-rename-ap.py: error: the following arguments are required: config_file, aps_names
Has anyone succesfully tried this? If so, can you share any pointers please?
------------------------------
STUART JONES
------------------------------