Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
Showing results for 
Search instead for 
Did you mean: 

Locate kernel parameter

Go to solution
Carlos A. Munoz Lopez
Frequent Advisor

Locate kernel parameter

Hi guys. Does anybody know how to locate the specific subsystem where a kernel parameter lives in??? When I have to change a parameter I have to query every subsystem just to know exactly where the parameter is located, so as you know this is rather annoying. I would like some tips on this. Thanks a lot.
Ivan Ferreira
Honored Contributor

Re: Locate kernel parameter

Maybe you can use a script like this:

for SUBSYSTEM in `sysconfig -s| awk -F ":" '{ print $1 }'`; do
FOUND=`sysconfig -q $SUBSYSTEM 2> /dev/null| grep $1 | wc -l`
if [ $FOUND -gt 0 ]; then
echo "The $1 kernel parameter is located at the $SUBSYSTEM subsystem."

Usage: kernel_attribute

Example: swap_eager

The swap_eager kernel parameter is located at the vm subsystem.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Carlos A. Munoz Lopez
Frequent Advisor

Re: Locate kernel parameter

Thanks a lot Ivan. Works like a charm!!