tftp-hpa-execute

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

tftp-hpa-execute Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Matt Watson
  • Publisher web site:
  • http://www.mattgwatson.ca/software-download/tftp-hpa-execute/

tftp-hpa-execute Tags


tftp-hpa-execute Description

tftp-hpa-execute is a customized version of tftp-hpa that adds the ability to execute system commands. 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 commentsI 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.rulesin your rules file simply create a line similiar to: x ^00085D /usr/local/bin/mkaastracfgThis rule will execute the command /usr/local/bin/mkaastracfg and pass the full filename being requested to the program as the first argument.


tftp-hpa-execute Related Software