Re: AW: 147% Interface load

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Wed, 5 Mar 1997 03:13:21 +0100

Jochen Wiedmann <wiedmann@neckar-alb.de> said:

Jochen> I modified the calculating part of monitor.tcl as follows:

[snip]

Jochen> To my surprise this gave the following output:

Jochen> Not so full duplex: BRI0:1
Jochen> Not so full duplex: BRI0:2
Jochen> [ deleted ]
Jochen> Not so full duplex: BRI7
Jochen> Not so full duplex: BRI6
Jochen> Full duplex: Ethernet1
Jochen> Full duplex: Ethernet0

Jochen> For now I inverted the "if" part. Any further ideas, why the
Jochen> code is broken? (I didn't modify anything in the sources.)

This is indeed a stupid bug. Below is the fix that will be in the next
version. Thanks for reporting this problem.
Juergen

*** tnm/library/monitor.tcl.orig Tue Aug 27 09:36:30 1996
--- tnm/library/monitor.tcl Wed Mar 5 03:06:01 1997
***************
*** 243,249 ****
set cx(ifDescr) [lindex [lindex $vbl 4] 2]
set cx(ifType) [lindex [lindex $vbl 5] 2]
set cx(ifOperStatus) [lindex [lindex $vbl 6] 2]
! set cx(fullduplex) [expr [lsearch $fullDuplex $cx(ifType)] < 0]

set j [job create -command TnmGetIfLoad -interval $ms]
if {$iterations != ""} {
--- 243,249 ----
set cx(ifDescr) [lindex [lindex $vbl 4] 2]
set cx(ifType) [lindex [lindex $vbl 5] 2]
set cx(ifOperStatus) [lindex [lindex $vbl 6] 2]
! set cx(fullduplex) [expr [lsearch $fullDuplex $cx(ifType)] >= 0]

set j [job create -command TnmGetIfLoad -interval $ms]
if {$iterations != ""} {

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.