[Orca-users] Missing ethernet interfaces - was Re: Strange graphs on Quad-ethernet card

jontankersleyatsabre at yahoo.com jontankersleyatsabre at yahoo.com
Mon Feb 19 09:24:23 PST 2001


It isn't pretty, but I've added this to our installation, watch the
wrapping that exists.....
I'm going to send this to Blair directly along with a disk type setup
to build additional plots for attached disks.  The existance of extra
plots that have no data to plot (no interface by that name) appears to
be not a problem.  With some extra smarts, only doing those interfaces
that actually exists instead of a blind add like this, the cfg file
would be smaller.


Eliminate the normal network interface stuff (not any customized)
Add
### INTERFACES ###
to the end of the script

Put this script and file in the same base directory as the cfg file:
makeint.sh
--------------
!/bin/sh
if [ -f $1 ]; then
  mv ${1} ${1}.bak
  ex ${1}.bak <<EOF >/dev/null 2>&1
1,/### INTERFACES ###/w ${1}
q
EOF
  for i in le0 le1 le2 le3; do
     cat int.cfg | /bin/sed -e "s/XXINTXX/${i}/g" >>${1}
  done
  for i in nf0 nf1 nf2 nf3; do
     cat int.cfg | /bin/sed -e "s/XXINTXX/${i}/g" >>${1}
  done
  for i in ge0 ge1 ge2 ge3; do
     cat int.cfg | /bin/sed -e "s/XXINTXX/${i}/g" >>${1}
  done
  for i in vge0 vge1 vge2 vge3; do
     cat int.cfg | /bin/sed -e "s/XXINTXX/${i}/g" >>${1}
  done
#  for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
  for i in qfe0 qfe1 qfe2 qfe3 qfe4 qfe5 qfe6 qfe7 qfe8 qfe9 qfe10; do
     cat int.cfg | /bin/sed -e "s/XXINTXX/${i}/g" >>${1}
  done
#  for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
  for i in hme0 hme1 hme2 hme3 hme4 hme5 hme6 hme7 hme8 hme9 hme10; do
     cat int.cfg | /bin/sed -e "s/XXINTXX/${i}/g" >>${1}
  done
#
# All interfaces...
#
#  for i in 'le(\\d+)' 'nf(\\d+)' 'ge(\\d+)' 'vge(\\d+)' 'qfe(\\d+)'
'hme(\\d+)'; do
#     abbr=`echo $i | /bin/sed -e "s/(.*)/-all/"`
#     cat int2.cfg | /bin/sed -e "s/XXINTXX/${i}/g" -e
"s/XXTEXTXX/${abbr}/g" >>${1}
#  done
fi
----------
int.cfg:
----------

plot {
title                  %g Interface Bits Per Second: XXINTXX
source                  orcallator
data                  1024 * 8 * XXINTXXInKB/s
data                  1024 * 8 * XXINTXXOuKB/s
line_type            area
line_type            line1
legend                  Input
legend                  Output
y_legend            Bits/s
data_min            0
data_max            100000000
href                 
http://www.gps.caltech.edu/~blair/orca/docs/orcallator.html#interface_
bits_per_second
}

plot {
title                  %g Interface Packets Per Second: XXINTXX
source                  orcallator
data                  XXINTXXIpkt/s
data                  XXINTXXOpkt/s
line_type            area
line_type            line1
legend                  Input
legend                  Output
y_legend            Packets/s
data_min            0
data_max            100000
flush_regexps            1
href                 
http://www.gps.caltech.edu/~blair/orca/docs/orcallator.html#interface_
packets_per_second
}

plot {
title                  %g Interface Errors Per Second: XXINTXX
source                  orcallator
data                  XXINTXXIErr/s
data                  XXINTXXOErr/s
line_type            area
line_type            line1
legend                  Input Errors
legend                  Output Errors
y_legend            Errors/s
data_min            0
flush_regexps            1
href                 
http://www.gps.caltech.edu/~blair/orca/docs/orcallator.html#interface_
errors_per_second
}

plot {
title                  %g Interface Nocanput Rate: XXINTXX
source                  orcallator
data                  XXINTXXNoCP/s
line_type            area
legend                  No Can Put
y_legend            Nocanput/s
data_min            0
flush_regexps            1
href                 
http://www.gps.caltech.edu/~blair/orca/docs/orcallator.html#interface_
nocanput_rate
}

plot {
title                  %g Interface Deferred Packet Rate: XXINTXX
source                  orcallator
data                  XXINTXXDefr/s
line_type            area
legend                  Deferred Packet
y_legend            Defers/s
data_min            0
flush_regexps            1
href                 
http://www.gps.caltech.edu/~blair/orca/docs/orcallator.html#interface_
deferred_packet_rate
}

plot {
title                  %g Interface Collisions: XXINTXX
source                  orcallator
data                  XXINTXXColl%
line_type            area
legend                  % Collisions
y_legend            Percent
data_min            0
data_max            200
flush_regexps            1
href                 
http://www.gps.caltech.edu/~blair/orca/docs/orcallator.html#interface_
collisions
}



More information about the Orca-users mailing list