Chinaunix

标题: 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


    脚本粘进来时,段落之间的空白行被自动删除了,看着有点不舒服。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/739/showart_84164.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2