Relevance to fetch patch data from Solaris endpoint

Hi,

I am trying to get version data of a specific package on Solaris endpoint. I tried the below relevance but its not working.

exists patch whose (name of it as lowercase contains "package_name") of pkginfos of pkgdb.

Can somebody please let me know where I am going wrong.

Thanks in advance :slight_smile:

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”

Thankyou :slight_smile: That worked :slight_smile: