ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Getting "-bash: syntax error near unexpected token `('" when I run a CLWWorkstation command.


Article ID: 4741


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE


When attempting to run a CLW (Command Line Workstation) command I get the following error:

"-bash: syntax error near unexpected token `('" on a linux OS.



java -Xmx128M -Duser=admin -Dhost=localhost -Dport=5001 -jar CLWorkstation.jar list alerts matching (.*) in management modules matching (.*)


The issue is that the ( and ) signs of the (.*) regex and you need to use the escape character in front of them. 


Any version of APM on a linux OS


The correct syntax is \(.*\).  So replace (.*) with \(.*\) and run the command again

Additional Information

For more information on CLW commands check APM Guide.  (APM Version for the guide is controls at the top right "Versions" droplist.)

"APM Command-Line Workstation"