Created
September 30, 2021 07:09
-
-
Save F5Training/ceeabf47516100b539a578d382466f23 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
if [[ -f /usr/bin/tmsh ]]; then | |
version="BIG-IP $(tmsh show sys version | awk '/[^:]Version/ {print $2}')" | |
else | |
version="$(lsb_release -a 2>/dev/null | awk '/Description/ {print $2, $3}') $(uname -i)" | |
fi | |
echo "{\"version\": \"$version\"}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment