This script supports single or multiple queries in a single call.

To run this script:

At ASAM_BASEDIR/smarts/bin, enter the following command on one line:

t
            
                sm_adapter -s<
            
                adapter_name>
            
                --file=<query file and pathname>alcatel-sam/soap.asls 

The following examples illustrate single and multiple queries.

Example of a single query

         sm_adapter -s <a
            
                dapter_name>
            
                --file=find.xml alcatel-sam/soap.asl 
      

The following is a sample find.xmlfile for a single query (network element).

In this example, the file limits the attribute list to the following, and skips any child objects:

  • objectFullName

  • displayedName

    <find xmlns="xmlapi_1.0"><fullClassName>netw.NetworkElement</fullClassName><resultFilter><attribute>objectFullName</attribute><attribute>displayedName</attribute><children/></resultFilter></find>

    The output will look something like the following example:

    Example of a multiple queries

    The following is a sample find.xmlfile for multiple queries (network element and equipment card):

    <find xmlns="xmlapi_1.0"><fullClassName>netw.NetworkElement</fullClassName><resultFilter><attribute>objectFullName</attribute><attribute>displayedName</attribute><children/></resultFilter></find><find xmlns="xmlapi_1.0"><fullClassName>equipment.Card</fullClassName><resultFilter><attribute>objectFullName</attribute><attribute>displayedName</attribute><children/></resultFilter></find>