Skip to content

About

Reboot Meraki devices because they're terrible

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation



meraki-reboot


GitHub Workflow Status

Reboot multiple Cisco Meraki devices

Usage

Download the latest release

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:

wget <release url>
tar xvfz <release file> meraki-reboot

Run the binary

$ ./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
$ ./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
$ ./meraki-reboot reboot --help
Reboot one device

Options:

  -h, --help     display help information
  -s, --serial   Device serial number
$ ./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
$ ./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 to manage releases. After completing code changes and committing them via Git, be sure to tag the release before pushing:

git tag <release>

Once a new tag is pushed, GoReleaser will automagically create a new build & release.

About

Reboot Meraki devices because they're terrible

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages