How File based discovery can be used to populate software record running on Linux host.


Description

Steps to be followed on how file based discovery to work successfully and create software record.



There's a table named "discovery_private_properties" that contains the script used for FBD. It's split into two parts: file_discovery.probe_prefix.unix and file_discovery.probe_suffix.unix. When the probe executes it concatenates prefix + config options + suffix to get the script to execute. We need to add sudo to this code:


FINDCMD="find $paths $excludeSyntax -type f 2>/dev/null"
if [ "$skipHiddenFolders" = true ]
then
FINDCMD="find $paths -type d -name '.?*' -prune -o $excludeSyntax -type f -print 2>/dev/null"
fi

in the prefix, i.e. make it as below


FINDCMD="sudo find $paths $excludeSyntax -type f 2>/dev/null"
if [ "$skipHiddenFolders" = true ]
then
FINDCMD="sudo find $paths -type d -name '.?*' -prune -o $excludeSyntax -type f -print 2>/dev/null"
fi


Release or Environment

ALL