Getting a list of devices on the Discovery Pending list via CommandLine & ASL script
search cancel

Getting a list of devices on the Discovery Pending list via CommandLine & ASL script

book

Article ID: 303772

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

This article explains ways to print the list of devices in discovery Pending list in Smarts via the command line and ASL script

 

Environment

All Supported Smarts Releases

Resolution

CLI Method:

1. You can run the following command from BASEDIR/smarts/bin:

     ./dmctl -s <AM_domain> geti AD_PendingData |tee

This command will output to the screen the list of devices on the Discovery Pending list.

2. Running the following command will create a file called pending.txt in BASEDIR/smarts/bin which will contain a list of all devices on the pending list.

     ./dmctl -s <AM_domain> geti AD_PendingData > pending.txt

3. To get a more detailed list of devices on the Pending List, you could run the following command:

     ./dmctl -s <AM_domain> invoke AD_Pending::AD-Pending getPending |tee

ASL script Method:

  1. Copy the following into a new ASL file (Example: getPending.asl):

    manager = object(getInstances("ICF_TopologyManager")[0]);
    pending = manager->PendingManagedBy;  
    
    START()
    {
    .. eol
    }
    do
    { 
    
      print(" Pending List "); 
      foreach  x (pending->getPending()) 
      { 
          print(" ".x); 
      }
    }
  2. Save the file Example: getPending.asl.
  3. Verify the ASL script as follows:
         ./sm_adapter --verify getPending.asl
  4. Run the ASL script as follows:
         ./sm_adapter -s <server> getPending.asl