Checking for file existence at any level

Hey guys,

I was wondering if there is any way to check for a file’s existence using BigFix relevance at any folder level, instead of explicitly mentioning the folders one by one?

for eg: I want to check whether there is any file which contains “application” in it’s name in /opt or in it’s descending folders? (/opt/*)

You can search for previous discussions about the matter.

You can for example use the following relevance to get the descendant folders and than the files BUT it may cause the client to get stuck

https://developer.bigfix.com/relevance/reference/folder.html#descendant-folder-of-folder-folder

Most of the times, we suggest using an external tool or script to make the scanning, meanwhile the client is free to continue the evaluation cycle and execution of other commands - after the tool is done it's search we can read the output through BigFix Client.

From BigFix perspective, the BigFix Inventory product - which Includes a Scanner can provide you an option to search files for example , and much more of that - Features and functions

1 Like

orbiton, thanks for your reply. This is helpful!

yes, I think I’ll need to go ahead with the scan approach. then read the file via relevance. I wanted to avoid this as I didn’t wanted a dependency on scan in the future in cases of scalability.

Thanks for your response.