CiscoConfBot is a Webex Teams bot written in Python3.
Source Code
PyPI package
Setup
pip install ciscoconfbot
- Create bot at:
- Setup webhook via Webex Teams API or at:
https://developer.webex.com/docs/api/v1/webhooks/create-a-webhook
See sample creds and configuration files prior to starting bot.
Create 3 directories where the bot will store various configurations and/or device files.
Note that config and creds files need to be structured like the examples show.
Also, see sample .yml file for correct formatting
mkdir /path/to/dir
Running
Run with
python -m ciscoconfbot path/to/config/file.ini
Alternatively, you can setup a system service to start on reboot/reload.
See example service file for a quick idea.
Once configured, you can enable it once with:
systemctl start nameofservice.service
Or you can enable the service to start after the server/device has been reloaded
systemctl enable nameofservice.service
Operation
Once bot has been configured, add the bot to a space and invoke:
@nameofbot
Operations are as follow:
@nameofbot /serial ipaddressofdevice (returns serial number of device)@nameofbot /upload (requires zip folder of device configs in hostname.txt format)@nameofbot /config (requires .yml file of hostnames and serial numbers)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ciscoconfbot-1.0.14.tar.gz
(6.0 kB
view details)
File details
Details for the file ciscoconfbot-1.0.14.tar.gz.
File metadata
- Download URL: ciscoconfbot-1.0.14.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0cadd2b1445f3ab0944c2deb7d9c0c77b50322dcf58d2fefd1d5d472352e914
|
|
| MD5 |
049199096224d14ff811f1f8a8814738
|
|
| BLAKE2b-256 |
d1bc8a2eb53314903903b411662972d668c6d06bfa0380ed84b46370ff3dfe82
|