The following is an example of an ASL script that can be used to populate the value of the SM_SerialNumber attribute in the Router class. The VMware Smart Assurance ASL Reference Guide provides additional information.
START{ ..eol } do { /* Retrieve existing value */ objHandle=object("Router","router-1.mynet.com"); print("Current serial: ".objHandle->SM_SerialNumber); /* Assign a new value */ objHandle->SM_SerialNumber="123456abc"; print("New serial: ".objHandle->SM_SerialNumber); stop(); }