ComExt 점검 목록
설치 상태 점검
-
실행파일 SHA 확인
-
데이터 파일 SHA 확인
| 파일명 | #3,MDB-P | #3,MDB-S | #4,MDB-P | #4,MDB-S |
|---|---|---|---|---|
com_ext.ini |
☐ 956753… |
☐ ca7c2e… |
☐ 3960b2… |
☐ 1b72e1… |
ip_mac.csv |
☐ 3f2b96… |
☐ de89b8… |
☐ dcf279… |
☐ d4377d… |
node_db_ver.csv |
☐ ad3bdb… |
☐ b30aee… |
☐ 36ad40… |
☐ d9c4eb… |
node_ip.csv |
☐ c6eaf9… |
☐ c28cbb… |
☐ 94b264… |
☐ 24d870… |
-
bin 폴더 파일구성 확인
-
crontab 설정 확인
로그 확인
-
알려진 로그 메시지외 WARN, ERROR 등 존재 여부 확인 (있으면 별지에 이슈 기록)
| 로그파일 | #3,P | #3,S | #4,P | #4,S | 로그파일 | #3,P | #3,S | #4,P | #4,S |
|---|---|---|---|---|---|---|---|---|---|
RecvMon.log |
RecvResponse.log |
||||||||
RecvSoe.log |
RecvStatus.log |
||||||||
ScComExt.log |
SendAlarm.log |
||||||||
SendIpsStatus.log |
SendPrv.log |
||||||||
SendSoftControl.log |
SendTagging.log |
-
지난 날짜의 로그 존재 확인 (설치 후 자정이 지나야 확인 가능)
점검 방법
실행파일 SHA 확인
-
runtime계정에서 ~/com_ext 폴더로 이동후 SHA 체커 실행
-
OK 표시 확인
cd ~/com_ext ~/run/cmd/engineer_SetCyber/Sha256Check.py JS*SHA*.txt
데이터 파일 SHA 확인
-
com_ext/env 폴더에서 데이터 파일의 sha256 확인
-
처음 6글자를 미리 준비한 표와 일치하는지 확인
$ cd ~/com_ext/env $ sha256sum * 95675399184629da6e3a298bfbcab243a99ba569da2147f8baf360e062261bf1 com_ext.ini 3f2b962820b5d525e0cd3bfd360a397ad3fb373a0078d84fbaffac577f611dc3 ip_mac.csv ad3bdbb7f9752ee89353f101e10217ef6ddc42dffbeea8c5da97d17df28fa199 node_db_ver.csv c6eaf9625cb5cc271003055a1f1fcc3ca5bec61df846d587a2da2ac54381f06c node_ip.csv
bin 폴더 파일구성 확인
-
com_ext/bin 폴더의 파일 권한 설정을 조회
-
ScComExt 의 권한 설정이 -rwsr-xr-x, root, root 인지 확인
-
나머지는 모두 -rwxr-xr-x, runtime, runtime 인지 확인
cd ~/com_ext/bin ls -l ..... -rwxr-xr-x 1 runtime runtime 439624 Oct 27 2020 RecvStatus -rwsr-xr-x 1 root root 447288 Oct 27 2020 ScComExt .....
crontab 설정 확인
-
crontab -l 명령어로 crontab 설정 확인
$ crontab -l ..... 0 0 * * * /usr/sbin/logrotate -s com_ext/log/logrotate.status -f com_ext/tool/com_ext_log >> com_ext/log/logrotate.out 2>&1 1 0 * * * sh com_ext/tool/com_ext_log.sh >> com_ext/log/com_ext_log.out 2>&1
모니터링 데이터 수신 상태 확인
-
ComExtStatus로 모니터링 패킷 수신 여부 확인
$ cd ~/com_ext/bin $ ./ComExtStatus | ../tool/node_str | grep Ok ( 정상 통신 조회 ) $ ./ComExtStatus | ../tool/node_str | grep Bad ( 비정상 통신 조회 )
Status 데이터 수신 상태 확인
-
ComExtStatus의 -s 옵션을 사용하여 Status 패킷 수신 여부 확인
$ cd ~/com_ext/bin $ ./ComExtStatus -s | ../tool/node_str | grep Ok ( 정상 통신 조회 ) $ ./ComExtStatus -s | ../tool/node_str | grep Bad ( 비정상 통신 조회 )
알려진 로그 메시지외 WARN, ERROR 등 존재 여부 확인
-
다음 모든 로그 파일들에 대해 확인.
-
ScComExt.log
-
RecvMon.log, RecvResponse.log, RecvSoe.log, RecvStatus.log
-
SendAlarm.log, SendSoftControl.log, SendTagging.log
-
-
반복적으로 기록되고 있는 로그가 없는지 확인
-
WARN, ERROR 메시지가 없는지 확인. 있으면 별지에 이슈 기록
-
예외) SendPrv.log, SendTagging.log 에는 주기적으로 received 메시지가 저장됨 (초당 4회)