FTP adapter request and response for a stat command


The FTP adapter request with stat command is not available in Solaris 8 environments.

The following table describes the elements of an FTP adapter request with a stat command.

 Elements of an FTP adapter request with a stat command

The following figure shows an XML template of the adapter request for the FTP adapter with stat command.

XML template of the FTP adapter request with stat command


<ftp-request>
  <targets>
    <target name=""/>
  </targets>
  <data-transfer-mode></data-transfer-mode>
  <commands>
    <stat></stat>
  </commands>
</ftp-request>

The following figure shows an XML sample of the adapter request for the FTP adapter with stat command.

XML sample of the FTP adapter request with stat command


<ftp-request>
  <targets>
    <target name="host1"/>
    <character-set>Shift_JIS</character-set>
  </targets>
  <data-transfer-mode>PASSIVE</data-transfer-mode>
  <commands>
     <stat>SampleFile1</stat>
  </commands>
</ftp-request>

The stat command request for a FTP adapter returns an adapter response containing the status details for the specified file.

The following table describes the elements of an FTP adapter response to a request with stat command.

 Elements of an FTP adapter response to a request with stat command

The following figure illustrates an XML sample of the adapter response of the FTP adapter with stat command.

XML sample of the FTP adapter response with stat command


<ftp-command-output>
  <request-metadata>
     <status>success</status>
     <error>Present only with status of 'error'</error>
   </request-metadata>
    <targets-output>
    <target-output host="server1">
    <target-metadata>
       <status>success</status>
       <error>Present only with status of 'error'</error>
    </target-metadata>
    <commands-output>
    <command-output>
      <metadata>
        <id>1</id>
        <command>stat</command>
        <execution-milliseconds>value</execution-milliseconds>
        <status>success</status>
        <error>Present only with status of 'error'</error>
      </metadata>
     <output>
        <stat>213-status of SampleFile1:&#xD;
-rw-r--r--   1 user1  tester     195 Jan  1  2005 SampleFile1&#xD;  213 End of Status</stat>
     </output>
    </command-output>
    </commands-output>
  </target-output>
  </targets-output>
</ftp-command-output>

 

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