Relevance issue in action script

(imported topic written by SystemAdmin)

I am working with my action script below, but it is failing. In QnA, it is stating that I need ‘{ }’ around my relevance, but as you see, I have that. Not sure where this is failing.

Ideas?

Action script

delete __appendfile

appendfile @ECHO OFF

appendfile “{pathname of folder “BESScanner-NMAP\NMAP” of parent folder of regapp “BESClient.exe”}\nmap.exe” -sS -sU -r {(names of it) of members of bes computer groups whose (name of it = “ESM Test Group”)} -oX “D:\Temp\DMZ_portaudit”}\DMZ_portscan.xml" --webxml

move __appendfile nmapquiet.bat

waithidden nmapquiet.bat

(imported comment written by NoahSalzman)

That may be a limitation (bug) in the Client Debugger. Put it in a custom action and check the syntax coloring… then run it on a test system.

(imported comment written by SystemAdmin)

Yeah, it is failing out at that line. :confused:

Completed delete __appendfile

Completed appendfile @ECHO OFF

Failed appendfile “{pathname of folder “BESScanner-NMAP\NMAP” of parent folder of regapp “BESClient.exe”}\nmap.exe” -sS -sU -r {(names of it) of members of bes computer groups whose (name of it = “ESM Test Group”)as string} -oX “D:\Temp\DMZ_portaudit”}\DMZ_portscan.xml" --webxml

move __appendfile nmapquiet.bat

waithidden nmapquiet.bat

(imported comment written by JasonHonda)

I believe the issue here is that ‘bes computer group’ is a session inspector, not a client inspector so you can’t use it within client relevance and actions.

(imported comment written by SystemAdmin)

Good call Jason, I wonder if that is it.

I want to reference a TEM computer group in that section of the actions cript… that way if I add more devices to the group, I dont need to upgrade the fixlet. Thoughts on what I can use instead?