Smarts: How to pass a parameter to an ASL script
search cancel

Smarts: How to pass a parameter to an ASL script

book

Article ID: 304114

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

How to pass a parameter to a Smarts ASL script



The following shows the code to pass a parameter to a Smarts ASL script. The ASL script is being used to extract topology information from Smarts and import it into XML format. The parameter to be passed is the name of the object to be extracted.

default obj=""

START {
   ..eol
} do {
     if (obj == "" ) {
        print( "Usage: sm_adapter -s <server> -Dobj=<object> thisasl.asl")
        stop();
     }
     // The rest here ...
}