Skip to main content

CiscoConfBot

CiscoConfBot is a Webex Teams bot written in Python3.

Source Code

https://github.com/naonder/CiscoConfBot

PyPI package

https://pypi.org/project/ciscoconfbot/

Setup

pip install ciscoconfbot

Create bot at:

https://developer.webex.com/my-apps/new/bot

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)

Author

naonder - nate.a.onder@gmail.com

Metadata

Release files for ciscoconfbot 1.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ciscoconfbot 1.0.14
File Size Uploaded Provenance Actions
ciscoconfbot-1.0.14.tar.gz 6.0 kB Without provenance Details for ciscoconfbot-1.0.14.tar.gz

Release files / ciscoconfbot-1.0.14.tar.gz

Download URL ciscoconfbot-1.0.14.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b0cadd2b1445f3ab0944c2deb7d9c0c77b50322dcf58d2fefd1d5d472352e914
BLAKE2b-256 checksum
How to use checksums
d1bc8a2eb53314903903b411662972d668c6d06bfa0380ed84b46370ff3dfe82
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for ciscoconfbot 1.0.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.14 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page