Events and Messages: Proactive

Have ProVide react to events before they happen! With this extension you can specify before-scripts that limits access based on date/time, downloaded files or even information stored in external databases as well as altering the target any operation is about to process. Together with Reactive you have a full-fledged Integration Server. Your imagination is the limit!

Of course these events can be overridden on a per user/group level with system wide defaults.

To read and learn more about Events and Messages click here https://www.provideserver.com/wiki/index.php?title=Events_and_Messages

Also check out our user user guide for more info https://www.provideserver.com/wp-content/uploads/2018/08/provide-user-guide-a5-print-double-sided.pdf

Some “Before” events below have been extended with alter capability where the return code specifies how to proceed:

0: Proceed as normal

1: Prevent action, notifying user with custom return information

2: Proceed with action, but perform the action on the item returned by the script.

The following events are included:
  • BeforeConnect -Before a user connect
  • OnConnect -When a user connects
  • OnQuit -When a user sends QUIT
  • OnDisconnect -When a user disconnects
  • BeforeLoggedln -Before a user is authenticated
  • OnLoggedIn -When a user successfully logs in
  • BeforeChangeDirectory -Before a user change directory
  • OnChangeDirectory -When a user change directory
  • BeforeCreateDirectory – before a directory is created (extended)
  • OnCreateDirectory -When a directory is created
  • BeforeRemoveDirectory -Before a directory is removed (extended)
  • OnRemoveDirectory -When a directory is removed
  • BeforeListDirectory -Before a file listing
  • OnListDirectoryStart -When a file listing starts
  • OnListDirectoryEnd -When a file listing ends
  • BeforeDownload -Before a download starts
  • OnDownloadStart -When a file download starts
  • OnDownloadEnd -When a file download ends
  • BeforeUpload -Before a upload start (extended)
  • OnUploadStart -When a file upload starts
  • OnUploadEnd -When a file upload ends
  • BeforeRemoveFile -Before a file is removed (extended)
  • BeforeRename -Before a file or folder is renamed
  • OnRemoveFile -When a file is removed
  • OnRename -When a file or directory is renamed
  • BeforeCopy -Before a file or folder is copied
  • OnCopy -When a file or folder is copied
The following tokens are included: 
  • Date / Time:
    • %YYYY% -Current year
    • %MM% -Current month, 2 numbers (01-12)
    • %M% -Current month (1-12)
    • %DD% -Current day, 2 numbers (01-31)
    • %D% -Current day (1-31)
    • %hh% -Current hour, 2 numbers (00-23)
    • %h% -Current hour (0-23)
    • %mm% -Current minute, 2 numbers (00-59)
    • %m% -Current minute (0-59)
    • %ss% -Current second, 2 numbers (00-59)
    • %s% -Current second (0-59)

    Statistics:

    • %TOTAL_DOWNLOADED% -Total amount of data downloaded from the server
    • %TOTAL_UPLOADED% -Total amount of data uploaded to the server
    • %TOP_n_DOWNLOADERS% -Shows a list of the n top downloaders (n i explicitly defined, eg. %TOP_15_DOWNLOADERS% returns 15 largest downloaders)
    • %TOP_n_UPLOADERS% -Shows a list of the n top uploaders (n i explicitly defined, eg. %TOP_7_UPLOADERS% returns 7 largest uploaders)
    • %TOP_DOWNLOADER_n_USERNAME% -Shows the username of the n:th top downloader (n i explicitly defined, eg. %TOP_DOWNLOADER_8_USERNAME% returns the 8:th top downloader)
    • %TOP_DOWNLOADER_n_DOWNLOADED% -Shows the amount of data downloaded by the n:th top downloader (n i explicitly defined, eg. %TOP_DOWNLOADER_8_DOWNLOADED%)
    • %TOP_UPLOADER_n_USERNAME% -Shows the username of the n:th top uploader (n i explicitly defined, eg. %TOP_UPLOADER_14_USERNAME% returns the 14:th top uploader)
    • %TOP_UPLOADER_n_UPLOADED% -Shows the amount of data uploaded by the n:th top uploader (n i explicitly defined, eg. %TOP_UPLOADER_14_UPLOADED%)

    Server:

    • %CONNECTIONS% -Shows the current number of connections to the server
    • %USERS_LOGGED_ON% -Shows the current number of users logged on to the server
    • %SW_NAME% -Current server program name
    • %SW_VERSION% -Current server program version
    • %SW_BUILD% -Current server program build

    User:

    • %IP% -IP of the current user
    • %CONNECTION_TYPE% -What protocol incoming connections use, e.g. FTP
    • %USERNAME% -Username of the current connected user
    • %Groups% -Single-quoted, space separated list of groups for current user
    • %FTP_Directory% -FTP directory of current user
    • %LOCAL_DIRECTORIES% -Single-quoted, space separated list of local directories of current FTP directory
    • %FTP_FILENAME% -Last file accessed by user (FTP path)
    • %LOCAL_FILENAME% -Last file accessed by user (local path)
    • %TRANSFERRED% -Bytes transferred by user during last command
    • %FILESIZE% -Size of last file accessed by user
    • %AD_HOMEDIR% -Homedirectory from Active Directory for current user
    • %AD_COMMENT% -Comment from Active Directory for current user
    • %AD_SCRIPT% -Logon script from Active Directory for current user 
    • %EXPIRE_TYPE% -Expiration type for current user (”, ‘etDate’, ‘etDownloads’, ‘etUploads’, ‘etLogins’, ‘etDays’, ‘etWeeks’, ‘etMonths’)
    • %EXPIRE_VALUE% -Expiration value for current user (”, <ISO date>, <value>)

    Scripting:

    • %EVENTNAME% -Name of the triggered event
    • %EXECUTE(cmd)% -Executes an external command and returns the result

 

 

To access the Events and Messages settings you need to login on the web based Admin interface with an account that has Admin privileges then in the top menu you click on Events and Messages.

Want more support?

Buy coupon tickets

“ProVide has provided Hartz a rock solid, robust and cost effective FTP solution for the last 2 years. I would be glad to serve as a reference for your product.”

– Jim Tooker, The Hartz Mountain Corporation