| Title: FtpServer SITE Commands |
| Notice: Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| . |
| http://www.apache.org/licenses/LICENSE-2.0 |
| . |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| |
| # SITE Commands |
| |
| This document describes all the FTP SITE commands implemented. |
| |
| ## SITE DESCUSER |
| It displays the user details. |
| |
| ### Sample Server Replies |
| |
| 200- |
| DESCUSER : display user information. |
| HELP : display this message. |
| STAT : show statistics. |
| WHO : display all connected users. |
| ZONE : display timezone. |
| 200 End of help. |
| |
| ## SITE HELP |
| |
| It displays all the available SITE commands. |
| |
| ### Server Replies |
| |
| 200- |
| DESCUSER : display user information. |
| HELP : display this message. |
| STAT : show statistics. |
| WHO : display all connected users. |
| ZONE : display timezone. |
| 200 End of help. |
| |
| ## SITE STAT |
| |
| This command displays different server statistics information. Only admin user has the permission to execute this. |
| |
| ### Sample Server Reply |
| |
| 200- |
| Start Time : 2005-09-01T12:10:11 |
| File Upload Number : 0 |
| File Download Number : 0 |
| File Delete Number : 0 |
| File Upload Bytes : 0 |
| File Download Bytes : 0 |
| Directory Create Number : 0 |
| Directory Remove Number : 0 |
| Current Logins : 1 |
| Total Logins : 1 |
| Current Anonymous Logins : 0 |
| Total Anonymous Logins : 0 |
| Current Connections : 1 |
| Total Connections : 1 |
| 200 |
| |
| ## SITE WHO |
| |
| This command displays all currently logged-in user information. It displays the user name, client IP, login time and last access time. Only admin user has the permission to execute this. |
| |
| ### Sample Server Reply |
| |
| 200- |
| admin 127.0.0.1 2005-09-01T12:20:26 2005-09-01T12:20:52 |
| anonymous 127.0.0.1 2005-09-01T12:20:37 2005-09-01T12:20:37 |
| 200 |
| |
| ## SITE ZONE |
| |
| This command displays the timezone information of the FTP server in RFC 822 4-digit time zone format. The format is |
| Sign TwoDigitHours TwoDigitMinutes |
| |
| ### Sample Server Reply |
| |
| 200 +0530 |