294
1. 8 7 7. 8 7 7. 2 26 9 BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7.2269
CHAPTER 16: ADVANCED CONFIGURATION
TABLE 16-3. HELPER SCRIPT
PER PORT CONTROL COMMAND CONFIG PARAMETERS NOTES
config.ports.portX.ctrlcode.break Generates a BREAK.
config.ports.portX.ctrlcode.portlog View history
config.ports.portX.ctrlcode.power open power menu
config.ports.portX.ctrlcode.chooser connect to port menu
config.ports.portX.ctrlcode.quit exit pmshell
config.ports.portX.ctrlcode.help show help message
As an example, to configure Ctrl+p to open the power menu when using serial port 3, enter the following in the console server's
command shell:
config -s config.ports.port3.ctrlcode.power=16
killall -HUP portmanager
The first command sets the power menu command to listen for Ctrl+p. Decimal 16 is the character code sent when you press Ctrl+p
in the serial port session (see the control codes table immediately below).
The second command —killall -HUP portmanager — tells portmanager to reload the configuration so that the new control code will
take effect. Rebooting the device would also work.
There is a script to set serial control codes on a range of ports so that bulk port configuration can be performed more easily. For
example to set the power menu control code to CTRL-P (keycode 16) on ports 4 to 10 inclusive, enter the following at the command
line:
/etc/scripts/set-serial-control-codes 4 10 power 16
This sets the power menu control key to Ctrl+p.
NOTE: If you've not configured anything on a particular serial port in the included range, configuration for that port will be skipped.
TABLE 16-4. POWER MENU CONTROL KEYS
CONTROL CODE DECIMAL CONTROL CODE DECIMAL CONTROL CODE DECIMAL
ctrl+a 1 ctrl+j 10 ctrl+s 19
ctrl+b 2 ctrl+k 11 ctrl+t 20
ctrl+c 3 ctrl+l 12 ctrl+u 21
ctrl+d 4 ctrl+m 13 ctrl+v 22
ctrl+e 5 ctrl+n 14 ctrl+w 23
ctrl+f 6 ctrl+o 15 ctrl+x 24
ctrl+g 7 ctrl+p 16 ctrl+y 25
ctrl+h 8 ctrl+q 17 ctrl+z 26
ctrl+i 9 ctrl+r 18 — —