3 Replies Latest reply on Aug 19, 2020 1:03 PM by Bill Robinson

    GEt servername from DBKEY

    ACHRAF TRABELSI
      Share This:

      Hi,

      i'm working on web services Soap & Rest Services, in part of report automation,i run the command to have the server's status,but it return the result's in DBkey  of the server.

      i found the solution to get server name ,in the community , that work with script,in my case i want to get the server name using web services exclusively.

      here the body of my SOAP command:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
      xmlns:xsd="http://bladelogic.com/webservices/framework/xsd" 
      xmlns:clit="http://bladelogic.com/webservices/skeleton/clitunnel"> 
      <soapenv:Header> 
      <xsd:sessionId>$Session.token</xsd:sessionId> 
      </soapenv:Header> <soapenv:Body> 
      <clit:executeCommandByParamList> 
      <clit:nameSpace>JobRun</clit:nameSpace> 
      <clit:commandName>getServersStatusByJobRun</clit:commandName> 
      <clit:commandArguments>$job_run_id</clit:commandArguments>
      </clit:executeCommandByParamList> 
      </soapenv:Body> 
      </soapenv:Envelope>
      

      and here the result after filtering:

      {DBKey:SDeviceKeyImpl:xxxx=0,

      DBKey:SDeviceKeyImpl:xxxx=2

      , DBKey:SDeviceKeyImpl:xxxx=2, DBKey:SDeviceKeyImpl:xxxx=0, DBKey:SDeviceKeyImpl:xxxx=2}

      0 is sucess server , 2 is failed server

      any idea?

      thank you!