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

Document ID : KB000004741
Last Modified Date : 14/02/2018
Show Technical Document Details

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 (.*)

Any version of APM on a linux OS

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


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"