Skip to content

Instantly share code, notes, and snippets.

@F5Training
Created September 30, 2021 07:09
Show Gist options
  • Save F5Training/ceeabf47516100b539a578d382466f23 to your computer and use it in GitHub Desktop.
Save F5Training/ceeabf47516100b539a578d382466f23 to your computer and use it in GitHub Desktop.
#!/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