[c-nsp] Jitter measurments using SAA
Aldo Valente
aldo.valente at gmx.de
Thu Feb 24 03:53:21 EST 2005
Thanks to Jeff for your mail at 25.1.2005 for your MRTG Template for Jitter
SAA. I noticed that you had the same OID for Neg Max Jitter and Pos Max
Jitter. The following could lead to a corrected version. Works for me.
Aldo
#!/bin/sh
COMMUNITY=public
[ "$2" ] && COMMUNITY=$2
IPADDRESS=$1
DEVICE=$1
CFGNAME=$1-SAA-RTR
[ $1 ] || exit 1
SAMPLE=`snmpwalk -v 2c -c $COMMUNITY $1 .1.3.6.1.4.1.9.9.42.1.5.2.1.1.1 |
cut -f2 -d =|cut -f2 -d:`||
exit 1
#echo $SAMPLE
[ "$SAMPLE" -gt 0 ] 2>/dev/null || exit 1
cat <<EOT
# SAA RTT
Target[$CFGNAME]:
.1.3.6.1.4.1.9.9.42.1.5.2.1.2.1&.1.3.6.1.4.1.9.9.42.1.5.2.1.2.1:$COMMUNITY@$1:::::2
/
.1.3.6.1.4.1.9.9.42.1.5.2.1.1.1&.1.3.6.1.4.1.9.9.42.1.5.2.1.1.1:$COMMUNITY@$1:::::2
Maxbytes[$CFGNAME]: 10000
Title[$CFGNAME]: SAA RTT for $1
PageTop[$CFGNAME]: <H1>Medium SAA RTT for $1 at $SAMPLE Samples </H1>
ShortLegend[$CFGNAME]: ms
YLegend[$CFGNAME]: miliseconds
Legend1[$CFGNAME]: Latest RTT
Legend2[$CFGNAME]: Latest RTT
LegendI[$CFGNAME]: RTT:
LegendO[$CFGNAME]: RTT:
Options[$CFGNAME]: growright, gauge, nopercent
Directory[$CFGNAME]: $DEVICE
EOT
CFGNAME=$1-SAA-maxmin
cat <<EOT
# SAA RTT
Target[$CFGNAME]:
.1.3.6.1.4.1.9.9.42.1.5.2.1.4.1&.1.3.6.1.4.1.9.9.42.1.5.2.1.5.1:$COMMUNITY@$1:::::2
Maxbytes[$CFGNAME]: 10000
Title[$CFGNAME]: SAA RTT Min and Max for $1
PageTop[$CFGNAME]: <H1>Min and Max SAA RTT for $1 at $SAMPLE Samples </H1>
ShortLegend[$CFGNAME]: ms
YLegend[$CFGNAME]: miliseconds
Legend1[$CFGNAME]: Min RTT
Legend2[$CFGNAME]: Max RTT
LegendI[$CFGNAME]: Min:
LegendO[$CFGNAME]: Max:
Options[$CFGNAME]: growright, gauge, nopercent
Directory[$CFGNAME]: $DEVICE
EOT
CFGNAME=$1-SAA-pktloss
cat <<EOT
# SAA Packet loss
Target[$CFGNAME]:
.1.3.6.1.4.1.9.9.42.1.5.2.1.26.1&.1.3.6.1.4.1.9.9.42.1.5.2.1.27.1:$COMMUNITY@$1:::::2
Maxbytes[$CFGNAME]: 10000
Title[$CFGNAME]: SAA Packet loss for $1
PageTop[$CFGNAME]: <H1>SAA Packet loss for $1</H1>
ShortLegend[$CFGNAME]: pkts
YLegend[$CFGNAME]: Packets
Legend1[$CFGNAME]: Packet loss SD
Legend2[$CFGNAME]: Packet loss DS
LegendI[$CFGNAME]: SD:
LegendO[$CFGNAME]: DS:
Options[$CFGNAME]: growright, gauge
Directory[$CFGNAME]: $DEVICE
EOT
CFGNAME=$1-SAA-pos-jitter
cat <<EOT
# SAA POS JITTER
Target[$CFGNAME]:
.1.3.6.1.4.1.9.9.42.1.5.2.1.7.1&.1.3.6.1.4.1.9.9.42.1.5.2.1.17.1:$COMMUNITY@$1:::::2
Maxbytes[$CFGNAME]: 10000
Title[$CFGNAME]: SAA MAX Positive jitter
PageTop[$CFGNAME]: <H1>SAA MAX Positive jitter for $1 (increasing latency)
from $SAMPLE Samples</H1>
ShortLegend[$CFGNAME]: ms
YLegend[$CFGNAME]: miliseconds
Legend1[$CFGNAME]: MAX Positive jitter SD
Legend2[$CFGNAME]: MAX Positive jitter DS
LegendI[$CFGNAME]: SD:
LegendO[$CFGNAME]: DS:
Options[$CFGNAME]: growright, gauge, nopercent
Directory[$CFGNAME]: $DEVICE
EOT
CFGNAME=$1-SAA-neg-jitter
cat <<EOT
# SAA NEG JITTER
Target[$CFGNAME]:
.1.3.6.1.4.1.9.9.42.1.5.2.1.12.1&.1.3.6.1.4.1.9.9.42.1.5.2.1.22.1:$COMMUNITY@$1:::::2
Maxbytes[$CFGNAME]: 10000
Title[$CFGNAME]: SAA MAX Negative jitter
PageTop[$CFGNAME]: <H1>SAA MAX Negative jitter for $1 (decreasing latency)
from $SAMPLE samples</H1>
ShortLegend[$CFGNAME]: ms
YLegend[$CFGNAME]: miliseconds
Legend1[$CFGNAME]: MAX Negative jitter SD
Legend2[$CFGNAME]: MAX Negative jitter DS
LegendI[$CFGNAME]: SD:
LegendO[$CFGNAME]: DS:
Options[$CFGNAME]: growright, gauge, nopercent
Directory[$CFGNAME]: $DEVICE
EOT
# ThreshMinI[$CFGNAME]: $THRESHOLDMIN
# ThreshMaxI[$CFGNAME]: $THRESHOLDMAX
# ThreshProgI[$CFGNAME]: BATCHLOCthreshold_in.bat
# ThreshProgOKI[$CFGNAME]: BATCHLOCthreshold_oki.bat
# ThreshMinO[$CFGNAME]: $THRESHOLDMIN
# ThreshMaxO[$CFGNAME]: $THRESHOLDMAX
# ThreshProgO[$CFGNAME]: BATCHLOCthreshold_out.bat
# ThreshProgOKO[$CFGNAME]: BATCHLOCthreshold_oko.bat
--
Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
More information about the cisco-nsp
mailing list