Operating System - Tru64 Unix
1756144 Members
3452 Online
108841 Solutions
New Discussion юеВ

Re: Locate kernel parameter

 
SOLVED
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.
2 REPLIES 2
Ivan Ferreira
Honored Contributor
Solution

Re: Locate kernel parameter

Maybe you can use a script like this:

#!/bin/ksh
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."
fi
done

Usage:

subsys_check.sh kernel_attribute

Example:

subsys_check.sh 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!!


Carlos.