How do you extract a list of devices from the Smarts IP pending list?
To extract a list of devices from the Smarts IP pending list, do the following:
- Copy the following into a new ASL file:
manager = object(getInstances("ICF_TopologyManager")[0]);
pending = manager->PendingManagedBy;
START()
{
.. eol
}
do
{
print(" Pending List ");
foreach x (pending->getPending())
{
print(" ".x);
}
}
- Save the file as getPending.asl.
Verify the ASL script as follows:
./sm_adapter --verify getPending.asl
Run the ASL script as follows:
./sm_adapter -s <server> getPending.asl