StarTech.com ECS0016 Server User Manual


 
Instruction Manual
108
Change which configuration file it uses:
-c/etc/cong/portmanager.conf
Signals
Sending a SIGHUP signal to the portmanager will cause it to re-read it’s
configuration file.
External Scripts and Alerts
The portmanager has the ability to execute external scripts on certain
events. These events are:
When a port is opened by the portmanager: 1.
When the portmanager opens a port, it attempts to execute /etc/config/
scripts/portXX.init (where XX is the number of the port, e.g. 08). The
script is run with STDIN and STDOUT both connected to the serial
port.
If the script cannot be executed, then portmanager will execute /etc/
config/scripts/portXX.chat via the chat command on the serial port.
When an alert occurs on a port, the portmanager will attempt to 2.
execute /etc/config/scripts/portXX.alert (where XX is the port number,
e.g. 08)
The script is run with STDIN containing the data which triggered the
alert, and STDOUT redirected to /dev/null, NOT to the serial port. If you
wish to communicate with the port, use pmshell or pmchat from within
the script.
If the script cannot be executed, then the alert will be mailed to the
address configured in the system administration section.
When a user connects to any port:If a file called /etc/config/pmshell- 3.
start.sh exists it is run when a user connects to a port. It is provided
2 arguments, the “Port number” and the “Username”. Here is a simple