A Flask application to automatically create and resolve incidents in ServiceNow following an alert in SD-WAN, and using a Webex Teams bot to update the admin.
$ git clone (link)
Initialize a virtual environment
virtualenv venv
Activate the virtual env
Windows venv\Scripts\activate
Linux source venv/bin/activate
$ pip install -r requirements.txt
Webhook Reciver
Cisco SD-WAN
ServiceNow
SERVICENOW_USERNAME = " "
SERVICENOW_PASSWORD = " "
SERVICENOW_INSTANCE = " "
Webex Teams Message:
WEBEX_NOTIFICATION= " "
Create a Webex Bot from here.
Add your Bot Token to your websever variables or env_var.py for running locally.
WEBEX_ACCESS_TOKEN= " "
Create a Webex Team Space and add the bot to the Space.
Add the Webex Space Name to your webserver variables or env_var.py for running locally.
WEBEX_SPACE_NAME= " "
The appliaction will send adaptive card messages based on the alarms. You can use the card designer here to change the format of the adaptive card.
Once you create your card you can edit the servicenow.json file to be modified according to the new format.
$ python app.py
When you start the application ServiceNow Tickets and Webex Teams notifications will be created from Webhook notifications from Vmanage.
Please note: The alarms that have been tested for the project are as follows:
Provided under Cisco Sample Code License, for details see LICENSE
Our code of conduct is available here
See our contributing guidelines here
Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use.
You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.
Owner
Contributors
Categories
CollaborationNetworkingProducts
Catalyst SD-WANWebexProgramming Languages
PythonLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community