I lost my notes from the last century in a flood in 2009 and I am getting old and cannot remember the specific details of how to do what I want to do. I am trying to setup one server with a keyboard and monitor to be the console for three other headless servers connected via RS-232c serial cables. I have managed to get it working where after booting the server with the monitor, I press Ctrl-Alt-F4, login, then run a script that uses cu to connect to one headless1 over a specific port (COM1). Then I press Ctrl-Alt-F5, login and run another script to connect to headless2 on COM2. Then Ctrl-Alt-F6, login and run script to connect with headless3 on COM3. This all relies on me being sufficiently disciplined to repeat this process after a reboot of the main server.
I would like to set this up so that three virtual terminals accessed by pressing F10, F11, F12, go straight to the serial attached server with getty selecting the correct COM port and setting the speed, parity and stop bits so that it works every time automatically after a reboot. Ideally, I could then use tmux with each headless connection.
I vaguely remember doing this on other systems many years ago using /etc/inittab and getty running ttyv9 on ttyS0 but I am not sure how to do this on FreeBSD. I am certain I have to use a cua device for outbound access to the headless terminals as I am already using cua in my scripts with cu. I reckon this probably has to be done in /etc/ttys perhaps with std.115200 and ttyv9, ttyva, ttyvb, but it would be nice to have a known working config to start from. Can anyone help?
I would like to set this up so that three virtual terminals accessed by pressing F10, F11, F12, go straight to the serial attached server with getty selecting the correct COM port and setting the speed, parity and stop bits so that it works every time automatically after a reboot. Ideally, I could then use tmux with each headless connection.
I vaguely remember doing this on other systems many years ago using /etc/inittab and getty running ttyv9 on ttyS0 but I am not sure how to do this on FreeBSD. I am certain I have to use a cua device for outbound access to the headless terminals as I am already using cua in my scripts with cu. I reckon this probably has to be done in /etc/ttys perhaps with std.115200 and ttyv9, ttyva, ttyvb, but it would be nice to have a known working config to start from. Can anyone help?