Hi, all!
Have a nice day to you!
This topic describes how to check the camera for packet loss.
1. Deploy script on VCN platform
#!/bin/bash
while [ true ]; do
ping 3.4.60.47 -c 1 | awk '{print $0"\t" strftime("%Y-%B-%d %H:%M:%S",systime())}' >> /opt/ping.log
sleep 1
done2. Steps:
Step1:Change the IP address of script ping.sh to the error camera IP.
Step2: Update ping.sh to the server /root/
Step3: Input command: chmod +x /root/ping.sh
Step4: Running the scrip, input command: nohup /root/ping.sh &
Step5: When the problem happened, script will record result to /opt/ping.log
Step6: Stop the scrip input command: PID=$(ps -ef|grep ping.sh | grep -v grep | awk '{print $2}') kill -9 $PID
Thanks!
