Action not working

All, working on setting a parameter. using a file to pulle the last column, tuple 4.

Why doesn’t this work?

Thanks in advance.

parameter “UNCPATH”="{(tuple string item 4 of (concatenation ", " of (substrings separated by “,” of (lines of file “SubLocation.txt” of (client folder of site whose (Name of it = “actionsite”))) whose (it as string starts with (registration subnet address of client as string)))))}"
setting “UNCPATH”={parameter “UNCPATH”} on “{now}” for client

Does the file exist?

Yes….

C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite

Example:

50.10.1.0,Florida,relayname;bigfixserver, 50.10.1.0;10.57.0.16,\share\BFUNC
50.21.0.0,Georgia, relayname;bigfixserver, 50.21.0.0; 10.57.0.16,\share\BFUNC

Basically trying to get last value, create a parameter, then set the registry entry.

Yes….

C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite

Example:

50.10.1.0,Florida,relayname;bigfixserver, 50.10.1.0;10.57.0.16,\share\BFUNC
50.21.0.0,Georgia, relayname;bigfixserver, 50.21.0.0; 10.57.0.16,\share\BFUNC

Basically trying to get last value, create a parameter, then set the registry entry.

What does the client log say?

1 Like

So are you looking for a file “SubLocation.txt” inside the actionsite directory? If this file isn’t actually in the site (propagated from the server) it will be deleted every time the actionsite is gathered.

I actually got it working by using another method. I will repost it once I get back in the lab.

Withdrawing my previous post, now that I’m reading on a desktop I can see your example was two lines, not the four lines that appeared due to my phone wrapping them. I don’t see anything wrong with the original relevance. Would need to see how this works in the debugger on your side.