Operating System - HP-UX
1833760 Members
2567 Online
110063 Solutions
New Discussion

Recompile the kernel for the default terminal

 
SOLVED
Go to solution
James VanSant
Occasional Contributor

Recompile the kernel for the default terminal

I have looked into sam about recompiling the kernel and found not where I could change the default terminal type any help???
I am haveing problems with terminals and serial printers in a new L2000 800 Box.
HP-UX 11 In the man pages for getty I stumbled accrosed "The default terminal is none; i.e., any crt or normal terminal unknown to the system." and ", for terminal
type to have any meaning, the virtual terminal
handlers must be compiled into the operating system" but where?
Imagination is more important than knowledge (Albert Einstine)
5 REPLIES 5
CHRIS_ANORUO
Honored Contributor

Re: Recompile the kernel for the default terminal

Go through SAM->Peripheral Devices->Terminals and Modems.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
James VanSant
Occasional Contributor

Re: Recompile the kernel for the default terminal

I need to set the global (or default) terminal type. I have serial printer that I need to move over from our G60 to the L2000 box. The serial printers are basically set up as terminals and I have a few terminals that come up with gibrish on the screen. shure I can logon but I cant read what the screen is telling me and where the printers are I cant move a terminal to each location to run the tset command every time the system gets rebooted to reset the terminal type
Imagination is more important than knowledge (Albert Einstine)
Carlos Fernandez Riera
Honored Contributor
Solution

Re: Recompile the kernel for the default terminal


Two things:

On your old box run untic fro each terminal type ($TERM) you need. Send this information via ftp to your new box and run tic. Man tic, terminfo.


/etc/profile is where you will find tset for each login. Override it on /etc/profile or userprofiles as needed (export TERM=myterm).

About printers i am sure that the interfaces will run conrrectly ( /etc/lp/interface/*). Create new printers and override the interface file.

Good luck.


unsupported
Bill Hassell
Honored Contributor

Re: Recompile the kernel for the default terminal

Your problem is with the L-class computer. It has a (very questionable) behavior of forcing the TERM value to an internal setting in the GSP. That's why when you login, the cursor jumps around and the screen is mixed up. Here's what is happening and how to fix it:

This occurs only on the Superdome, N-class, L-class and A400/A500 computers and is caused by the default settings in the Guardian Service Processor (processor ROMs). The code for tytype was changed (but never documented) in PHCO_18332. Rather than query the actual terminal attached to the system (serial or web console), the GSP replies to a special system call from ttytype , effectively bypassing the terminal ID request.

The standard solution in the past has been to reconfigure your terminal from HP emulation to VT100 emulation but this has the undesirable side effect of losing softkey (programmable key) capability, which is standard for tools such as SAM and swinstall, and makes using the character mode version of these tools very cumbersome.

There is a much easier way. Just change the terminal setting in the GSP. The command is: ca

Here is a summary on how to change it along with a sample dialog:

1. Get to the Guardian Service Processor prompt by:

a. CTRL-B on the console

b. telnet to the GSP LAN console.

For the LAN console, you may have to type CTRL-Ecf to pull control from another user that has telnetted to that port.

2. After logging in - there may not be any login or password, just press Return/Enter a couple of times - type the command: ca

You will see the options that can be set. Answer Y to the Terminal Type question, then type hpterm as the new type and Y to confirm the new setting. Exit the GSP by typing: co

Now this fixes problems with SAM and swinstall where the terminal type on the console (serial or web-based) defaults to VT100 (aka, EM100 on HP terminals such as the 700/9x series). However, the INSTALL program may or may not like the hpterm setting. So if you need to reinstall HP-UX on one of these systems, you may need to change the GSP back to VT100 temporarily.



Bill Hassell, sysadmin