Linux RAC Environment check script

Source: Internet
Author: User

Echo "# ******************************** OS check **** ************************************"

Echo 'hostname'
Echo "----------------------------------------------------------------------------------"
Echo "# Check OS"
Echo "success "----------------------------------------------------------------------------------------------"
Uname-
Echo "# Check swap"
Echo "success "------------------------------------------------------------------------------------------------"
Free
Echo "# Check disk"
Echo "success "---------------------------------------------------------------------------------------------"
DF-H
DF-H/dev/SHM
Echo "# Check memory"
Echo "success "---------------------------------------------------------------------------------------------------"
Grep memtotal/proc/meminfo
Echo "# Check package"
Echo "success "-----------------------------------------------------------------------------------------------"
Rpm-Q -- qf' % {name}-% {version}-% {release} (% {arch}) \ n' binutils \
Compat-libstdc ++-33 \
Elfutils-libelf \
Elfutils-libelf-devel \
GCC \
Gcc-C ++ \
Glibc \
Glibc-common \
Glibc-devel \
Glibc-headers \
Ksh \
Libaio \
Libaio-devel \
Libgcc \
Libstdc ++ \
Libstdc ++-devel \
Make \
Sysstat \
Unixodbc \
Unixodbc-devel
Echo "# Check IP"
Echo "---------------------------------------------------------------------------"
Ifconfig
Echo "# Cat/etc/hosts"
Echo "------------------------------------------------------------------------"
CAT/etc/hosts

Echo "# Check shell"
Echo "-----------------------------------------------------------------------------"
Echo $ Shell
Echo "# Check available shell"
Echo "-------------------------------------------------------------------------------"
CAT/etc/shells
Echo "# Check CPU"
Echo "-------------------------------------------------------------------------------"
CAT/proc/cpuinfo | grep processor | WC-l
Echo "# Check date"
Echo "------------------------------------------------------------------------------"
Date
Echo "Check chkconf"
Echo "-----------------------------------------------------------------------------"
Chkconfig -- list

Echo "# Check/etc/sysctl. conf"
Echo "-------------------------------------------------------------------------------"
CAT/etc/sysctl. conf

Echo "#/etc/security/limits. conf"
Echo "-------------------------------------------------------------------------"
CAT/etc/security/limits. conf

Echo "# Check/etc/PAM. d/login"
Echo "---------------------------------------------------"
CAT/etc/PAM. d/login

Echo "# Check/etc/profile"
Echo "----------------------------------------------------------------"
CAT/etc/profile

Echo "# ****************************** disk check ***** **************************************"
Echo "# Check disk"
Echo "-------------------------------------------------------------"
Ls-L/dev /*

Echo "******************* Oracle user check **************** **************************"
Echo "# ID oracle"
Echo "-------------------------------------------------------------------------"
Id Oracle

Echo "# ID grid"
Echo "----------------------------------------------------------"
Id Grid

Echo "************************* profile check ********** ********************"
Echo "# Cat/home/Oracle/. bash_profile"
Echo "--------------------------------------------------------------------"
CAT/home/Oracle/. bash_profile

Echo "# Cat/home/GRID/. bash_profile"
Echo "----------------------------------------------------------------------"
CAT/home/GRID/. bash_profile

Echo "****************** instance *****************"
Echo "# Cat/etc/oratab"
CAT/etc/oratab

Echo "# Check SMON"
Echo "----------------------------------------"
PS-Ef | grep SMON

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.