REX: Remote Execution Framework for PHP
<< Security and REX Back to Contents Framework Options >>

Example Uses of REX

A remote execution system can be useful in a number of situations, primarily where you wish to commonly execute the same code over a wide number of client systems or have a specific need to execute code on a client without using alternative methods.

Large Number of Clients

In a network situation with a large number of clients it may be required for them all to execute the same code on a regular basis, for example checking if their installed applications are up-to-date or performing cleanup.

Although you could have the code installed on each and every client this can be problematic for maintenance (any changes must be replicated to all the clients).

Of course you could just store your code on a network-accessible location such as a NFS or CIFS share and have the clients run it from there - or you could use a remote execution framework such as REX to specifically pull down and execute code from a central location.

In this manner any changes made to the centrally stored code will be immediately reflected to all clients the next time they run it.

Execute Code on a Remote Client

If you have some code you wish to execute on one (or more) clients then the "normal" method would be to open an interactive session on the client (using SSH or RDP), copy the code up and then execute.

However if a client has the REX framework installed and web-accessible the code can be run on the client with a single HTTP request to the web interface of the REX executor.

Client-Specific Code

Of course because the code is executed on the actual client itself then you can have selection operations based upon the client - you could get the hostname or scan any type of configuration or files (for example to determine if the client was Win32 or Linux and take action accordingly).

<< Security and REX Back to Contents Framework Options >>