if (name of operating system contains “Linux”)
then ((names of it, versions of it) of packages of rpm)
else if (name of operating system contains “SunOS”)
then ((pkginst of it, versions of it) of pkginfos of pkgdb)
else if (name of operating system contains “AIX”)
then ((lpp_name of it, version of it) of filesets of products of object repository)
else if (name of operating system contains “HP-UX”)
then bundles of software depot
else NotFound
OR
if name of operating system contains “Linux” AND exist package “splunkforwarder” of rpm AND preceding text of first “.” of (it as string ) of version of package “splunkforwarder” of rpm < "7"
then "LinuxHighVersPackage"
else if name of operating system contains “SunOS” AND exist name whose ( it as lowercase contains “splunk” ) of pkginfos of pkgdb AND ((preceding text of first “.” of (( version of pkginfo “splunkforwarder” of it ) of pkgdb)) as string < “7”)
then "SolarisHigherVersPackage"
else “doNothing”