From: Steve Hess (shess@wheatonma.edu)
Date: Mon Aug 11 2003 - 10:58:00 CDT
I figured out how to fix the problem. There is a line in admin.cgi in the
subnet_overview function.
foreach $SUBNET(sort { $a <=> $b } keys %LOCS ) {
By removing the { $a <=> $b } from the statement I was able to get the
subnets to display properly. Anyone know what this extra piece does/ is
supposed to do to the sort statement?
Steve
At 03:17 PM 8/8/2003 -0400, you wrote:
>Hi Steve,
>
>The syntax of your subnets is missing a parameter. There are four
>parameters:
>
>10.16.32.0/24:Home Network:50:192.168.0.0/24: (OR)
>
>192.168.0.0/24:Home Network:50::
>
>To fix your problem, add a ":" to the end of your subnet lines. FYI: The 4th
>parameter is for an unregistered subnet. If your registered and unregistered
>subnet is the same, you do not need to list the unregistered subnet as the
>4th parameter. However, you do need to add extra ":" to the end of your
>subnet line so it reflects a missing 4th parameter.
>
>-- Patrick
>
>
>-----Original Message-----
>From: owner-netreg@southwestern.edu [mailto:owner-netreg@southwestern.edu]
>On Behalf Of Steve Hess
>Sent: Friday, August 08, 2003 1:34 PM
>To: netreg@southwestern.edu
>Subject: NetReg: Admin.cgi Display
>
>
>I'm seeing a weird behavior from admin.cgi when displaying the Subnet
>Overview. Subnets are displayed in no particular order. Changing the CIDR
>notation of a subnet in the Subnet.dat file can change where they subnet
>gets displayed in the Subnet Overview. I'm running the latest version of
>the Netreg software with the CIDR files installed.
>
>Format of subnet.dat
>
>10.10.10.0/24:Building Name:200:
>10.10.11.0/24:Building Name2:200:
>
>If I change the CIDR notation the Subnet can move so it appears as though
>it's sorting on the entire string (ie 10.10.10.0/24 as opposed to
>10.10.10.0).
>
>Is this behavior normal?
>
>
>
>Steve
>
>
>
>
>---------------------------------------------------------------
>Steve Hess
>Network/Telecommunications Technician
>Wheaton College
>Phone: (508) 286-3404
>Fax: (508) 286-8270
>---------------------------------------------------------------
>
>
>**********************************************************************
>To unsubscribe from this list, send an e-mail message to
>majordomo@southwestern.edu containing a single line with the words:
>unsubscribe netreg Send requests for assistance to:
>owner-netreg@southwestern.edu
>**********************************************************************
>
>**********************************************************************
>To unsubscribe from this list, send an e-mail message to
>majordomo@southwestern.edu containing a single line with the words:
>unsubscribe netreg
>Send requests for assistance to: owner-netreg@southwestern.edu
>**********************************************************************
**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************
This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:40 CDT