一 SOC系统log抓取
1-重命名标志文件
mv /external_drive/force_marks /external_drive/force_marks1
sync
2-在U盘中创建SOC_LOG目录
mkdir /external_drive/SOC_LOG
3-获取某一个进程的slog信息
#lcd_display 为进程名
slog2info -b lcd_display >/external_drive/SOC_LOG/lcd_display.txt
4-获取hmi进程的slog信息
File=/apps/kanzi/*.exe
name=$(basename $File .exe)
slog2info -b $name.exe >/external_drive/SOC_LOG/$name.txt
5-将整个data日志拷贝到U盘
cp -rf /data /external_drive/SOC_LOG/
6-查看当前的进程详情
ps -a >/external_drive/SOC_LOG/ps.txt
7-查看重要的文件系统目录及文件信息
ls / >/external_drive/SOC_LOG/file-system.txt
ls -l /tmp >/external_drive/SOC_LOG/tmp.txt
ls -l /sec >/external_drive/SOC_LOG/sec.txt
sync
8-退出
exit 0