标题: script for checking installation procedure [打印本页] 作者: beginner-bj 时间: 2006-03-12 17:07 标题: script for checking installation procedure
#!/bin/ksh
for i in bos.content_list bos.perf.tools bos.acct bos.adt.samples
do
lslpp -l $i >/dev/null
if [ $? != 0 ]
then
echo
fi
done
if [ `oslevel` != "5.1.0.0" ]
then
lslpp -l bos.perf.tune >/dev/null
fi
which pstree >/dev/null
if [ $? != 0 ]
then
echo Please download and install pstree from http://aixpdslib.seas.ucla.edu/packages/pstree.html
fi
which lsof >/dev/null
if [ $? != 0 ]
then
echo Please download and install lsof from http://aixpdslib.seas.ucla.edu/packages/lsof.html
fi
which nmon >/dev/null
if [ $? != 0 ]
then
echo Please download and install nmon from http://www-128.ibm.com/developerworks/eserver/articles/analyze_aix/
fi
crontab -l |grep errnotif >/dev/null
if [ $? != 0 ]
then
echo Please add script errnotif
fi
lsuser infra >/dev/null 2>&1
if [ $? != 0 ]
then
echo Please add script for infra account
fi
ls /hist >/dev/null
if [ $? != 0 ]
then
echo Please add script for command histroy
fi
echo The oslevel is `oslevel -r`, please make sure it\'s the lastest ML.
echo http://www-03.ibm.com/servers/eserver/support/unixservers/aixfixes.html