BetaONE will rise again!


Reply
  #1  
Old 21st Mar 04, 12:26 PM
merlin's Avatar
merlin merlin is offline
BetaONE Supporter
 
Join Date: Mar 2002
Posts: 54
merlin is an unknown quantity at this point
Ok i decided to day to post the Symbolic Message Parameters for making messages within Serv U after recieving pm's from a few boards about the different messages displayed but seems most people can't find them in Serv U help index so i am posting them here in the aid to help those wanting to make messages for welcoming/say goodbye or directory changing.hope they help.

Symbolic Message Parameters

Serv-U FTP Server can display various 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
%Date - 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
%DFree - 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
%FDown - displays the number of files downloaded
%FTot - displays the total number of files transferred
%BUp - displays the number of Kbytes uploaded by the user

%Bdown - 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
%U24h - 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 directives are for the current session only (i.e. they do not show the aggregate over multiple sessions).

The '%ServerDays', '%ServerHours', '%ServerMins', and '%ServerSecs' directives 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 should generally be considered a safe maximum.
__________________
www.merlins-portal.net

Usenet Indexing Done Different

Reply With Quote
  #2  
Old 21st Mar 04, 12:27 PM
Thankbot Thankbot is offline
Senior Member
 
Join Date: Jul 2003
Location: Seph's basement, Chained to his bed
Posts: 2,191
Thankbot
1 User already said Thank You!

Cyberion
Reply With Quote
  #3  
Old 4th Jan 06, 06:36 PM
Alpine's Avatar
Alpine Alpine is offline
Retired Crew
 
Join Date: Feb 2002
Location: Run Forest, RUN!!
Posts: 3,601
Alpine is on a distinguished road
Send a message via ICQ to Alpine Send a message via AIM to Alpine
nice..thx !!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:26 AM.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.