Skip to content

Instantly share code, notes, and snippets.

@patent-ed
Created July 7, 2023 12:33
Show Gist options
  • Save patent-ed/c99726b8159e29207af58361b3057be7 to your computer and use it in GitHub Desktop.
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
#!/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