tftp-hpa-execute 0.48

tftp-hpa-execute is a customized version of tftp-hpa that adds the ability to execute system commands.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Matt Watson
HOMEPAGE:
www.mattgwatson.ca
CATEGORY:
ROOT \ Utilities
tftp-hpa-execute is a customized version of tftp-hpa that adds the ability to execute system commands when files are requested matching certain patterns.

Developer comments

I use this to dynamically generate configuration files for VoIP phones when the phones request the file. tftp-hpa's regex pattern matching system is used to determine if a match occurs or not and executes the command you have specified for that pattern.

For example, a rule can be created to whenever a file beginning with the string 00085D (OUI-Prefix for the Aastra VoIP phone's MAC address).

Usage:

First you'll need to run the tftpd daemon specifying a location for your rules file, this is done with the -m argument to the tftpd daemon. You will also need to create the rules file, there is a sample file located in the source tarball in tftpd/sample.rules

in your rules file simply create a line similiar to:

x ^00085D /usr/local/bin/mkaastracfg

This rule will execute the command /usr/local/bin/mkaastracfg and pass the full filename being requested to the program as the first argument.

Last updated on August 22nd, 2008

#execute commands #generate configuration files #regex pattern matching #tftp-hpa #commands #executor #regex

Add your review!

SUBMIT