Navigation:  Advanced Features >

Server Variables

Previous pageReturn to chapter overviewNext page

The server variables can be used in Administration Console, Event Manager, Task Scheduler, and even for the customized FTP response message.

 

Server Variables

%CurrentTime - The current time according to the the server, in the system's local time format

%ServerYear - Current year

%ServerMonth - Current month, 1-12

%ServerDay - Current day, 1-31

%ServerHour - Current hour, 0-23

%YYYY - Current year

%MM - Current month, 01-12

%DD - Current day, 01-31

%HH - Current hour, 00-23

%ServOnlineSessions - The total online sessions under this server

%ServMaxOnlineSessions - The highest concurrent sessions record

%ServLast24HSessions - The total number of sessions that connected in the past 24 hours

%ServAverageSessionLife - The average staying time under this server

%ServMaxSessionLife - The longest staying time for a session under this server

%ServTotalSessions -The total number of sessions that have connected since being placed online.

%ServRealtimeDownloadSpeedKBS - The current download transfer rate in KB/s

%ServAverageDownloadSpeedKBS - The average download rate in KB/s

%ServDownloadBytes -  The total amount of data downloaded since being placed online

%ServDownloadFiles - The total number of files downloaded since being placed online

%ServRealtimeUploadSpeedKBS - The current upload transfer rate in KB/s

%ServAverageUploadSpeedKBS - The average upload rate in KB/s

%ServUploadBytes - The total amount of data uploaded since being placed online

%ServUploadFiles - The total number of files uploaded since being placed online

 

 

Domain Variables

%DomOnlineSessions - The total online sessions under this domain

%DomMaxOnlineSessions - The highest concurrent sessions record

%DomLast24HSessions - The total number of sessions that connected in the past 24 hours

%DomAverageSessionLife - The average staying time under this domain

%DomMaxSessionLife - The longest staying time for a session under this domain

%DomTotalSessions - The total number of sessions that connected since being placed online

%DomRealtimeDownloadSpeedKBS - The current download transfer rate in KB/s

%DomAverageDownloadSpeedKBS - The average download rate in KB/s

%DomDownloadBytes -  The total amount of data downloaded since being placed online

%DomDownloadFiles - The total number of files downloaded since being placed online

%DomRealtimeUploadSpeedKBS -  The current upload transfer rate in KB/s

%DomAverageUploadSpeedKBS - The average upload rate in KB/s

%DomUploadBytes - The total amount of data uploaded since being placed online

%DomUploadFiles - The total number of files uploaded since being placed online

 

 

Session Variables - Applies to the current session

 

%Domain - The domain name

%IP - The client IP address

%Name - The user name of current session

%UserEmail  - The email address, which is defined under "User -> Notes -> Email address"

%Dir - The current directory, like "/download"

%LastDir - The last created or removed directory (physical path), like "c:/upload/tempfolder"

%PathName - The last accessed file's path, like "c:/download/test.zip"

%FileName - The last accessed file's name, like "test.zip"

%FileSize - The last accessed file's size

%OldFilePath - The old file path before renaming

%NewFilePath - The new file path after renaming

%SessionID - The session ID

%Password - The password string sent by the client, this variable can used in the event "BeforeUserLoggedIn" only.

%ClientVersion - The FTP client name

%UserMaxQuota - The max disk quota for the user %Name

%UserCurrentQuota - The current disk quota for the user %Name

%ConRealtimeDownloadSpeedKBS - The current download transfer rate in KB/s

%ConAverageDownloadSpeedKBS - The average download rate in KB/s

%ConDownloadFiles -  The total number of files downloaded for this session

%ConRealtimeUploadSpeedKBS - The current upload transfer rate in KB/s

%ConAverageUploadSpeedKBS - The average upload rate in KB/s

%ConUploadFiles - The total number of files uploaded for this session

%ConTransferBytes - The total amount of data transferred last time by this session(include download and upload)

%ConTransferSpeedKBS - The average transfer rate transferred last time by this session in KB/s