Identifying syntax error in ASL script.
search cancel

Identifying syntax error in ASL script.

book

Article ID: 304041

calendar_today

Updated On: 03-20-2025

Products

VMware Smart Assurance

Issue/Introduction

User write ASL scripts to perform functions and extract based on their use case like enrich data from the events, sometime script would fail to execute.

Environment

Smarts - 10.1.x

Resolution

The Smarts sm_adapter --verify [filename.asl] will generate errors if any of the rules within the customized Smarts ASL file have faulty syntax.

The errors generated will be similar to the following:

ASL-E-ERROR_RULE_INIT-While initializing rule set
ASL-ERROR_FILE_PARSE-While parsing rules in file
   '<IP_BASE>/smarts/rules/discovery/custom/custom-end-post.asl'
ASL-ERROR_YACC_ERROR-syntax error at line 38, next token is 'xxxx'

NOTE:

  • Support team do not create or customize ASL scripts.
  • Only the rules within the ASL file will be parsed and tested. 

Additional Information