started building another python tool due to migration from Prime Infrastructure to Catalyst Center.
We build a possibility to change the color of the APs based on device model. Useful for lifecycle or capacity planning.
Tool is provided as is and no adjustments promised. Use at your own risk!
Tested on Catalyst Center 2.3.7.6.
Please take note, that due to limited api documantation, we were forced to use internal api's. These may could change with next updates of CC.
- git clone to your server
git clone https://github.com/yayaasd/cisco-cc-map-exporter.git cisco-cc-map-export
- edit device_credentials_template.py and save as device_credentials.py
cc = {
"hostname": "catalystcenter.domain.name",
"user": "USER",
"password": "PASS"
}
- install python environment (see requirements.txt)
pip install -r requirements.txt
- adjust the path/user in the script (simply search for these strings):
/PATH/TO/YOUR/FOLDER/
/PATH/TO/YOUR/ssh_host_rsa_key
username@EXTERNAL-SERVER:/PATH/TO/YOUR/vHOST/htdocs/
hostname=''
username='USERNAME'
- add cronjob (keep in mind, the script could take some time)
0 3 * * * python /PATH/TO/YOUR/FOLDER/cc-map-exporter.py >> /var/log/cronjob_cc-map-exporter.log 2>&1