Nessus Tenable application version information for macOS

Nessus Tenable application version information for macOS Jamf Extension Attribute to collect


#!/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

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *