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 ...
}