This project is a stripped version of the original project for showcasing in compliance with the ServiceNow NDA.
____ ____ _____ _ _
/ ___|| _ \| ____| | |__ ___ __ _ _ __ __| |
\___ \| |_) | _| | '_ \ / _ \ / _` | '__/ _` |
___) | _ <| |___ _| |_) | (_) | (_| | | | (_| |
|____/|_| \_\_____| (_)_.__/ \___/ \__,_|_| \__,_|
sreboard: An automation for monitoring applications setup at ServiceNow SRE team
- Decrypts VPN tokens for the respective hosts and authenticates to any of the active domains. Retries and reconnects or auto-switches between the most active domains if the current one becomes unresponsive.
- Operating system level management for the applications that it controls.
- Opens specified browsers in kiosk modes and manages application window locations by host screen resolutions.
- Command-line argument inputs to specify the optional functions.
- Clone the repository into the monitor Mac of your choice.
- To run it with the host default configuration run the app.py script as below:
python sreboard.pyNote: Your Mac may not be in the default configuration Mac list. See available options
- The project structure has the following files:
sreboard.py
factors.py
data.py
cord_attr.jsonThe automation leaverages the use of OSA Scripting, Mac OSX's internal system scripting to perform the actions like coordinating and window resizing.
The following files decribe the project's core structure:
- app.py contains the main function to the project and can be compared to the VIEW component.
- factors.py contains the control structure of the project and is compared to the CONTROLLER component.
- data.py contains all the related variables in the module which is obviously the MODEL component.
- app.conf file is updated everytime the script is triggered, it stores a volatile variable.
- cord_attr.json stores variables of the opened window sizes and coordinates in JSON format for the ease of setup.
- optional arguments:
-h, --help Shows this help message and exit -d, --default Activates default host application configurations -s, --switch Switchs to alternate monitor configurations -q, --quit Quits ALL running Chrome AND/OR Adium processes only
Email for issues/enhancements to:
Salman: salmansre21@gmail.com
salman.rahman@servicenow.com
Ciprian: ciprian.iftode@servicenow.com