If you use FTP Serv-U to install FTPSERVER, you can use the Serv-U Symbol Information parameters to display important information to the CLIENT.
For example:
Mon Dec 10 22:32:46 2001 220-==============================
Mon Dec 10 22:32:46 2001 220-server status:
Mon Dec 10 22:32:46 2001-current time: 22: 35: 40. In the past 24 hours, 220 people visited the server.
Mon Dec 10 22:32:46 2001 220-the server has been running for 0 days, 11 hours, 37 minutes, 55 seconds
Mon Dec 10 22:32:46 2001 220-free disk space: 1098.11 Mb
Mon Dec 10 22:32:46 2001 220-total login users: 1121 total
Mon Dec 10 22:32:46 2001 220-current number of users: 10/40
Mon Dec 10 22:32:46 2001 220-total download data volume: 8713447 Kb
Mon Dec 10 22:32:46 2001 220-total uploaded data volume: 291923 Kb
Mon Dec 10 22:32:46 2001 220-Total number of downloaded files: 2391
Mon Dec 10 22:32:46 2001 220-Total number of uploaded files: 15
Mon Dec 10 22:32:46 2001 220-average traffic: 215.105 Kb/sec
Mon Dec 10 22:32:46 2001 220 current traffic: 68.511 Kb/sec
The following information can be displayed:
Sign-on/sign-off messages check in/out information
User specific login messages User-specified logon information
Directory change messages Directory change information
You can add symbol parameters to the specified information text. These parameters are extended to the content in the current status when sent to the customer.
These symbolic parameters start with "%". The following is a complete list.
Time/date: Time part
% Time-displays the current time on the your PC server end current Time
E-displays the current date on the current date of the your PC Server
Statistics: status statistics
% ServerDays-displays the number of days the server has been running server has run time (days)
% ServerHours-displays the number of hours the server has been running server run time (hours)
% ServerMins-displays the number of minutes the server has been up server Run Time (minutes)
% ServerSecs-displays the number of seconds the server has been up server Run Time (s)
% ServerKbUp-displays the no. Kbytes uploaded to the server since server start the number of bytes received by the server since this start
% ServerKbDown-displays the no. Kb downloaded from the server since server start the number of bytes sent by the server since this start
% ServerFilesUp-displays the no. of files uploaded to the server since server start the number of files received by the server since the startup
% ServerFilesDown-displays the no. of files downloaded from the server since server start the number of files sent by the server since the startup
% LoggedInAll-displays total no. of logged in users since server start
% ServerAvg-displays the average server throughput since server start average server throughput since this start
% ServerKBps-displays current server bandwidth use current server bandwidth usage
Server settings: Server settings
% MaxUsers-displays the maximum no. of users, as set in "Setup-Server" Max number of users
% MaxAnonymous-the maximum no. of anonymous users, as set in "Setup-Server" maximum number of anonymous login users
User info: User settings
% Name-displays the user's login name displays the user's login Name
% IP-displays the user's IP number or name if available displays the logon user's IP address
% Dir-displays the user's current directory displays the current directory of the user
% Disk-displays the user's current disk drive displays the user's current Disk
Specified ee-displays the amount of free space on the user's current disk in Kb shows available space
% FUp-displays the number of files uploaded by the current user
Required wn-displays the number of files downloaded current user downloads
% FTot-displays the total number of files transferred: displays the total number of files transferred by the current user.
% BUp-displays the number of Kbytes uploaded by the user shows the total number of bytes uploaded by the current user
Give wn-displays the number of Kbytes downloaded by the user the total number of bytes downloaded by the current user
% BTot-displays the total number of Kbytes transferred shows the total number of bytes transmitted by the current user
% TconM-displays the total connect time in minutes display connection time (minutes)
% TconS-displays the connect time in seconds-to be used with "% tconm" display connection time (seconds)
% RatioUp-displays the "upload" ratio part for UL/DL ratios shows the "upload percentage" in the current user's upload/download ratio"
% RatioDown-displays the "download" ratio part for UL/DL ratios shows the "download percentage" in the current user's upload/download ratio"
% RatioCredit-displays the current download credit for UL/DL ratios (Kb or "files") display the number of bytes that can be downloaded by the current user
The following table lists the quotas.
% QuotaUsed-displays how much disk quota is used in Kb show quota used
% QuotaLeft-displays how much disk quota is left in Kb show remaining quota
% QuotaMax-displays the maximum amount of disk space that can be used in Kb Number of users: maximum Number of available bytes of the disk
% UNow-displays the current number of Serv-U users connected current number of people connected to the server
% UAll-displays the number of users since the server was started the number of users who have connected to this server since this start
% U24 H-displays the number of users in the last 24 hours users who have connected to this server since 24 hours
% UAnonAll-all currently logged in anonymous users Number of anonymous users currently connected to the server
% UAnonThisIP-all anonymous users logged into this IP home
% UNonAnonAll-all non-anonymous users currently logged in
% UNonAnonThisIP-all non-anonymous users logged into this IP home
% UThisName-all current users with the current user name logged into this IP home
The following is an example:
Welcome to access our server at e % time. You are the % unow user, the largest
The number of users is % maxusers. In the past 24 hours, a total of % u24 hours of friends visited this site.
Note: Each line on the CLIENT side only displays 80 characters, and the return code occupies 4 characters. Therefore, we recommend that you define a maximum of 70 characters in each line.
Suggestion: if you are a user-created FTP user, we recommend that you use the following symbols:
% Disk-user's current Disk drive
Effecee-remaining user space (KB)
% QuotaMax-maximum available disk space (KB)
So that the uploaded users can know the available space.
Of course, you can set the limit:
Menu --> setup ---> users... ----> Quota: Enable disk quota: Maximum: XXXMB
This can be used
% QuotaUsed-used multi-small quota (KB)
% QuotaLeft-more small quota available (kb)
% QuotaMax-set quota
We recommend that you add these macros to the login information and Directory change information, which makes it much easier to use FTP.
**************************************** **************************************** *****
Serv-u ftp Server can display varous types of messages:
? Sign-on/sign-off messages
? User specific login messages
? Directory change messages
There are several symbolic parameters that can be entered in the message text. These parameters are expanded while being sent to a client. They all begin with '%'. Here is the complete list:
Time/date
% Time-displays the current time on your PC
E-displays the current date on your PC
Server statistics
% ServerDays-displays the number of days the server has been running
% ServerHours-displays the number of hours the server has been running
% ServerMins-displays the number of minutes the server has been up
% ServerSecs-displays the number of seconds the server has been up
% ServerKbUp-displays the no. Kbytes uploaded to the server since server start
% ServerKbDown-displays the no. Kb downloaded from the server since server start
% ServerFilesUp-displays the no. of files uploaded to the server since server start
% ServerFilesDown-displays the no. of files downloaded from the server since server start
% LoggedInAll-displays total no. of logged in users since server start
% ServerAvg-displays the average server throughput since server start
% ServerKBps-displays current server bandwidth use
Server settings
% MaxUsers-displays the maximum no. of users, as set in 'settings-Domain'
% MaxAnonymous-the maximum no. of anonymous users, as set in 'settings-Domain'
User info
% Name-displays the user's login name
% IP-displays the user's IP number or name if available
% Dir-displays the user's current directory
% Disk-displays the user's current disk drive
Specified ee-displays the amount of free space on the user's current disk in Mb
% FUp-displays the number of files uploaded by the current user
Required wn-displays the number of files downloaded
% FTot-displays the total number of files transferred
% BUp-displays the number of Kbytes uploaded by the user
Give wn-displays the number of Kbytes downloaded by the user
% BTot-displays the total number of Kbytes transferred
% TconM-displays the total connect time in minutes
% TconS-displays the connect time in seconds-to be used with '% tconm'
% RatioUp-displays the 'upload' ratio part for UL/DL ratios
% RatioDown-displays the 'Download' ratio part for UL/DL ratios
% RatioCredit-displays the current download credit for UL/DL ratios (Kb or 'files ')
% QuotaUsed-displays how much disk quota is used in Kb
% QuotaLeft-displays how much disk quota is left in Kb
% QuotaMax-displays the maximum amount of disk space that can be used in Kb
Number of users
% UNow-displays the current number of Serv-U users connected
% UAll-displays the number of users since the server was started
% U24 H-displays the number of users in the last 24 hours
% UAnonAll-all currently logged in anonymous users
% UAnonThisIP-all anonymous users logged into this IP home
% UNonAnonAll-all non-anonymous users currently logged in
% UNonAnonThisIP-all non-anonymous users logged into this IP home
% UThisName-all current users with the current user name logged into this IP home
The file upload and download message ctictives are for the current session only (I. e. they do not show the aggregate over multiple sessions ).
The '% ServerDays', '% ServerHours', '% servermins', and' % ServerSecs 'ctictives are meant for use together. the number of hours is what's left after the number of days is subtracted, and the same goes for the number of minutes and seconds.
Example Message
Welcome to ftp.cat-soft.com, home of Serv-U!
Local time is % time, and % u24h users have visited over the last 24 hours. this server has been up for % ServerDays days, % ServerHours hours, % ServerMins min. and % ServerSecs sec.
Server stats:
Users logged in: % loggedInAll total
Current users: % Unow
Kb downloaded: % ServerKbDown Kb
Kb uploaded: % ServerKbUp Kb
Files downloaded: % ServerFilesDown
Files uploaded: % ServerFilesUp
Average througput: % ServerAvg Kb/sec
Current througput: % ServerKBps Kb/sec
Please keep in mind that the average client has only 80 characters per line, and the first four are taken up by the reply code. please be brief, 70 characters shoshould generally be considered a safe maximum.
Serv-U Help-Copyright? 1995-2001 Cat-Soft, All Rights Reserved
========================================================== ========================================================== ============================
Template
★★★★★★★★★★★★★★★★★★★★★★★★★
Hello, % IP.
The local Time is too e % Time.
The server has been working continuously: % ServerDays % ServerHours hour % ServerMins minute % ServerSecs second
% UAll users have been connected to this site since its activation.
In the past 24 hours, there have been a total of % u24 H connections.
The maximum number of anonymous users is % MaxAnonymous. Each ip Address can only start two processes.
Currently, % UNow users are online.
Among them, % of anonymous users are online.
★★★★★★★★★★★★★★★★★★★★★★★★★
Total uploads/downloads since activation on this site | % ServerKbUpKB/% ServerKbDownKB
Total uploads/downloads since activation on this site | % ServerFilesUp/% ServerFilesDown
Current server traffic | % ServerKBps Kb/sec
Average server traffic | % ServerAvg Kb/sec
★★★★★★★★★★★★★★★★★★★★★★★★★
Your current space capacity is | % QuotaMax/KB
You have used a total of | % QuotaUsed/KB
Your current space remaining | % QuotaLeft/KB
★★★★★★★★★★★★★★★★★★★★★★★★★
Welcome friends from % IP to access the sub-FTP server!
It's Beijing Time: % Time, then e
% UAll users have been connected to this site since its activation
Server running time % ServerHours hour 0% ServerMins minute
The server % Disk has the remaining space of the volume ee MBytes.
In the past 24 hours, there have been a total of % u24 H connections.
You are the % UAll guest since this operation.
Current number of connected hosts % UNow
This traffic statistics → download: % ServerKbDownK upload: % ServerKbUpK.
Currently, % UAnonAll connections are anonymous, and % MaxAnonymous connections are allowed in total.