https://github.com/stellaraf/meraki-reboot
Reboot Meraki devices because they're terrible
https://github.com/stellaraf/meraki-reboot
Last synced: 2 months ago
JSON representation
Reboot Meraki devices because they're terrible
- Host: GitHub
- URL: https://github.com/stellaraf/meraki-reboot
- Owner: stellaraf
- License: bsd-3-clause-clear
- Created: 2021-07-15T22:26:04.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-17T15:04:38.000Z (almost 5 years ago)
- Last Synced: 2025-12-12T22:43:11.478Z (7 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Usage
### Download the latest [release](https://github.com/stellaraf/meraki-reboot/releases/latest)
There are multiple builds of the release, for different CPU architectures/platforms:
There are multiple builds of the release, for different CPU architectures/platforms. Download and unpack the release for your platform:
```shell
wget
tar xvfz meraki-reboot
```
### Run the binary
```console
$ ./meraki-reboot --help
meraki-reboot 0.2.2
Reboot shit tons of Meraki devices because Meraki is terrible
Options:
-h, --help display help information
Commands:
help Display Help Information
devices List all matched devices
reboot Reboot one device
reboot-all Reboot all devices
slack Send a test Slack message
```
```console
$ ./meraki-reboot devices --help
List all matched devices
Options:
-h, --help display help information
-o, --org Meraki Organization Name
-n, --network Meraki Network Name
-e, --exclusions Comma-separated list of tags to exclude from the results
```
```console
$ ./meraki-reboot reboot --help
Reboot one device
Options:
-h, --help display help information
-s, --serial Device serial number
```
```console
$ ./meraki-reboot reboot-all --help
Reboot all devices
Options:
-h, --help display help information
-o, --org Meraki Organization Name
-n, --network Meraki Network Name
-e, --exclusions Comma-separated list of tags to exclude from the results
-w, --wait[=1] Seconds to wait between reboots
```
```console
$ ./meraki-reboot slack --help
Send a test Slack message
Options:
-h, --help display help information
-m, --message Message
-s, --success Success status
```
### Environment Variables
All of the below environment variables are required for meraki-reboot to run.
| Name | Default | Description |
| :------------------------ | :--------------------------- | :---------------------------------------------------------------------------------------------- |
| `MERAKI_API_KEY` | | Meraki Dashboard API Key |
| `MERAKI_REBOOT_LOG_FILE` | `/var/log/meraki-reboot.log` | Path to a log file to which logs will be written. |
| `MERAKI_REBOOT_SLACK_URL` | | Slack incoming webhook URL. Success or failure messages will be posted to slack after each run. |
## Creating a New Release
This project uses [GoReleaser](https://goreleaser.com/) to manage releases. After completing code changes and committing them via Git, be sure to tag the release before pushing:
```
git tag
```
Once a new tag is pushed, GoReleaser will automagically create a new build & release.