Create sentinel files to trigger edsentinel.cmd (.bat).


Check for Updates of your file sync and replication software from www.enduradata.com

edsentinelseed



NAME

edsentinelseed - Create sentinel files and add file patterns to edsentinel.cfg

SYNOPSIS

edsentinelseed [ -r ] -d dirname [-p filepattern] [-n numberoffiles]

DESCRIPTION

edsentinelseed Creates sentinel files with certain patterns to use as triggers. If edsentinel.bat (Windows) or edsentinel.cmd (UNIX/LINUX) is present, then it is executed. edsentinel.cmd[.bat] can be used to send alerts of file changes that affect the sentinel files. edsentinel.cmd or edsentinel.bat is created by the administrator. One example usage is to shutdown edpcloud or pause it. Other examples include alerting the administrator or to do some processing on the files. The edsentinelseed command is passed two parameters. Sentinel files are used to tell EDpCloud that something modified files that should not be modified or replicated, for example it can trigger an alert that ransomware was active on a server.

Parameter 1:

RT OR NRT if RT is passed that means the file change was intercepted via the real time module. If NRT is passed, that means the file was received via the non real time module such as a schedule or on demand invocation of replication.

The sentinel command must take care of setting correct paths of where to find any applications or scripts called.

Parameter 2:

filename : This is the name of the file that was queued for replication.

OPTIONS

-d dirname

Create sentinel files under directory dirname

-r

Create sentinel files under directory dirname and all its subdirectories

-p pattern

Sentinel files will start with pattern in their name. If using edsentinel for ransomware alerts, please run edsentinelseed with a pattern ".aaaaaaaaSomething" and "aaaaaaaaaSomthing".

-n numfiles

Create numfiles sentinels under dirname and under subdirectories if -r is used.

RETURN VALUE

The status is 0 on success.

FILES

edsentinel.cfg : A configuration that contains regular expressions that will ORed to match sentinel files. edsentinel.bat : A command that will be executed on Windows if a sentinel file was modified. edsentinel.cmd : A command that will be executed on LINUX/UNIX like OSs if a sentinel file was modified.

ENVIRONMENT

ED_BASE_DIR: This is the name of the top directory where the content distribution software is installed. This directory will also contain various configuration, journals and log files.

ED_SENTINEL_CMD: This environment variable can be used to override the edsentinel.cmd [.bat]. The system will use the command specified instead of the edsentinel.cmd for UNIX and Linux or edsentinel.bat for Windows.

ED_DO_RT_SENTINEL: Watch for sentinel files modified in real time. ED_DO_NRT_SENTINEL: Watch for sentinel files modified in non real time. ED_SENTINEL_CMD: This overrides the default sentinel command to execute when a sentinel is modified.

SUPPORT

For more information contact <support@enduradata.com>

www.enduradata.com

AUTHOR

A. A. El Haddi, Senior IEEE member, elhaddi@ieee.org