-
-
Save patent-ed/c99726b8159e29207af58361b3057be7 to your computer and use it in GitHub Desktop.
Jamf Extension Attribute to collect Nessus Tenable application version information for macOS
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 | |
# This will get tenable version info | |
tenableversioninfo=$(/Library/NessusAgent/run/sbin/nessuscli -v | awk '{print $4}' | awk 'NR==1') | |
if [[ $tenableversioninfo == "" ]]; then | |
echo "<result>UNKNOWN tenable version info</result>" | |
else | |
echo "<result>$tenableversioninfo</result>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment