Clearing the InMaint list
search cancel

Clearing the InMaint list

book

Article ID: 331603

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

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

Environment

Smarts - 10.1.x/24.3.x

Resolution

  1. Create an ASL file with an appropriate name such as clearMaint.asl.
  2. Place the following ASL script in the ASL file that is created in Step 1 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 <SAM_BASE>/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

Additional Information