Operational Defect Database

BugZero updated this defect 33 days ago.

VMware | 355897

Smarts: Receive 'syntax error' in ASL hookscript

Last update date:

4/16/2024

Affected products:

Smart Assurance - SMARTS

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Symptoms

The following error is seen in the server log file ([servername].log): ASL-ERROR_YACC_ERROR-syntax error at line 4, next token is 'FreeMemory' Syntax error seen in ASL hookscript log: ASL-ERROR_YACC_ERROR-syntax error at line 4, next token is 'FreeMemory'

Cause

This syntax error is seen when parentheses are used to access the objects property as in the following example: remoteFree = remoteObj->(FreeMemory); // this will produce syntax error.

Resolution

To resolve this issue, do not use parentheses when referencing a property. The proper syntax for doing this in ASL is as follows: objRef->property = value; The following example shows how to reference the FreeMemory object correctly: remoteFree = remoteObj->FreeMemory; // this is correct

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Unavailable

Learn More

Search:

...