Nessus Tenable application version information for macOS Jamf Extension Attribute to collect
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 |