1827259 Members
2248 Online
109716 Solutions
New Discussion

Re: Setting Port

 
Doug Hussey
New Member

Setting Port

My system is b2600 running ver11. I have connected this machine to a digi port server. However, I need to edit tty0p0 (I can connect to the machine but the text is messed up).I need to change flow control and make sure 8n1 is set. What is the best way to do this. I also need to make this change permanent. Thanks Doug
3 REPLIES 3
Sanjay_6
Honored Contributor

Re: Setting Port

Hi Doug,

You can do this by setting the corresponding gettydefs entry in /etc/gettydefs. Look for the getty entry being used for this terminal and then modify the corresponding getty entry in /etc/gettydefs. You can create a new gettydefs entry in /etc/gettydefs and use that for this port if you don't want to modify the default getty entry.

Here is how you can modify the gettydefs entry to suit your purpose,

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=3e2e5bb718e7eca3b8/screen=ckiDisplayDocument?docId=200000054388254

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=3e2e5bb718e7eca3b8/screen=ckiDisplayDocument?docId=200000048319556

Here is another way of how to do that,

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=dd847fd1128cbef87e/screen=ckiDisplayDocument?docId=200000024645241

Hope this helps.

Regds
A. Clay Stephenson
Acclaimed Contributor

Re: Setting Port

Hi Doug:

While you can set the port to essentially any desired setting via gettydefs, it is important to note that there is no such thing as making it permanent in the sence that any call to stty to and ioctl call can reset the port. Gettydefs insures a predictable setting on login but that could be overrideen with a stty call within your .profile for example. You need to check there as well.
If it ain't broke, I can fix that.
Doug Hussey
New Member

Re: Setting Port

Great thanks for the response.