How to change from tty03 to tty00 serial port in AIX 5.x?

Hi,
We use AIX 5.x, and we have an application that use the info from a server through a serial port tty00.
Some days ago, we bought a new two port serial board, and the server assign this new ports as tty02 and tty03, and leaves tty00 and tty01 as unavailable.

We cant modify the program and redirect to other tty.

How could I change the new serial ports and assign the tty02 to tty00 ?

It is possible to see the old configuration from the tty00 ?

Thanks in advance

Welcome trevian3969,

Does the software write to tty00 or to /dev/console? You can redirect the system console through the smit menus to tty02, but sadly I don't have a server available to walk you through it. That might be a lower risk than other options.

Did your previous configuration have a similar dual serial-port board that has been replaced?

If so, you might get away with deleting all the tty devices with rmdev -dl tty00 etc. and then running cfgmgr -S to rediscover them, however you would need to be connected over the network.

Perhaps you could try deleting tty00 & tty03 and running cfgmgr first to see if that moves the one you are not plugged in to.

Important
Before you start, make sure you have a working and tested disaster recovery plan with up to date backups, just in case you server fails to boot.

I hope that this helps,
Robin

1 Like

I am not sure what you mean by "unavailable": every device in AIX is basically in one of two states (if present at all): do a lsdev -C and you should see a list of devices some of which are in state "Defined" and some are in "Available".

"Defined" menas the definition is there but the device is not usable. "Available" means the device is working. "working" in this case means not only it is (electrically) connected but also that the correct drivers are installed and running. If in doubt, post the output of the commands:

lscfg -vp
lsdev -C

I hope this helps.

bakunin

1 Like

Yes, I was wrong about the state. 2 were available and 2 were Defined.
What I did is delete all ttys, and then add one by one.

Because Im new in AIX, I used SMIT utility. :slight_smile:

Now I have this partially resolved, I have one last question.

The connection is as follows:

GPS sends info from a serial port to a serial port from Server with AIX.

We connect a laptop using hyperterminal to the serial port from the GPS and confirm that the GPS sends information.
It is possible to see if the serial port from the server are receiving the same info from the GPS ?
Thanks again

If you run PuTTY (a terminal emulator free download) from the console and connect it to /dev/tty?? (without the application running which grabs that port) you should be able to see traffic arriving on that port from your GPS albetit perhaps garbage on the screen but you should see traffic. If you set the PuTTY baud rate correct you may see something that you recognise.

1 Like