🎉 Initial public release of `LPMonitor_Restart, a macOS Bash-based monitoring and remediation tool for GroundControl Launchpads.
This tool monitors your Imprivata MAM environment for smart hub disconnects, no device count and uses the Workspace ONE UEM API to remotely trigger soft reset commands for associated devices.
✅ Features
- Queries GroundControl API for all Launchpads tied to a specific service account
- Checks for:
- Online/offline status
- Smart Hub (badge reader) presence
- Docked device count
- Triggers soft resets via Workspace ONE using OAuth authentication
- Token caching to reduce API calls
- Cooldown logic to avoid duplicate actions
- Logging and alert sounds for local awareness
- Runs silently every 60 seconds as a LaunchAgent
📂 Included Files
LPMonitor_Restart.sh
: Main monitoring and restart logicUpdate LP List.sh
: Keeps device serial mappings up to datemanage_gc_monitor.sh
: Helper script to control the LaunchAgentcom.imprivata.groundcontrolmonitor.plist
: LaunchAgent config to run every 60 secondsREADME.md
: Setup instructions and usage guideLICENSE
: MIT License
🚀 Recommended Setup
- Customize
BASE_DIR
, API credentials, and target email - Run
Update LP List.sh
initially to populate serial lookup - Install and load the LaunchAgent to begin 60-second monitoring cycles
MIT Licensed. Contributions welcome!