Sponsored Content
Operating Systems AIX command to monitor the Serial port Post 302266351 by smartgupta on Wednesday 10th of December 2008 03:12:24 AM
Old 12-10-2008
command to monitor the Serial port

Hi,

Can anyone please tell me how to check the status of the serial port ??

for example,in Sun os we use the command pmadm to see the status of the serial port--
Quote:
# pmadm -l
PMTAG PMTYPE SVCTAG FLGS ID <PMSPECIFIC>
zsmon ttymon ttyb u root /dev/term/b I - /usr/bin/login - 9600 ldterm,ttcompat ttyb login: - tvi925 y #
zsmon ttymon ttya u root /dev/term/a I - /usr/bin/login - 9600 ldterm,ttcompat ttya login: - tvi925 y #
So is there any command or method in AIX,So that i can see the serial port status ??
thanks in advance ...

Last edited by smartgupta; 12-10-2008 at 04:20 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to set baude rate of Serial port using setserial or other command

Hello, I am encountering problems when I use termios structure to set my baud rate of serial port. Pls give me a way by which I can set the same using a different command (1 Reply)
Discussion started by: zaheer031
1 Replies

2. Linux

urgent......Serial port

I think my serial port(on board) is not working ...... because when I am running same code on two machines its working good....but when my system comes into picture ....it doesnt show any output comming from serial port.......... can anybody tell me how to configure my serial port.........or to... (16 Replies)
Discussion started by: arunchaudhary19
16 Replies

3. SCO

Serial port configuration

Hi I have just re-installed Compaq ML350 G2 Server with Unix SCO 5.0.5 and informix DBMS . on this server we have 2 serial ports , unfortunately its not working. Can anyone help me to check the serial ports working or not OR guide me to reconfigure it. I have attached a device with... (1 Reply)
Discussion started by: munirh
1 Replies

4. Programming

Serial port programming

I am developing an application in c with Linux OS, where a radio modem working at baud rate 9600 will be attached to PC on serial port. More than four such units will be communicating at one time, so there may be jamming or data corruption. Each module will be transmitting Data packets less than... (2 Replies)
Discussion started by: raj8109
2 Replies

5. Solaris

Serial port problem

I am working with solaris 9 sparc and I want to connect physical device in serial port but when I am connecting it,It is showing the error window saying-- So can any1 tell me the reason or is there any package I have to add to work with serial port??? (2 Replies)
Discussion started by: smartgupta
2 Replies

6. OS X (Apple)

Serial port parameters

Hello, I am trying to use a rs232 device through a USB serial port on my MacBook pro laptop. I think the device needs the communication parameters to be 9600 n 8 1 my question is does anyone know what the default communication parameters are for mac os x 10.5.7 unix? And if the default... (0 Replies)
Discussion started by: jamesapp
0 Replies

7. Shell Programming and Scripting

Monitor Port, if active, pipe command to screen

I am a linux newbie and I am learning. I need a script that will monitor a port and if active -- only active, not listening or waiting -- then pipe some commands to the screen as if they were typed on the keyboard. Can a bash or perl script do this and if so, could someone help me out? Thanks. (0 Replies)
Discussion started by: bulgin
0 Replies

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

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

10. 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
ttyadm(1M)						  System Administration Commands						ttyadm(1M)

NAME
ttyadm - format and output port monitor-specific information SYNOPSIS
/usr/sbin/ttyadm [-b] [-c] [-h] [-I] [-r count] [-i msg] [-m modules] [-p prompt] [-t timeout] [-S y | n] [-T termtype] -d device -l ttylabel -s service /usr/sbin/ttyadm -V DESCRIPTION
The ttyadm command is an administrative command that formats ttymon(1M)-specific information and writes it to standard output. The Service Access Facility (SAF) requires each port monitor to provide such a command. Note that the port monitor administrative file is updated by the Service Access Controller's administrative commands, sacadm(1M) and pmadm(1M). ttyadm provides a means of presenting formatted port monitor-specific (ttymon-specific) data to these commands. OPTIONS
The following options are supported: -b Set the ``bi-directional port'' flag. When this flag is set, the line can be used in both directions. ttymon will allow users to connect to the service associated with the port, but if the port is free, uucico(1M), cu(1C), or ct(1C) can use it for dialing out. -c Set the connect-on-carrier flag for the port. If the -c flag is set, ttymon will invoke the port's associated service imme- diately when a connect indication is received (that is, no prompt is printed and no baud-rate searching is done). -d device device is the full pathname of the device file for the TTY port. -h Set the hangup flag for the port. If the -h flag is not set, ttymon will force a hangup on the line by setting the speed to 0 before setting the speed to the default or specified value. -i message Specify the inactive (disabled) response message. This message will be sent to the TTY port if the port is disabled or the ttymon monitoring the port is disabled. -I Initialize only. If the -I option is used, ttymon will invoke the service only once. This can be used to configure a par- ticular device without actually monitoring it, as with software carrier. -l ttylabel Specify which ttylabel in the /etc/ttydefs file to use as the starting point when searching for the proper baud rate. -m modules Specify a list of pushable STREAMS modules. The modules will be pushed in the order in which they are specified before the service is invoked. modules must be a comma-separated list of modules, with no white space included. Any modules currently on the stream will be popped before these modules are pushed. -p prompt Specify the prompt message, for example, ``login:''. -r count When the -r option is invoked, ttymon will wait until it receives data from the port before it displays a prompt. If count is 0, ttymon will wait until it receives any character. If count is greater than 0, ttymon will wait until count newlines have been received. -s service service is the full pathname of the service to be invoked when a connection request is received. If arguments are required, the command and its arguments must be enclosed in double quotes (" "). -S y|n Set the software carrier value. y will turn software carrier on. n will turn software carrier off. -t timeout Specify that ttymon should close a port if the open on the port succeeds, and no input data is received in timeout seconds. -T termtype Set the terminal type. The TERM environment variable will be set to termtype. -V Display the version number of the current /usr/lib/saf/ttymon command. OUTPUT
If successful, ttyadm will generate the requested information, write it to standard output, and exit with a status of 0. If ttyadm is invoked with an invalid number of arguments or invalid arguments, or if an incomplete option is specified, an error message will be written to standard error and ttymon will exit with a non-zero status. FILES
/etc/ttydefs ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
ct(1C), cu(1C), pmadm(1M), sacadm(1M), ttymon(1M), uucico(1M), attributes(5) SunOS 5.11 14 Sep 1992 ttyadm(1M)
All times are GMT -4. The time now is 12:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy