Hi All.
I’m trying to write task to setup config-scheduler to BigFix Inventory scans, and I have problem with one action:
Action:
appendfile {concatenation "%0d%0a" of (if (it contains "__BigFix_Inventory_Scan=") then ((preceding text of first "__BigFix_Inventory_Scan=" of it) & "__BigFix_Inventory_Scan=(parameter "Scan")" ) else it) of (lines of file (parameter "BFI_CONF"))}
When I use this action in task / action script, agent report error:
Command succeeded parameter “BFI_CONF” = “/var/opt/BESClient/__SME_HOME/bfiscan.tag” (action:1271816)
Command succeeded parameter “Scan” = “Disabled” (action:1271816)
Command failed (Relevance substitution failed) appendfile {concatenation “%0d%0a” of (if (it contains “__BigFix_Inventory_Scan=”) then ((preceding text of first “__BigFix_Inventory_Scan=” of it) & “__BigFix_Inventory_Scan=(parameter “Scan”)” ) else it) of (lines of file (parameter “BFI_CONF”))} (action:1271816)
but when I use it in QNA it work correct.
Q: concatenation “%0d%0a” of (if (it contains “__BigFix_Inventory_Scan=”) then ((preceding text of first “__BigFix_Inventory_Scan=” of it) & “__BigFix_Inventory_Scan=yyy” ) else it) of (lines of file “/var/opt/BESClient/__SME_HOME/bfiscan.tag” as string)
A: __BigFix_Inventory_Day_of_Scan=%0d%0a__BigFix_Inventory_Time_of_Scan=%0d%0a__BigFix_Inventory_End_Day_of_Scan=%0d%0a__BigFix_Inventory_End_Time_of_Scan=%0d%0a__BigFix_Inventory_Excluded_Days=%0d%0a__BigFix_Inventory_Scan=yyy
T: 9521
can someone help me with this problem ?