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

book

Article ID: 4741

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

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.

 

Example:

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

Cause

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

Environment

Any version of APM on a linux OS

Resolution

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"