#!/bin/ksh
# This script prints out the values of all the kernel parameters in the
# form of a web page to stdout.
# Mario Stargard June 18 1999
#print "Content-Type: text/html
#
#"
print "
Kernel parms for $(hostname)"
print "Kernel Parms for $(hostname)
"
print "$(date)"
# RCS header
print ""
print "
"
if [[ $# -eq 0 ]] ;then
for subsys in $( sysconfig -s |cut -d: -f1 | sort ); do
print "${subsys}
"
sysconfig -q $subsys |sed -n '/^.*:$/d; p' |sort
print "
"
done
else
cat <<-_HERE_
Op Legend
C -- The attribute can be modified when the subsystem is initially loaded.
R -- The attribute can be modified while the subsystem is running.
Q -- The attribute can be queried.
_HERE_
for subsys in $( sysconfig -s |cut -d: -f1 |sort ); do
print "${subsys}
"
sysconfig -Q $subsys |sed -n '/^.*:$/d; p' |sort
print "
"
done
fi
print ""