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:
-
Create an ASL file with an appropriate name such as clearMaint.asl.
-
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);
}
-
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