Smarts ASL: How can I test that my Smarts ASL script has the correct syntax?
search cancel

Smarts ASL: How can I test that my Smarts ASL script has the correct syntax?

book

Article ID: 304041

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I test that my Smarts ASL script has the correct syntax?



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 (see Note statement):

ASL-E-ERROR_RULE_INIT-While initializing rule set
 ASL-ERROR_FILE_PARSE-While parsing rules in file
    'C:\InCharge7\IP\smarts\rules\discovery\custom\custom-end-post.asl'
 ASL-ERROR_YACC_ERROR-syntax error at line 38, next token is 'blah'



Additional Information

Only the rules within the ASL file will be parsed with this switch.