°Ô½Ã¹° 259°Ç
   
[RedHat] SOSREPORT ½ÇÇà½Ã Hang °É·ÈÀ» °æ¿ì
±Û¾´ÀÌ : ÃÖÀå¼· ³¯Â¥ : 2016-10-04 (È­) 10:26 Á¶È¸ : 2625
sosreport°¡ ÇàÀÌ °É·ÈÀ»¶§, ¾î¶»°Ô Çϸé ÁÁÀ»±î¿ä?
sosreport¸¦ ´ë½ÅÇÏ¿©, ´ÙÀ½ ½ºÅ©¸³Æ®¸¦ ÀÛ¼ºÇÏ¿© ½ÇÇàÇÏ¿© Áֽʽÿä.

#!/bin/bash
host="$(hostname)"

sos_dir="/tmp/${host}_hungsos"
mkdir $sos_dir
cd $sos_dir
chkconfig --list > chkconfig
date > date
df > df
dmesg > dmesg
dmidecode > dmidecode
fdisk -l > fdisk
free > free
hostname --fqdn > hostname
ifconfig > ifconfig
lsmod > lsmod
lspci > lspci
cat /proc/mounts > mount
netstat -tlpn > netstat
ps auxww > ps
rpm -qa > rpm-qa
rpm -Va > rpm-Va     #this command may take a while to run
ulimit -a > ulimit
uname -a > uname
uptime > uptime
cat /proc/meminfo > meminfo
cat /proc/cpuinfo > cpuinfo
mkdir etc
cd etc
cp /etc/fstab .
cp /etc/cluster/cluster.conf .
cp /etc/security/limits.conf .
cp /etc/redhat-release .
cp /etc/sysctl.conf .
cp /etc/modprobe.conf .
mkdir sysconfig/network-scripts -p
cd sysconfig
cp /etc/sysconfig/* . -R
cd $sos_dir
mkdir var/log -p
cp /var/log/* var/log -R
cd /tmp
tar -cvjf ${host}_hungsos.tar.bz2 $sos_dir

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com