![Black Box LES1516A User Manual Download Page 298](http://html1.mh-extra.com/html/black-box/les1516a/les1516a_user-manual_2762893298.webp)
298
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
CHAPTER 16: ADVANCED CONFIGURATION
else
echo "Welcome $USER, you are connected to Port $PORT ($LABEL)"
fi
</etc/config/pmshell-start.sh>
16.3 RAW ACCESS TO SERIAL PORTS
16.3.1 ACCESS TO SERIAL PORTS
You can use tip and stty to completely bypass the portmanager and have raw access to the serial ports.
When you run tip on a portmanager-controlled port, portmanager closes that port, and stops monitoring it until tip releases control
of it.
With stty, the changes made to the port only persist until that port is closed and opened again. Using stty for more than initial
debugging of a serial connection is not recommended.
If you want to use stty to configure a port, you can put stty commands in /etc/config/scripts/portXX.init which gets run whenever
portmanager opens the port Otherwise, any setup you do with stty will be lost when portmanager opens the port.
NOTE: portmanager sets things back to its config rather than using whatever is on the port, so the port is in a known good state,
and will work, no matter what things are done to the serial port outside of portmanager.
16.3.2 ACCESSING THE CONSOLE MODEM PORT
Console dial-in is handled by mgetty, with automatic PPP login extensions. mgetty is a smart getty replacement, designed for
Hayes-compatible data and data/fax modems.
mgetty knows about modem initialization, manual modem answering (so your modem doesn’t answer if the machine isn’t ready),
and UUCP locking (so you can use the same device for dial-in and dial-out). mgetty provides extensive logging facilities. All
standard mgetty options are supported.
Modem initialization strings
To override the standard modem initialization string either use the Management Console (see chapter 4) or the command line
config tool (see chapter 14).
Enabling boot messages on the console
If you are not using a modem on the DB9 console port and instead wish to connect to it directly via a Null Modem cable you may
want to enable verbose mode allowing you to see the standard linux start-up messages. This can be achieved with the following
commands:
# /bin/config --set=config.console.debug=on # /bin/config \
--run=console # reboot
If at some point in the future you chose to connect a modem for dial-in out-of-band access the procedure can be reversed with the
following commands:
# /bin/config --del=config.console.debug
# /bin/config --run=console # reboot