Operating System - HP-UX
1752598 Members
5386 Online
108788 Solutions
New Discussion юеВ

Re: Setting Kernel Parameters

 
karthik_4
Occasional Contributor

Setting Kernel Parameters

Can anybody tell me whats the filename where you set the kernel parameters like

nfile , NPROC MAXUSERS,NPTY,NSTRPTY,NSTRTEL etc..

I am not using any GUI for setting these parameters.Can anybody tell me where i will get the file.

Thanks
8 REPLIES 8
Christopher McCray_1
Honored Contributor

Re: Setting Kernel Parameters

/stand/system file you use, but then you have to manually rebuild a kernel and reboot. SAM has both the GUI and text-based gui available and auto-detects this when it starts up. Then you can go into Kernel Configuration --> Configurable Parameters, where you can pind the parameters you want to modify and let sam rebuild your kernel for you. Hope this helps.

Regards,
Chris
It wasn't me!!!!
Stefan Farrelly
Honored Contributor

Re: Setting Kernel Parameters


They should all be in the file /stand/system

If not you can use this command to create it, then edit it and change it, then build a new kernel;
/usr/lbin/sysadm/system_prep -s /stand/system
Im from Palmerston North, New Zealand, but somehow ended up in London...
Wodisch
Honored Contributor

Re: Setting Kernel Parameters

Hello,

the file is "/stand/system" but that will not help you,
as you will need the commands to generate the new
kernel from them...

To modify you should use the command "kmtune" and
if you "search" for this keayword, you should be able
to find quite a few threads about "how to generate a
kernel from command line"...

HTH,
Wodisch
eran maor
Honored Contributor

Re: Setting Kernel Parameters

Hi

you need to put all the value in the /stand/system file and recompile the kernel .

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (make your changes)
save file

# /usr/sbin/mk_kernel -s system
# /usr/sbin/kmupdate
love computers
Rita C Workman
Honored Contributor

Re: Setting Kernel Parameters

Everyone has told how to build a kernel manually...

But just in case...you don't have to use a gui to run SAM (System Administration Menu). It will come up in character mode as well; and in SAM you can modify the kernel configuration and have SAM rebuild the kernel for you.

I apologize if this answer is too basic....but the more I re-read your question....I wondered why you didn't mention using SAM to change your parms...

Just a thought,
Rita
someone_4
Honored Contributor

Re: Setting Kernel Parameters

Hello
I did this yesterday here is a doc I got from HP.. And here is a website that was much helpfull.
http://forums.itrc.hp.com/cm/components/FileAttachment/0,1167,0xa5915220af9bd5118ff10090279cd0f9,00.htm

Richard
Andrew R.
Advisor

Re: Setting Kernel Parameters

My friend, There is two ways to do that, the first one is using SAM (that is straigh forward),second way is to do this:
#cd /stand/build
#system_prep -s system
#vi system (add your changes)

#mk_kernel -s ./system (build the new kernel)

#mv /stand/system /stand/system.old
#mv /stand/vmunix /stand/vmunix.old

#cp /stand/build/system /stand
#cp /stand/build/vmunix_test /stand/vmunix

Reboot
shutdown -r now

#sysdef (verify the changes)

Good Luck !!
Live for the infinity life
Michael Tully
Honored Contributor

Re: Setting Kernel Parameters

Hi,

You can this in SAM using a character based terminal if you wish or you use the command line as follows:

You didn't mention what OS version you are running?

If using 10.20 these are the command line options:

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (make your changes)
save the file
# /usr/sbin/mk_kernel -s system (this builds the new kernel)

# mv /stand/vmunix /stand/vmunix.120701
# cp /stand/build/vmunix_test /stand/vmunix

Reboot your system.

If using 11.00 these are the command line options:

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (make your changes)
save file
# /usr/sbin/mk_kernel -s system (this build the new kernel)
# /usr/sbin/kmupdate

# cd /

Reboot your system.

HTH
-Michael

Anyone for a Mutiny ?