Operating System - HP-UX
1834689 Members
2213 Online
110069 Solutions
New Discussion

calculating kernel formulas

 
AFI HP-UX ADMIN
Advisor

calculating kernel formulas

I'm trying to script a kernel review between multiple servers.

Is there a command to retrieve the actual value of a kernel parameter? i.e. the 'current value' column in SAM when tuning a kernel. - kmtune doesn't evaluate formulas.

command line # or GUI ?
5 REPLIES 5
Don Morris_1
Honored Contributor

Re: calculating kernel formulas

Which version of HP-UX? 11i introduced tuneinfo() as part of the dynamic tunables stuff. That would give you current, min, and max.
Mark van Hassel
Respected Contributor

Re: calculating kernel formulas

Hi Jeff,
You could use "sysdef" but not all parameters are included.

If you want to compare kernels you should compare the formula's i.s.o. the outcome of that formula at any given time. If the formula is the same, the kernel parameter is the same.

You can use /usr/sam/lbin/getkinfo -o [filename] as well to retrieve kernel info.
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us
Charles Harris
Super Advisor

Re: calculating kernel formulas

Hi, try sysdef (as root) it should show you all the kernel params.

Cheers,


-ChaZ-
Rita C Workman
Honored Contributor

Re: calculating kernel formulas

OK...here's another thought.

You could go into SAM and save your kernel info to a file (I often do this so I can print the output later..)
Now use this file and write a script to compare one file with the other....possibly the join or comm command would do the trick .. check the manpages.

Just a suggestion,
Rita

AFI HP-UX ADMIN
Advisor

Re: calculating kernel formulas

I'm doing this on 11.0. kmtune still seems to be the best answer - sysdef doesn't report on all parameters. Looks like I still have to conquer the formulas...
command line # or GUI ?