1826234 Members
2418 Online
109692 Solutions
New Discussion

Setting Env Variables

 
SOLVED
Go to solution
Stuart Lloyd_2
Advisor

Setting Env Variables

On Solaris I edit the /etc/system file to set certain variables. Example:
shmmax=209715200
shmmni=100
etc...
Where do I go on an HP11i to do this?
Charlie don't surf.
4 REPLIES 4
Manish Srivastava
Trusted Contributor

Re: Setting Env Variables

Hi,

You can use kctune to do the configuration. kctune -c takes a config file. man kctune will help

manish
John Poff
Honored Contributor
Solution

Re: Setting Env Variables

Hi,

In HP-UX, probably the easiest way to set kernel parameters is to go into 'sam' and do it. Select Kernel Configuration -> Configurable Parameters. Any values listed as Static will require a kernel rebuild and a reboot.

You can do it from the command line, but I'm too lazy for that.

JP
Steven E. Protter
Exalted Contributor

Re: Setting Env Variables

assuming you are trying to set kernel parameters, its totally different in HP-UX.

Here is a guide to kernel modifications.

#cd /stand
#cp vmunix vmunix.old
#cp system system.old
#cd build

#this is the changed line.
#/usr/lbin/sysadm/system_prep -s system

Edit system file and make changes here as per ur require ment. Imeand addition/Deletion of devices. Then
#mk_kernel -s system
For more information see the man page of mk_kernel

to update parameters:

kmtune -s shmmax=209715200 -S /stand/build/system

Some parameters such as shmmax can be updated without a boot with the command kmtune -u


Now one new kernel will be created in /stand/build directory. Copy this to original location
#cd /stand/build
#cp vmunix_test /stand/vmunix
#cp system /stand


If you are new to HP-UX it might be better to do this process via sam

sam

Kernel

Change configurable parameters.

When done: Actions, process new kernel. This requires in most cases a boot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dani Seely
Valued Contributor

Re: Setting Env Variables

Hey Stuart,
I agree with John (lazy or not, it's the safest solution). Best solution I have found (and safest so I don't muck up anything) is using SAM ... Note, this works for 10.20, 11.00, 11.11 so it's the best solution I know of ...
# sam
select Kernel Configuration
select Configurable Kernel Parameters
Together We Stand!