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


 
Thread Tools Search this Thread
Operating Systems AIX How to change from tty03 to tty00 serial port in AIX 5.x?
# 1  
Old 06-05-2017
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
# 2  
Old 06-06-2017
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
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 06-06-2017
Quote:
Originally Posted by trevian3969
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.
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:

Code:
lscfg -vp
lsdev -C

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 4  
Old 06-09-2017
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. Smilie

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
# 5  
Old 06-09-2017
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.
This User Gave Thanks to hicksd8 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Connect GPS to serial port AIX 5.x

HI, Does anyone installed a GPS from his Serial port to an IBM Server serial port with AIX 5.X I would like the rs232 configuration you used on the GPS, and the ttys configuration from your server. Thanks in advance !!! (8 Replies)
Discussion started by: trevian3969
8 Replies

2. Solaris

Cabling and adapters to communicate to service processor serial port from Windows PC with USB port.

Hello, I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build. The first part is what confuses me -the cabling. I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies

3. Solaris

How to enable Serial port on ILOM, when Network Port is enabled in parallel

Hi Everyone, In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies

4. Shell Programming and Scripting

Need help with serial port

Hi, I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and... (0 Replies)
Discussion started by: charlie.arya
0 Replies

5. Solaris

Serial port on the T5140

What is the serial port on the T5140 used for. (4 Replies)
Discussion started by: pgsanders
4 Replies

6. AIX

Serial port in AIX

Hi, How can i configure my modem in AIX thru serial port (sa0-->tty0) I have two port serial card configured as sa0 I created tty1 which port is tty0 and which port is tty1 how can i know?? (1 Reply)
Discussion started by: pchangba
1 Replies

7. Programming

Programming serial port

Hello! Can someone advice me which method I will use if I want to communicate with device via RS232 serial port with this requirements: 1. Serial port is opened in non-canonical mode. 2. All the time I need to check is there something to read. 3. If I have to write something I need to write it... (6 Replies)
Discussion started by: jvrlic
6 Replies

8. Solaris

Serial port issue

Hi, I am working with Sun Solaris 9 Sparc,Sun-Blade-100.In my application,I need to monitor the UPS using Serial port. When I am using JRE 1.4 in my application,I am able to monitor it but when I am upgrading the JRE version from 1.4 to JRE1.6. I am not able to monitor the UPS.It is showing the... (1 Reply)
Discussion started by: smartgupta
1 Replies

9. Solaris

serial port signal

hi i am using solaris 9 on sparc . i was wondering if there was a command to control my serial interface , as to send a signal periodically every interval of time to the input of a 555 timer . thanks for your help .... (0 Replies)
Discussion started by: ppass
0 Replies

10. Programming

serial port reading

Hai there, Can any one provide me with a ansi c source code for opening com1 or com2 and read data. The port is connected to another serial communication device on rs232 port. The o/s is Sco Unix 5.0.6 Matter urgent Viswanath (0 Replies)
Discussion started by: viswanath
0 Replies
Login or Register to Ask a Question