Skip to content

wxsd-sales/device-rebooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Device Rebooter

Reboot workspace devices that have been granted access to a Webex bot!

Overview

This application uses Cloud xAPI commands to reboot the devices the bot has access to.

Setup

Prerequisites & Dependencies:

  1. A Webex Bot is required. You can create a Bot here (login with Webex account required).
  • Give it any name, icon, and description.
  • Once created, a new token is generated. Copy it somewhere secure - you will need it in the next steps.
  1. The bot must be added to each workspace you wish to reboot in Control Hub. An admin can login to Control Hub (admin.webex.com), select each desired workspace and then click "Edit API Access".

  2. Clone this repository.

  3. Navigate to the root directory of this repo on your local machine, and create a file called .env
    The .env file must contain the following line:

BOT_TOKEN=""

Place the Bot token you copied in step 1 between the double quotes above.

Installation Steps:

  • python >= v3.8.1
  • pip required
  • With pip installed, run these commands from the command line/terminal:
pip install aiohttp
pip install python-dotenv

Run

Open a command prompt or terminal. If you simply double click the process, the command prompt will close if it reaches any unexpected errors, and you will not see the reason for the failure.

Once you have opened a terminal, navigate to the source directory, then run:
python device-rebooter.py

Demo

*For more demos & PoCs like this, click here.

License

All contents are licensed under the MIT license. Please see license for details.

Disclaimer

Everything included is for demo and Proof of Concept purposes only. Use of the site is solely at your own risk. This site may contain links to third party content, which we do not warrant, endorse, or assume liability for. These demos are for Cisco Webex usecases, but are not Official Cisco Webex Branded demos.

Questions

Please contact the WXSD team at [email protected] for questions. Or, if you're a Cisco internal employee, reach out to us on the Webex App via our bot ([email protected]). In the "Engagement Type" field, choose the "API/SDK Proof of Concept Integration Development" option to make sure you reach our team.

Releases

No releases published

Packages

No packages published

Languages