验证新疆:
- 登录新疆承载网浮动IP
[xujq@WLWJFX59 ~]$ ba=ssh
#密码:j0
[xujq@WLWJFX59 ~]$ $ba mcb4traniot@10.254.127.57
#检查是否可以成功登录 10.254.127.57 这台主机,从 B 机切到 A 机后是否正常登录,并且用户名是否是 XPCS991A 磁盘存在
[XPCS991A::/opt/cbbs/pcsiot]ll
total 217680
drwxrwxr-x 5 mcb4traniot mcb 4096 Dec 20 16:09 bin
drwxrwxr-x 7 mcb4traniot mcb 4096 Dec 20 17:27 config
drwxrwxr-x 5 mcb4traniot mcb 4096 Sep 16 15:26 data
drwxrwxr-x 3 mcb4traniot mcb 4096 Sep 16 15:29 index
drwxrwxr-x 6 mcb4traniot mcb 20480 Jul 2 11:15 lib
drwxrwxr-x 5 mcb4traniot mcb 4096 Dec 20 18:00 log
drwxrwxr-x 3 mcb4traniot mcb 4096 Oct 9 15:45 oradiag_mcb4traniot
drwxr-x--- 6 mcb4traniot mcb 4096 Oct 13 2020 python38
-rw-r----- 1 mcb4traniot mcb 222842880 Dec 20 15:53 python38.tar
drwxrwxr-x 4 mcb4traniot mcb 4096 Oct 15 09:21 scripts
drwxrwxr-x 3 mcb4traniot mcb 4096 Sep 16 15:34 section
drwxrwxr-x 3 mcb4traniot mcb 4096 Sep 16 15:35 stat
<font color='red'>注意:</font>图片内容只是演示
- 检查进程是否自动拉起
[XPCS991A::/opt/cbbs/pcsiot]app_status.pl
[XPCS991A::/opt/cbbs/pcsiot]ps -ef | grep xfer | grep iot
[XPCS991A::/opt/cbbs/pcsiot]ps -ef | grep getstat | grep iot
mcb4tra+ 263402 1 0 Oct15 ? 00:05:32 /usr/bin/perl ./getstat_iot.pl -run
<font color='red'>注意:</font>图片内容只是演示
- 检查进程日志是否正常
[XPCS991A::/opt/cbbs/pcsiot]cd /opt/cbbs/pcsiot/log/xfer_pcs
[XPCS991A::/opt/cbbs/pcsiot/log/xfer_pcs]ls -ltr
<font color='red'>注意:</font>图片内容只是演示
#查看时间为最新的文件,其中 Downloading 为 succeeded、Backuping 为 succeeded、Renaming 为 succeeded 和 Deleting 为 succeed 则为成功,注意 Backuping 可能没有
[XPCS991A::/opt/cbbs/pcsiot/log/xfer_pcs]tailf 最新文件
- 检查 get_stat 进程日志是否正常
[XPCS991A::/opt/cbbs/pcsiot/log/xfer_pcs]cd /opt/cbbs/pcsiot/scripts/get_stat_dn/log
[XPCS991A::/opt/cbbs/pcsiot/scripts/get_stat_dn/log]ls -ltr
<font color='red'>注意:</font>图片内容只是演示
#查看时间为最新的文件,查看文件里的时间是否是最新的时间
[XPCS991A::/opt/cbbs/pcsiot/log/xfer_pcs]cat 最新的日志文件
<font color='red'>注意:</font>图片内容只是演示
- 检查 rise 进程是否存在
[XPCS991A::/opt/cbbs/pcsiot/scripts/get_stat_dn/log]ps -ef | grep rise
- 如果 rise 进程存在则不需要执行这一步,若 rise 进程不存在则需要手动启动 rise 进程
[XPCS991A::/opt/cbbs/pcsiot/scripts/get_stat_dn/log]nohup /opt/cbbs/pcsiot/bin/python3 /opt/cbbs/pcsiot/config/pyforini/getfile/risefile.py >>/dev/null &
[XPCS991A::/opt/cbbs/pcsiot/scripts/get_stat_dn/log]ps -ef | grep rise
<font color='red'>注意:</font>图片内容只是演示
验证内蒙古:
- 登录内蒙古承载网浮动IP
[xujq@WLWJFX59 ~]$ ba=ssh
#密码:j0
[xujq@WLWJFX59 ~]$ $ba mcb4traniot@10.254.119.65
#检查是否可以成功登录 10.254.119.65 这台主机,从 D 机切到 C 机后是否正常登录,并且用户名是否是 XPCS471C 磁盘存在
[XPCS471C::/opt/cbbs/pcsiot]ll
total 217680
drwxrwxr-x 5 mcb4traniot mcb 4096 Dec 20 16:09 bin
drwxrwxr-x 7 mcb4traniot mcb 4096 Dec 20 17:27 config
drwxrwxr-x 5 mcb4traniot mcb 4096 Sep 16 15:26 data
drwxrwxr-x 3 mcb4traniot mcb 4096 Sep 16 15:29 index
drwxrwxr-x 6 mcb4traniot mcb 20480 Jul 2 11:15 lib
drwxrwxr-x 5 mcb4traniot mcb 4096 Dec 20 18:00 log
drwxrwxr-x 3 mcb4traniot mcb 4096 Oct 9 15:45 oradiag_mcb4traniot
drwxr-x--- 6 mcb4traniot mcb 4096 Oct 13 2020 python38
-rw-r----- 1 mcb4traniot mcb 222842880 Dec 20 15:53 python38.tar
drwxrwxr-x 4 mcb4traniot mcb 4096 Oct 15 09:21 scripts
drwxrwxr-x 3 mcb4traniot mcb 4096 Sep 16 15:34 section
drwxrwxr-x 3 mcb4traniot mcb 4096 Sep 16 15:35 stat
<font color='red'>注意:</font>图片内容只是演示
- 检查进程是否自动拉起
[XPCS471C::/opt/cbbs/pcsiot]app_status.pl
[XPCS471C::/opt/cbbs/pcsiot]ps -ef | grep xfer | grep iot
[XPCS471C::/opt/cbbs/pcsiot]ps -ef | grep getstat | grep iot
mcb4tra+ 263402 1 0 Oct15 ? 00:05:32 /usr/bin/perl ./getstat_iot.pl -run
<font color='red'>注意:</font>图片内容只是演示
- 检查进程日志是否正常
[XPCS471C::/opt/cbbs/pcsiot]cd /opt/cbbs/pcsiot/log/xfer_pcs
[XPCS471C::/opt/cbbs/pcsiot/log/xfer_pcs]ls -ltr
<font color='red'>注意:</font>图片内容只是演示
#查看时间为最新的文件,其中 Downloading 为 succeeded、Backuping 为 succeeded、Renaming 为 succeeded 和 Deleting 为 succeed 则为成功,注意 Backuping 可能没有
[XPCS471C::/opt/cbbs/pcsiot/log/xfer_pcs]tailf 最新文件
- 检查 get_stat 进程日志是否正常
[XPCS471C::/opt/cbbs/pcsiot/log/xfer_pcs]cd /opt/cbbs/pcsiot/scripts/get_stat_dn/log
[XPCS471C::/opt/cbbs/pcsiot/scripts/get_stat_dn/log]ls -ltr
<font color='red'>注意:</font>图片内容只是演示
#查看时间为最新的文件,查看文件里的时间是否是最新的时间
[XPCS471C::/opt/cbbs/pcsiot/log/xfer_pcs]cat 最新的日志文件
<font color='red'>注意:</font>图片内容只是演示
- 检查 rise 进程是否存在
[XPCS471C::/opt/cbbs/pcsiot/scripts/get_stat_dn/log]ps -ef | grep rise
- 如果 rise 进程存在则不需要执行这一步,若 rise 进程不存在则需要手动启动 rise 进程
[XPCS471C::/opt/cbbs/pcsiot/scripts/get_stat_dn/log]nohup /opt/cbbs/pcsiot/bin/python3 /opt/cbbs/pcsiot/config/pyforini/getfile/risefile.py >>/dev/null &
[XPCS471C::/opt/cbbs/pcsiot/scripts/get_stat_dn/log]ps -ef | grep rise
<font color='red'>注意:</font>图片内容只是演示