Topic
  • 2 replies
  • Latest Post - ‏2013-06-21T16:08:44Z by Doyler86
Doyler86
Doyler86
91 Posts

Pinned topic Determining Appliance Location

‏2013-06-21T15:09:16Z |

Hello Datapower World,

I am wondering, is there a particular Soma/Amp call that returns the Device Location Text that is filled out under the device settings panel in the GUI?

Thanks in advance,

 

Doyle

  • HermannSW
    HermannSW
    4657 Posts
    ACCEPTED ANSWER

    Re: Determining Appliance Location

    ‏2013-06-21T15:50:50Z  

    Hi Doyle,

    you can search for "SystemSettings" in "store:///xml-mgmt.xsd", this is the corresponding get-config request:

    $ cat SystemSettings.xml
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Body>
        <dp:request domain="default"
          xmlns:dp="http://www.datapower.com/schemas/management">
          <dp:get-config class="SystemSettings"/>
        </dp:request>
      </env:Body>
    </env:Envelope>
    $
    $
    $ doSoma admin SystemSettings.xml dp1-l3:5550 -s | xpath++ "//SystemSettings" - | tidy -q -xml
    Enter host password for user 'admin':
    <SystemSettings xmlns:env="http://www.w3.org/2003/05/soap-envelope"
    xmlns:dp="http://www.datapower.com/schemas/management"
    name="System-Settings" intrinsic="true">
      <mAdminState>enabled</mAdminState>
      <ProductOID>1.3.6.1.4.1.14685.1.3</ProductOID>
      <Description>DataPower XI52</Description>
      <SerialNumber>6805302</SerialNumber>
      <EntitlementNumber>6805302</EntitlementNumber>
      <ProductID>719942X [Rev 0001]</ProductID>
      <Contact>Hermann Stamm-Wilbrandt</Contact>
      <SystemName>myXI52</SystemName>
      <Location>13-U012</Location>
      <Services>72</Services>
      <BackupMode>secure</BackupMode>
      <ProductMode>normal</ProductMode>
      <AuditReserve>40</AuditReserve>
      <DetectIntrusion>enable</DetectIntrusion>
    </SystemSettings>

    $


    Hermann<myXsltBlog/> <myXsltTweets/> <myCE/>

    Updated on 2013-06-21T16:07:25Z at 2013-06-21T16:07:25Z by HermannSW
  • HermannSW
    HermannSW
    4657 Posts

    Re: Determining Appliance Location

    ‏2013-06-21T15:50:50Z  

    Hi Doyle,

    you can search for "SystemSettings" in "store:///xml-mgmt.xsd", this is the corresponding get-config request:

    $ cat SystemSettings.xml
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Body>
        <dp:request domain="default"
          xmlns:dp="http://www.datapower.com/schemas/management">
          <dp:get-config class="SystemSettings"/>
        </dp:request>
      </env:Body>
    </env:Envelope>
    $
    $
    $ doSoma admin SystemSettings.xml dp1-l3:5550 -s | xpath++ "//SystemSettings" - | tidy -q -xml
    Enter host password for user 'admin':
    <SystemSettings xmlns:env="http://www.w3.org/2003/05/soap-envelope"
    xmlns:dp="http://www.datapower.com/schemas/management"
    name="System-Settings" intrinsic="true">
      <mAdminState>enabled</mAdminState>
      <ProductOID>1.3.6.1.4.1.14685.1.3</ProductOID>
      <Description>DataPower XI52</Description>
      <SerialNumber>6805302</SerialNumber>
      <EntitlementNumber>6805302</EntitlementNumber>
      <ProductID>719942X [Rev 0001]</ProductID>
      <Contact>Hermann Stamm-Wilbrandt</Contact>
      <SystemName>myXI52</SystemName>
      <Location>13-U012</Location>
      <Services>72</Services>
      <BackupMode>secure</BackupMode>
      <ProductMode>normal</ProductMode>
      <AuditReserve>40</AuditReserve>
      <DetectIntrusion>enable</DetectIntrusion>
    </SystemSettings>

    $


    Hermann<myXsltBlog/> <myXsltTweets/> <myCE/>

    Updated on 2013-06-21T16:07:25Z at 2013-06-21T16:07:25Z by HermannSW
  • Doyler86
    Doyler86
    91 Posts

    Re: Determining Appliance Location

    ‏2013-06-21T16:08:44Z  
    • HermannSW
    • ‏2013-06-21T15:50:50Z

    Hi Doyle,

    you can search for "SystemSettings" in "store:///xml-mgmt.xsd", this is the corresponding get-config request:

    $ cat SystemSettings.xml
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Body>
        <dp:request domain="default"
          xmlns:dp="http://www.datapower.com/schemas/management">
          <dp:get-config class="SystemSettings"/>
        </dp:request>
      </env:Body>
    </env:Envelope>
    $
    $
    $ doSoma admin SystemSettings.xml dp1-l3:5550 -s | xpath++ "//SystemSettings" - | tidy -q -xml
    Enter host password for user 'admin':
    <SystemSettings xmlns:env="http://www.w3.org/2003/05/soap-envelope"
    xmlns:dp="http://www.datapower.com/schemas/management"
    name="System-Settings" intrinsic="true">
      <mAdminState>enabled</mAdminState>
      <ProductOID>1.3.6.1.4.1.14685.1.3</ProductOID>
      <Description>DataPower XI52</Description>
      <SerialNumber>6805302</SerialNumber>
      <EntitlementNumber>6805302</EntitlementNumber>
      <ProductID>719942X [Rev 0001]</ProductID>
      <Contact>Hermann Stamm-Wilbrandt</Contact>
      <SystemName>myXI52</SystemName>
      <Location>13-U012</Location>
      <Services>72</Services>
      <BackupMode>secure</BackupMode>
      <ProductMode>normal</ProductMode>
      <AuditReserve>40</AuditReserve>
      <DetectIntrusion>enable</DetectIntrusion>
    </SystemSettings>

    $


    Hermann<myXsltBlog/> <myXsltTweets/> <myCE/>

    That was alot easier than i expected, I haven't used dp:get-config much.

     

    thanks Hermann,

     

    Doyle