Smarts SAM: How can I clear the InMaint list for a SAM domain?
search cancel

Smarts SAM: How can I clear the InMaint list for a SAM domain?

book

Article ID: 331603

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

This article explains how to clear the InMaint list for a Smarts SAM domain.



To clear the Inmaint list for a Smarts SAM domain, do the following:
  1. Create an ASL file with an appropriate name such as clearMaint.asl.
  2. Place the following ASL script in the ASL file you created and save the file:
IMPORTANT! The following code will clear ALL the devices in maint.
 
START {
..eol
}
 
do {
 
MaintObj = object("ICS_InMaint","ICS-InMaint");
 
print(MaintObj->InMaintTable);
MaintObj->InMaintTable = list();
print(MaintObj->InMaintTable);
}
  1. From the /smarts/bin directory, use the sm_adapter to run the script/execute the file against the SAM domain:
./sm_adapter -s <SAM domain> clearMaint.asl