1 Analysis for Unix, windows and Linux OS

(imported topic written by Lalitha91)

I am relatively new to BigFix … we are creating a text file on all platforms in the BES client directory. In order to output the contents of the file, I created an analysis with the following code. I tried it on 2 Aix and 1 windows system. It works fine for the windows but not for AIX, comes back with … Looks like the parent folder works for windows but not unix … can you advise on how to fix the issue?

What steps do I need to take for Linux??

Basically, I want to create 1 analysis for all OS types… is that possible?

if (exists file “Info.txt” of parent folder of regapp “besclient.exe” ) then (lines of file “Info.txt” of parent folder of regapp “besclient.exe”) else (“Info.txt not present”)

Thanks

(imported comment written by jeremylam)

For starters, the “regapp” inspector is Windows-specific.

You might want to break down the analysis by broad computer type first:

if (name of operating system starts with “Win”) then <…> else

if (name of operating system starts with “AIX”) then <…> else

etc.

(imported comment written by Lalitha91)

Thanks for the response. Any ideas, what would be the equivalent of “regapp of besclient.exe” for unix and linux?

(imported comment written by jessewk)

You can use the following relevance to get the path to the client installation folder:

parent folder of client