how to know my serial port is communicating and running fine


 
Thread Tools Search this Thread
Operating Systems AIX how to know my serial port is communicating and running fine
# 1  
Old 07-15-2009
how to know my serial port is communicating and running fine

i want to know that my serial port ( pci slot with 2 port ) is working fine and communicating

is there any way to know the serialport is working and communicating?
please help
# 2  
Old 07-15-2009
Attach a serial device? in your former similar post you asked to know which port is which and spoke of a modem. Might want to look up "cu" in the man page for sending AT commands to your modem, for example.

Edit:
Also a simple search on Google with "configuration modem aix" returns a page like this:
http://www.digi.com/support/kbase/kb...etl.jsp?id=241

Last edited by zaxxon; 07-15-2009 at 05:47 AM..
# 3  
Old 07-15-2009
How about set up a "getty" process to listen on it and present a login prompt?

Put something like this in /etc/inittab, then "telinit q":

tty1:23:respawn:/usr/sbin/getty /dev/tty1
tty2:23:respawn:/usr/sbin/getty /dev/tty2

---------- Post updated at 10:49 ---------- Previous update was at 10:48 ----------

Then, of course, use a serial console to see whether you can see a login prompt.
# 4  
Old 07-17-2009
Quote:
Originally Posted by garethr
How about set up a "getty" process to listen on it and present a login prompt?

Put something like this in /etc/inittab, then "telinit q":

tty1:23:respawn:/usr/sbin/getty /dev/tty1
tty2:23:respawn:/usr/sbin/getty /dev/tty2

---------- Post updated at 10:49 ---------- Previous update was at 10:48 ----------

Then, of course, use a serial console to see whether you can see a login prompt.
If i put the lines in inittab file what do i have to do now shall i connect serial cable from AIX to the PC and configure hyperterminal?

---------- Post updated at 12:02 PM ---------- Previous update was at 11:24 AM ----------

I tried to configure modem according to the following document but the following error occured

The output of slattach connand is as follows.
what is the solution

# slattach tty1 38400 '"" ATZ OK ""'
strload: cannot load /usr/lib/drivers/slip: Cannot run a file that does not have a valid format.
slattach: 0821-300 ifconfig command must be run for this tty before slattach can be run.
# slattach tty1
strload: cannot load /usr/lib/drivers/slip: Cannot run a file that does not have a valid format.
slattach: 0821-300 ifconfig command must be run for this tty before slattach can be run.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Communicating with ethernet to serial LED sign - is this feasible?

I have a london-electronics LED sign I picked up on eBay which I would like to display custom messages on programmatically. It is working ok. Opening it up, it has an ethernet to serial connection currently plugged in and a serial connection currently unplugged internally (same connectors).... (9 Replies)
Discussion started by: windswept321
9 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. Shell Programming and Scripting

Getting issue while running it from cron while manually working fine

Hello, I am working one one script where I am using the below code which is using to connect with MKS client when I run my script manually it works effiecently i.e. it connects with MKS client but when I run it from CRON it doesn't connect. 1)Can some one tell when it is running from cron... (1 Reply)
Discussion started by: anuragpgtgerman
1 Replies

4. 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

5. 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

6. UNIX for Dummies Questions & Answers

Missing serial port

A neighbour's Ubuntu 10.04 machine has five serial ports, one on the motherboard and four on a PCI card. However, only four cards are showing: # dmesg | grep tty console enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ... (2 Replies)
Discussion started by: dotancohen
2 Replies

7. 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

8. UNIX for Dummies Questions & Answers

Serial port redirector

I need make serial data from virtual serial ports available on a TCP/IP network. For communications with hardware COM ports to send and receive serial data over a local network or the Internet. Example: POSIX machine (/dev/ttyS0) <--- TCP/IP ---> Windows machine COM1 Please help! I try use... (0 Replies)
Discussion started by: steel98
0 Replies

9. UNIX for Advanced & Expert Users

Communicating with Serial Port

I am using system running on red hat linux 4. I had connected health measuring machine to the serial port and configured it stty -F /dev/ttyS0 9600 -parenb cs8 -cstopb this machine requires a command to be passed to it for giving output. I am unable to pass command hexa format(0x68) to the... (4 Replies)
Discussion started by: netsavant
4 Replies

10. Programming

Telling apart serial from // port

I'm writing a journal_write() function and I want it to: - be a possible drop in replacement for write() - write entries to the journal ;-) Could be a regular file (journal.txt), a serial printer or a // printer. - handle printer status if needed. fstat() tells weather or not we're dealing with... (2 Replies)
Discussion started by: starless
2 Replies
Login or Register to Ask a Question