Last active
September 15, 2022 18:01
-
-
Save mbierman/a84c8ad4b2b4617ccc8d16f66df10197 to your computer and use it in GitHub Desktop.
Info for your Firewalla box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can install this on your Firewalla or just run it from SSH like this: