리눅스 재부팅 테스트

linux reboot check
리눅스 재부팅 테스트
리눅스 재부팅 점검

1 개요[ | ]

재부팅 전후 다음 4가지 변동 있는지 점검(변동 없으면 정상)

  • 열린 포트/프로세스
  • 마운트 상태
  • IP 할당 상태
  • route 상태

2 재부팅 전[ | ]

mkdir /root/mylog/
cd /root/mylog/

cat /etc/fstab > fstab1.txt
df -P -h | awk '{print $1"\t"$2"\t"$6}' > df1.txt
ifconfig | egrep "(Link encap:|inet )" > ifconfig1.txt
route > route1.txt
sysv-rc-conf --list || chkconfig --list > chkconfig1.txt
netstat -tnl > netstat1.txt

3 재부팅[ | ]

shutdown -r now

4 재부팅 후[ | ]

cd /root/mylog/

cat /etc/fstab > fstab2.txt
df -P -h | awk '{print $1"\t"$2"\t"$6}' > df2.txt
ifconfig | egrep "(Link encap:|inet )" > ifconfig2.txt
route > route2.txt
sysv-rc-conf --list || chkconfig --list > chkconfig2.txt
netstat -tnl > netstat2.txt

diff fstab1.txt fstab2.txt | egrep "^(<|>)" 
diff df1.txt df2.txt | egrep "^(<|>)" 
diff ifconfig1.txt ifconfig2.txt | egrep "^(<|>)" 
diff route1.txt route2.txt | egrep "^(<|>)" 
diff chkconfig1.txt chkconfig2.txt | egrep "^(<|>)" 
diff netstat1.txt netstat2.txt | egrep "^(<|>)"

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}