FTP adapter request and response for multiple commands

The following figure shows an XML sample of the adapter request for the FTP adapter with multiple commands.

XML sample of the FTP adapter request with multiple commands


<ftp-request>
<data-transfer-mode>ACTIVE</data-transfer-mode>
<commands>
<pwd/>
<ls>/export/home</ls>
</commands>
</ftp-request>


The following figure shows an XML sample of the adapter response for the FTP adapter with multiple commands.

XML sample of the FTP adapter response with multiple commands


<ftp-command-output>
  <response-metadata>
    <status>success</status>
  </response-metadata>
  <targets-output>
    <target-output host="10.128.248.114">
      <target-metadata>
        <status>success</status>
      </target-metadata>
      <commands-output>
        <command-output>
          <metadata>
            <id>1</id>
            <command>pwd</command>
            <execution-milliseconds>3</execution-milliseconds>
            <status>success</status>
          </metadata>
          <output>
            <pwd>/export/home/ranjana</pwd>
          </output>
        </command-output>
        <command-output>
          <metadata>
            <id>2</id>
            <command>ls</command>
            <execution-milliseconds>32</execution-milliseconds>
            <status>success</status>
          </metadata>
              <output>
            <file>
              <name>Lalit</name>
              <owner>root</owner>
              <group>root</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Apr 13 15:00</modification-time>
              <size-bytes>512</size-bytes>
            </file>
            <file>
              <name>user1</name>
              <owner>root</owner>
              <group>root</group>
              <permission>drwxrwxrwx</permission>
              <modification-time>Apr 20 13:38</modification-time>
              <size-bytes>512</size-bytes>
            </file>
            <file>
              <name>user2</name>
              <owner>user2</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Oct 29 00:00</modification-time>
              <size-bytes>1024</size-bytes>
            </file>
            <file>
              <name>user3</name>
              <owner>user3</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Jan 15 14:10</modification-time>
              <size-bytes>1024</size-bytes>
            </file>
            <file>
            <name>user4</name>
              <owner>user4</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Apr 13 15:00</modification-time>
              <size-bytes>1024</size-bytes>
            </file>
            <file>
              <name>user5</name>
              <owner>user5</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Oct 29 00:00</modification-time>
              <size-bytes>1024</size-bytes>
            </file>
            <file>
              <name>user6</name>
              <owner>user6</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Jan 22 00:00</modification-time>
              <size-bytes>512</size-bytes>
            </file>
              <file>
              <name>user7</name>
              <owner>root</owner>
              <group>root</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Feb 23 11:46</modification-time>
              <size-bytes>512</size-bytes>
            </file>
             <file>
              <name>user8</name>
              <owner>user8</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>May 10 10:58</modification-time>
              <size-bytes>1024</size-bytes>
            </file>
            <file>
              <name>user9</name>
              <owner>user9</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Oct 19 00:00</modification-time>
              <size-bytes>512</size-bytes>
            </file>
            <file>
              <name>user9root</name>
              <owner>root</owner>
              <group>root</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Dec 10 18:10</modification-time>
              <size-bytes>512</size-bytes>
            </file>
            <file>
              <name>user10</name>
              <owner>user10</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Apr 20 13:38</modification-time>
              <size-bytes>1024</size-bytes>
            </file>
            <file>
              <name>user11</name>
              <owner>user11</owner>
              <group>other</group>
              <permission>drwxrwxr--</permission>
              <modification-time>May 12 18:33</modification-time>
              <size-bytes>1024</size-bytes>
            </file>
              <file>
              <name>user12</name>
              <owner>user12</owner>
              <group>other</group>
              <permission>drwxr-xr-x</permission>
              <modification-time>Dec 16 10:31</modification-time>
              <size-bytes>1024</size-bytes>
            </file>
          </output>
        </command-output>
      </commands-output>
    </target-output>
  </targets-output>
</ftp-command-output>
Was this page helpful? Yes No Submitting... Thank you

Comments