I have tried several variations of the below in my action script and cannot get it to work. I am looking for a string of text within a file and if found, exit with RC 1. I continue to either get a relevance substitution error or it seems as if BigFix does not even do anything with the if statement and will just complete. Any suggestions?
parameter “Agent_Installation_File” = “{ names of files whose(name of it starts with “installation” AND name of it ends with “.log”) of folder “/opt/dynatrace/oneagent/log/installer” }”
if {(exists file (parameter “Agent_Installation_File”) of folder “/opt/dynatrace/oneagent/log/installer” whose (exists line whose (it contains “Dynatrace OneAgent failed to connect to Dynatrace Cluster Node”) of it))}
exit 1
endif