Operating System - HP-UX
1834737 Members
3056 Online
110070 Solutions
New Discussion

Re: remote kernel recompilation via telnet

 
SOLVED
Go to solution
Franky Leeuwerck
Frequent Advisor

remote kernel recompilation via telnet

Hi,

system : HP-UX 11

I need to change some kernel parameters. I understand this requires a kernel recompilation with a corresponding reboot of the Unix machine. I am definitely not a Unix expert and I have never done such thing before.

The problem is I can only reach this very distant server ( + 10000 miles) via telnet.

I have two questions ?
- Can this be done via telnet ?
- What are the steps to recompile and reboot in a decent way ?

Thanks in advance

Franky
7 REPLIES 7
Joaquin Gil de Vergara
Respected Contributor
Solution

Re: remote kernel recompilation via telnet

franky

you can do it without problem. Only, when you reboot the server you loose telnet connection until machine shutdown and startup process has finshed (when inetd daemon is up you can connect via telnet)


if you have configured a lan or web console connect to it and from here you can view shutdown and startup process

regards
Teach is the best way to learn
John Poff
Honored Contributor

Re: remote kernel recompilation via telnet

Hi Franky,

You can do the kernel parameter changes in sam. I've done it remotely before and it isn't hard as long as things go well. To be safe, you should have someone on-site make a backup of the operating system using 'make_recovery' or 'make_tape_recovery' (depending on which version of Ignite UX you have installed). Also, it helps if someone can be on-site just in case something hangs up on the reboot. At least they can report any strange error messages that might come up on the console if things go bad.

So I would suggest:

1. login as root
2. make_recovery (do it twice - two tapes are safer than one)
3. sam -> Kernel Configuration -> Configurable Parameters
4. change the parameters you need to change, and select to move the new kernel in place and reboot
5. cross fingers, pray, etc. (whatever works for you)

JP

JP
MARTINACHE
Respected Contributor

Re: remote kernel recompilation via telnet

If you are nor an expert :

launch sam :

sam

then

"Kernel Configuration"
"Configurable Parameters"

Modify your parameters

Then under "Actions" menu :
"Process New Kernel"

The system will reboot.

Regards,

Patrice.
Patrice MARTINACHE
harry d brown jr
Honored Contributor

Re: remote kernel recompilation via telnet

Franky,

Yes, telnet will work, unless it fails to boot!

You should look into a web console (http://www.arula.com)

live free or die
harry
Live Free or Die
Sridhar Bhaskarla
Honored Contributor

Re: remote kernel recompilation via telnet

Hi Franky,

It can be done via telnet (with the default sweetness of Unix).

First, have a good back of the system. Also have someone keep a tape in the tape drive and run make_tape_recovery after install ignite.

I can suggest you commands for generating kernel. Since you are new to HP-UX, I would prefer you do it through SAM. Login to the remote system and get in as root. Run SAM.

#sam

Select Kernel Configuration -> Configurable Parameters ->

Go through the parameters you want to change. Use Actions menu item to change them. After changing them, use Action items - Process new kernel. It will rebuilt kernel and prompt you to reboot.

Do you have anyone on site that can help you monitor the console in case the system does not boot? There is a very minute chance that sometimes you may have to bring up the system with the old kernel in case it does not boot.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Joaquin Gil de Vergara
Respected Contributor

Re: remote kernel recompilation via telnet

Franky

If you don't change unknown parameters to you kernel compilation is a safe procedure

don't worry! ;-)

P.D.: By the other way, if machine don't go up you can boot from other kernel (SAM always make a copy of the last kernel before to compilate a new one). You need to connect to console to do this......
Teach is the best way to learn
Franky Leeuwerck
Frequent Advisor

Re: remote kernel recompilation via telnet

Thanks all for your answers.

This is what I was looking for.

Franky