skybb
September 6, 2012, 5:19am
1
Hi,
I have problem with parameter configuration.
My question is after the configuration, how to check if successfully change the value or not?
I saw someone has the same question, and followed his steps.
Original thread:
Which macL mentioned that:
I use the following command:
dmesg -n 8
modprobe igb InterruptThrottleRate=0
dmesg
Though the dmesg didn't show any message related to what macL saw.
Is there any step wrong or missing during the command?
try this:
#!/bin/bash
# parm.shl display kernel module parameters
# usage ./parm.shl [module name]
# set module or modules to display
default=' ' # display all modules
[ $# -eq 1 ] && default="$1" # display one module
# get a list of modules
fgrep "$default" /proc/modules | awk '{print $1}' > mod.lis
# process list of modules
while read module
do
printf "%s %s\n" "Module:" "$module"
dir="/sys/module/$module/parameters"
# is there a parameter directory
[ ! -d "dir" ] && printf "\t%s\n" 'No parameters' && continue
# display the content
ls "$dir" | while read parameter
do
printf "\t%s %s\n" "$parameter -->" "$(cat ${dir}/${parameter} )"
done
done < mod.lis
skybb
September 10, 2012, 2:26am
3
After execution, I get "No parameters" for all modules
And it displayed "rm.shl command not find" at first line
I set [module name]=igb
Is anyone has further information about it? Thanks...
methyl
September 13, 2012, 5:22pm
4
Please post the script you ran and the command line you typed to run the script. If you got error messages, please post the exact error messages verbatim.
Please also post what Operating System and version you are running and what Shell you use.