DataPower

 View Only
Expand all | Collapse all

Appliance Management Protocol - Compare Configuration operation

  • 1.  Appliance Management Protocol - Compare Configuration operation

    Posted Sun May 01, 2022 12:04 AM

    Hi,

    We have multiple DataPower appliances and I am planning to write a script to compare configurations between appliances. After researching, I found Appliance Management Protocol SOAP interface has CompareConfig operation which I believe can be used for this purpose.

    I was able to import the AMP WSDL in SOAP UI and was able to look at the fields in the operation, but couldn't find much information about the fields and how to use this operation. Any pointers on this would be appreciated.

    <ns:Config domain="?">cid:85184014474</ns:Config>

    <!--Optional:-->

    <ns:Policy>

    <!--Zero or more repetitions:-->

    <ns:AcceptedConfig>?</ns:AcceptedConfig>

    <!--Zero or more repetitions:-->

    <ns:FilteredConfig>?</ns:FilteredConfig>

    <!--Zero or more repetitions:-->

    <ns:ModifiedConfig>

    <ns:Match>?</ns:Match>

    <ns:Type>?</ns:Type>

    <!--Optional:-->

    <ns:Property>?</ns:Property>

    <!--Optional:-->

    <ns:Value>?</ns:Value>

    </ns:ModifiedConfig>

    </ns:Policy>



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: Appliance Management Protocol - Compare Configuration operation

    Posted Mon May 02, 2022 08:32 AM

    Hi,

    you can use get-diff operation. Check out the following links if they can provide any assistance:

    https://www.ibm.com/mysupport/s/question/0D50z00006AB1FYCA1/getdiff-soma-equivalent-of-review-changes-in-datapower?language=en_US

    https://www.ibm.com/mysupport/s/question/0D50z00006AAzOPCA1/datapower-soma-script-for-get-diff?language=en_US

    --HP



    #DataPower
    #Support
    #SupportMigration


  • 3.  RE: Appliance Management Protocol - Compare Configuration operation

    Posted Wed May 11, 2022 05:11 PM

    Hi, thanks for sharing the links.

    The links helped to some extent, but I couldn't achieve what I was looking for.


    Basically I am looking to compare the domain configurations between two appliances. So, as the link mentioned I used the get-diff operation in the following way.


    I passed one appliance (dp1000-mgm.1dc.com) base64 encoded domain export in the <from> element tag and in the <to> element tag I just selected "all-classes", this is the appliance(dp1007-mgm.1dc.com) with which I am trying to compare against and where I am invoking the SOMA call (https://dp1007-mgm.1dc.com:5550/service/mgmt/3.0).


    What I am observing is, the appliance is not comparing the configurations. It is just returning all object classes of the appliance(dp1007-mgm.1dc.com) where I am invoking this call.


    Below is the sample request that I am using.


    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:man="http://www.datapower.com/schemas/management">;

      <soapenv:Header/>

      <soapenv:Body>

       <man:request domain="OUT-CAT">

         <man:get-diff>

          <man:from>

           <man:export>UEsDBAoAAAAAANOBplQAAAAAAAAAAAAAAAAHABwAZHAtYXV4L1VUCQADroF1Yq6Bd</man:export>

     </man:from>

          <man:to>

            <man:object class="all-classes" persisted="true"/>

          </man:to>

         </man:get-diff>

       </man:request>

      </soapenv:Body>

    </soapenv:Envelope>



    #DataPower
    #Support
    #SupportMigration