Import updates from NetOS
This commit is contained in:
parent
0a841546d9
commit
afb62ead1b
@ -44,7 +44,7 @@ SCRIPT_NAME=$(basename $0)
|
|||||||
SRC=`echo $SCRIPT_NAME | sed -n s/multiping_//p`
|
SRC=`echo $SCRIPT_NAME | sed -n s/multiping_//p`
|
||||||
FPING=`which fping` || ( echo "fping required but not found"; exit 1)
|
FPING=`which fping` || ( echo "fping required but not found"; exit 1)
|
||||||
FSRC=`echo ${SRC} | sed 's/\./_/g'`
|
FSRC=`echo ${SRC} | sed 's/\./_/g'`
|
||||||
IPS=`ifconfig ${interface} | awk '/inet /{print $2}' | grep -Ev '^(10|192)\.'`
|
IPS=`ifconfig ${interface} | grep -v tunnel | awk '/inet /{print $2}' | grep -Ev '^(10|192|127)\.'`
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
|
|
||||||
|
1
netirq_
1
netirq_
@ -88,6 +88,7 @@ BEGIN {
|
|||||||
|
|
||||||
/'${STAT_TYPE}'/ {
|
/'${STAT_TYPE}'/ {
|
||||||
split($1,name,":");
|
split($1,name,":");
|
||||||
|
gsub(/ /,"", $1);
|
||||||
print name[1]".label " $1;
|
print name[1]".label " $1;
|
||||||
print name[1]".type DERIVE";
|
print name[1]".type DERIVE";
|
||||||
print name[1]".min 0";
|
print name[1]".min 0";
|
||||||
|
2
netisr_
2
netisr_
@ -58,7 +58,7 @@ if [ $# -lt 1 ]; then
|
|||||||
|
|
||||||
elif [ "$1" == "suggest" ]; then
|
elif [ "$1" == "suggest" ]; then
|
||||||
|
|
||||||
awk '/---/{print $1}' ${STATFILE}
|
awk '/--$/{print $1}' ${STATFILE}
|
||||||
|
|
||||||
elif [ "$1" == "autoconf" ]; then
|
elif [ "$1" == "autoconf" ]; then
|
||||||
${NETSTAT} -Q >/dev/null 2>&1 && echo yes || echo no
|
${NETSTAT} -Q >/dev/null 2>&1 && echo yes || echo no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user