An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          







meraki-reboot





GitHub Workflow Status




Reboot multiple Cisco Meraki devices

## 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.