Skip to content

Instantly share code, notes, and snippets.

@mbierman
Last active September 15, 2022 18:01
Show Gist options
  • Save mbierman/a84c8ad4b2b4617ccc8d16f66df10197 to your computer and use it in GitHub Desktop.
Save mbierman/a84c8ad4b2b4617ccc8d16f66df10197 to your computer and use it in GitHub Desktop.
Info for your Firewalla box
#!/bin/bash
# Michael Bierman
# v1.0
# https://gist.github.com/mbierman/a84c8ad4b2b4617ccc8d16f66df10197
version=$(cat ~/firewalla/net2/config.json | jq '.version')
version=${version:=Not Found}
OS=$(lsb_release -r | cut -f2)
build=$(grep -a "FIREWALLA.UPGRADECHECK.CHECK" /log/firewalla/firelog.log | tail -1 | cut -f12 -d" " | cut -c 1-8)
build=${build:=Not Found}
echo "$version ($build) Ubuntu $OS"
@mbierman
Copy link
Author

You can install this on your Firewalla or just run it from SSH like this:

curl -H 'Cache-Control: no-cache, no-store'  -s -L -C- https://gist.githubusercontent.com/mbierman/a84c8ad4b2b4617ccc8d16f66df10197/raw/6c75c302f3effd1fe6776b653e0a9949009ce4d7/fwinfo.sh | cat <(cat <(bash -x))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment