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 FTP response message and HTTP welcome message.

 

Server Variables

%CurrentTime - The current time in local time format

%YYYY - Current year

%MM - Current month, 01-12

%DD - Current day, 01-31

%HH - Current hour, 00-23

%mm - Current minute, 00-59

%ss - Current second, 00-59

%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 the current session

%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

%Protocol - The protocol type of current session (FTP, FTPS, FTPES, SFTP, HTTP, HTTPS).

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

%WebLink - the ID of Weblink or Upload link, like "d197da4875af58340c98fe196b5195f3".

%ClientVersion - The information about FTP client

%UserMaxQuota - The max disk quota for this user

%UserCurrentQuota - The current disk quota for this user

%UserName  - The user real name, which is defined under "User -> Notes -> Name"

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

%UserNote  - The email address, which is defined under "User -> Notes -> Other notes"

%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