- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disable terminal port
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 02:56 PM
04-21-2003 02:56 PM
We have a need to setup a terminal port with no getty. Apparently whenever I set this up in SAM it is enabled, for the speed I want. (2400B) when I got to inittab and alter it to turn getty off. I re-initialize the inittab file and get 300B. I need it to stay at 2400B any help here?
Thanks Scott
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 03:25 PM
04-21-2003 03:25 PM
Re: disable terminal port
In my 11.0 there is:
H # B9600 SANE CLOCAL CS8 IXANY TAB3
# B9600 SANE CLOCAL CS8 IXANY TAB3
#login: #H
which is to be used for a hardwired terminal.
IF we modify it for 2400 and give it a different letter it would look like this:
J # B2400 SANE CLOCAL CS8 IXANY TAB3
# B2400 SANE CLOCAL CS8 IXANY TAB3
#login: #J
If you copy this and add it to the bottom of a copy of gettydefs you can check the sanity of your changes with getty -c filename.
Now copy the old gettydefs to a safe place and replace it with your new version. Then change your initab entry to read something like:
ttp1:234:respawn:/usr/sbin/getty -h tty0p1 J
(Using the appropriate tty, of course)
It should pick up the J option and stay at 2400. See the man for getty and gettydefs.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 03:28 PM
04-21-2003 03:28 PM
Re: disable terminal port
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 03:30 PM
04-21-2003 03:30 PM
Re: disable terminal port
ttp1:234:respawn:/usr/sbin/getty -h tty0p1 2400
Using this example, you should have an entry in /etc/gettydefs for 2400
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 03:35 PM
04-21-2003 03:35 PM
Re: disable terminal port
I'm not sure why you would want the getty off ... but ...
ttp1:234:off:/usr/sbin/getty -h tty0p1 2400
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 03:56 PM
04-21-2003 03:56 PM
Re: disable terminal port
F # B2400 SANE CLOCAL CS8 IXANY TAB3
# B2400 SANE CLOCAL CS8 IXANY TAB3
#login: #F
Per the suggestions I removed "#login:" and left "#F"
in inittab I have tried many things:
b9:3:off:/usr/sbin/getty -h tty2a13 F
and
b9:3:off:/usr/sbin/getty -h tty2a13 24000
Well, still no dice. If it's enabled, stty shows 2400B when it is disabled it drops to 300B.
I need this disabled for a hand held inventory scanner device. It usees a disabled port, works fine in AIX, SCO.
Thanks again...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 01:56 AM
04-22-2003 01:56 AM
SolutionA terminal port without a getty is purely a device file. The getty is used for providing a login, which you don't need. It also follows that if you don't need a getty, you won't be using gettydefs either.
The default baud rate for a port is 300, if you need to change this you could use stty, and a sleep command - in the same way as with serial printers. However, it's common for the application that's accessing the port to set the baud rate. What are you actually using to access the port? Kermit, cu, some 3rd party code? I did deal with someone a couple of years back that had a dual head barcode scanner, they were using kermit to pull the barcodes into a file which was then sent to their database.
regards,
Darren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 03:10 AM
04-22-2003 03:10 AM
Re: disable terminal port
kill -HUP 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 05:21 AM
04-22-2003 05:21 AM
Re: disable terminal port
Unless I wrote a C program to poll the port and then I could set the speed there. If you are writing C you could update Oracle with PROC or other such technique.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 02:38 PM
04-22-2003 02:38 PM
Re: disable terminal port
I have tried setting up a port there and get the same results. It could be the way I am adding the port or disabling it.
I have added it through SAM and I have added it by MKNOD. The only way I can see to disable it is to edit the inittab file (changing "respawn" to "off")
There must be another way which I am not aare of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 02:38 PM
04-22-2003 02:38 PM
Re: disable terminal port
I have tried setting up a port there and get the same results. It could be the way I am adding the port or disabling it.
I have added it through SAM and I have added it by MKNOD. The only way I can see to disable it is to edit the inittab file (changing "respawn" to "off")
There must be another way which I am not aware of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 02:46 PM
04-22-2003 02:46 PM
Re: disable terminal port
Darren clued me into it.
Thanks everybody!