centos View Script #!/bin/bashdate >>info.txtecho "native CentOS version is" >>info.txtcat / etc/issue >>info.txtcat /etc/redhat-release >>info.txtrpm -q centos-release. >>info.txt echo "native centos version Details" >> info.txtcat /proc/version >>info.txtecho "native CentOS 32-bit or 64-bit" >> info.txtgetconf long_bit >>info.txtecho "Native kernel version details" >>info.txtuname -a >>info.txtecho "Native CPU name" >>info.txtmore /proc/cpuinfo | grep " Model name " >>info.txtecho native CPU bits" >>info.txtgetconf LONG_BIT > >info.txtecho "Number of native CPU logic" >>info.txtcat /proc/cpuinfo | grep "processor " | wc -l >>info.txtecho " Native CPU physical number " >>info.txtcat /proc/ cpuinfo | grep "PhysicaLPH id " | sort | uniq | wc -l >>info.txtecho " The number of cores per physical CPU cores " >>info.txtcat /proc/cpuinfo | grep " Cpu cores " >>info.txtgetconf LONG_BIT >>info.txtyum install dmidecode -yecho " Number of native memory slots and memory size " >>info.txtdmidecode|grep -P -A5 " Memory\s+device "| grep size | grep -v range >>info.txtecho "natively supports maximum memory" >> info.txtdmidecode | grep -p ' maximum\s+capacity ' >>info.txtecho ' native memory strip frequency NOTE: Motherboard compatible memory frequency, not real memory frequency " >>info.txtdmidecode | grep ' Speed ' >> info.txtecho "native hard disk partition condition" >>info.txtlsblk >>info.txtecho "native hard disk usage" > >info.txtdf -h >>info.txtyum install -y curlecho "Native public network IP" > >info.txtcurl icanhazip.com >>info.txT
CentOS View Script