Adapter requests and responses for the SSH KBI adapter


The following figure shows the adapter request for the SSH KBI adapter. Use the adapter request XML when you create a custom process by using the Call Adapter activity in TrueSight Orchestration Development Studio.

XML sample of the SSH KBI adapter request


<ssh-request>
  <targets>
    <target name="T1">
      <host>sever6-rds33</host>
      <port>22</port>
      <user-name>user</user-name>
      <password>test</password>
      <prompt>#</prompt>
      <allow-unknown-hosts>true</allow-unknown-hosts>
    </target>
  </targets>
  <commands>
    <command >ls</command>
  </commands>
</ssh-request>

The following figure illustrates the SSH KBI adapter response.

XML sample of the SSH KBI adapter response


<ssh-command-output>
  <metadata>
    <status>success</status>
  </metadata>
  <targets-output>
    <target-output host="vm-rhel4asu6-rds33">
      <metadata>
          <os-id>Linux</os-id>
          <os-version>2.6.9-67.ELsmp</os-version>
          <status>success</status>
      </metadata>
     <commands-output>
     <command-output>
      <metadata>
        <command>ls</command>
        <line-count>2</line-count>
        <execution-milliseconds>63</execution-milliseconds>
        <exit-code>0</exit-code>
        <status>success</status>
      </metadata>
     <output>
       <line index="1">\[00m\[00manaconda-ks.cfg\[00m  \[00minstall.log\[00m \[00minstall.log.syslog\[00m</line>
       <line index="2">\[m[root@vm-rhel4asu6-rds33 ~]\#</line>
     </output>
     </command-output>
     </commands-output>
    </target-output>
  </targets-output>
</ssh-command-output>

 

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

TrueSight Orchestration Content 20.19.01