generic Check Services Status operation


The generic Check Services Status wrapper checks the status of multiple services listed in the following table:

 Services verified by the generic Check Services Status

The following table describes the input parameters for Exchange Services Management.

 Input parameters for Exchange Services Management


The following figure shows a sample request for the Check Services Status wrapper. Provide the <parameter> tag as an input to the wrapper.

XML sample of the adapter request for the generic Check Services Status wrapper

<microsoft-exchange-request>
   <command>
       <command-name>verify-serviceStatus</command-name>
       <parameters>
           <parameter>
               <name>servicename</name>
               <value>MSExchangeMGMT</value>
           </parameter>
           <parameter>
               <name>servicename</name>
               <value>RESvc</value>
           </parameter>
       </parameters>
   </command>
</microsoft-exchange-request>


The following figure illustrates a sample XML response for the Check Services Status wrapper.

XML sample of the adapter response for the generic Check Services Status wrapper

<microsoft-exchange-response>
<metadata>
<status>success</status>
</metadata>
<status>success</status>
</metadata>
<commands-output>
<command-output>
 <metadata>
 <command>sc query MSExchangeMGMT</command>
  <line-count>13</line-count>
  <execution-milliseconds>1937</execution-milliseconds>
  <exit-code>0</exit-code>
  <status>success</status>
  </metadata>
 <output>
  <line index = "1">Attempting to connect to remote host...</line>
  <line index = "2">Initialising rctrlx server component...</line>
  <line index = "3">Executing remote application: cmd /c sc query
MSExchangeMGMT</line>
  <line index = "4">Remote application process ID: 6648</line>
  <line index = "5">SERVICE_NAME: MSExchangeMGMT</line>
  <line index = "6">TYPE               : 10  WIN32_OWN_PROCESS</line>
  <line index = "7">STATE              : 4  RUNNING</line>
  <line index = "8">(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))</line>
  <line index = "9">WIN32_EXIT_CODE    : 0  (0x0)</line>
  <line index = "10">SERVICE_EXIT_CODE  : 0  (0x0)</line>
  <line index = "11">CHECKPOINT         : 0x0</line>
  <line index = "12">WAIT_HINT          : 0x0</line>
  <line index = "13">Remote application exited with code: 0</line>
 </output>
</command-output>
<command-output>
 <metadata>
  <command>sc query RESvc</command>
   <line-count>13</line-count>
   <execution-milliseconds>3094</execution-milliseconds>
   <exit-code>0</exit-code>
   <status>success</status>
  </metadata>
  <output>
   <line index = "1">Attempting to connect to remote host...</line>
   <line index = "2">Initialising rctrlx server component...</line>
   <line index = "3">Executing remote application: cmd /c sc query
RESvc</line>
   <line index = "4">Remote application process ID: 3116</line>
   <line index = "5">SERVICE_NAME: RESvc</line>
   <line index = "6">TYPE               : 20  WIN32_SHARE_PROCESS</line>
   <line index = "7">STATE              : 4  RUNNING</line>
   <line index = "8">(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)</line>
   <line index = "9">WIN32_EXIT_CODE    : 0  (0x0)</line>
   <line index = "10">SERVICE_EXIT_CODE  : 0  (0x0)</line>
   <line index = "11">CHECKPOINT         : 0x0</line>
   <line index = "12">WAIT_HINT          : 0x0</line>
   <line index = "13">Remote application exited with code: 0</line>
  </output>
 </command-output>
</commands-output>
</microsoft-exchange-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 21.02