init
This commit is contained in:
16
root/ptp/get_rrd.sh
Executable file
16
root/ptp/get_rrd.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
PAT=/scripts/root/ptp
|
||||
cd $PAT
|
||||
CWD=`pwd`
|
||||
|
||||
V=`cat /var/log/ptpd/status1 | grep Offset | grep -oP "([0-9-.]*)"`
|
||||
R=`echo "$V * 1000000" | bc`
|
||||
echo "V: $V
|
||||
R: $R"
|
||||
rrdtool update $PAT/offset.rrd N:$R > /dev/null 2>&1
|
||||
|
||||
#V=`cat /var/log/ptpd/status1 | grep "One-way" | grep -oP "([0-9.]*)"`
|
||||
#R=`echo "$V * 1000000" | bc`
|
||||
#echo "V: $V
|
||||
#R: $R"
|
||||
#rrdtool update $PAT/delay.rrd N:$R
|
||||
Reference in New Issue
Block a user