This file is indexed.

/usr/share/netdisco/html/stats.html is in netdisco-frontend 1.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<h1 class="pagehead">Netdisco Statistics</h1>
<UL>
    <LI><% $device_count %> devices with <% $device_port_count %> interfaces
        using <% $device_count + $device_ip_count %> IPs
    <LI><% $device_links %> layer 2 links between devices.
    <LI><% $node_count %> nodes in <% $node_table_count %> entries. 
    <LI><% $ip_count %> IPs in <% $ip_table_count %> entries.
</UL>
<P>
Statistics took <%$time9 - $time1 %> seconds to process.
<!-- 
<% $time2-$time1 %>
<% $time3-$time2 %>
<% $time4-$time3 %>
<% $time5-$time4 %>
<% $time6-$time5 %>
<% $time7-$time6 %>
<% $time8-$time7 %>
<% $time9-$time8 %>
-->
<h1 class="pagehead">Glossary</h1>
<UL>
    <LI><B>Devices</B> - Switch, Router, ...
    <LI><B>Device Interface</B> - Port
    <LI><B>Node</B> - MAC Address.  Something connected to the network.  Server, Printer, ...
    <LI><B>Node Entry</B> - Mapping between a MAC Address and a Switch Port.
        <BR>From MAC Forwarding table in Layer 2 devices.
    <LI><B>IP Entry</B> - Mapping between an IP and a MAC Address.
        <BR>From ARP Cache Entries in Layer 3 devices.
</UL>
<& SELF:about_box &>
<%init>
    $m->flush_buffer();
    my $time1 = time;
    my $device_count = sql_scalar('device',['COUNT(*)']);
    my $time2 = time;
    my $device_port_count = sql_scalar('device_port',['COUNT(*)']);
    my $time3 = time;
    my $device_ip_count = sql_scalar('device_ip',['COUNT(alias)']);
    my $time4 = time;
    my $node_count = sql_scalar('node',['COUNT(DISTINCT(mac))']);
    my $time5 = time;
    my $node_table_count = sql_scalar('node',['COUNT(*)']);
    my $time6 = time;
    my $ip_count = sql_scalar('node_ip',['COUNT(DISTINCT(ip))']);
    my $time7 = time;
    my $ip_table_count = sql_scalar('node_ip',['COUNT(ip)']);
    my $time8 = time;
    my $device_links  = sql_scalar('device_port',['COUNT(*)'],{'remote_ip' => 'is not null'});
    my $time9 = time;
</%init>
<%method about_box>
% my $pg_ver = sql_scalar('device',['version()']);
<h1 class="pagehead">About Netdisco</h1>
<TABLE BORDER=0 CLASS="box">
<TR>
    <TD ROWSPAN=7>&nbsp;</TD>
    <TD><B><A HREF="http://netdisco.org">Netdisco</A> Version</B>:</TD>
    <TD><B><%$netdisco::VERSION%></B></TD>
    <TD ROWSPAN=7>&nbsp;</TD>
</TR>
<TR>
    <TD><A HREF="http://www.perl.org">Perl</A> Version:</TD>
    <TD><% join('.',map(ord,split(//,($^V)))) %> (<%$]%>)</TD>
</TR>
<TR>
    <TD VALIGN=TOP><A HREF="http://www.postgresql.org">Postgres</A> Version:</TD>
    <TD><%$pg_ver |h%><BR>
        DBI <%$DBI::VERSION |h%>  DBD::Pg <%$DBD::Pg::VERSION |h%>
    </TD>
</TR>
<TR>
    <TD><A HREF="http://httpd.apache.org">Apache</A> Info:</TD>
    <TD><%$ENV{SERVER_SOFTWARE}%></TD>
</TR>
<TR>
    <TD><A HREF="http://perl.apache.org">mod_perl</A> Version:</TD>
    <TD><%$mod_perl::VERSION%></TD>
</TR>
<TR>
    <TD><A HREF="http://www.masonhq.com">Mason</A>:</TD>
    <TD>
        <A HREF="http://www.masonhq.com"><IMG SRC="<%$path%>/powered_by_mason.jpg" WIDTH=88 HEIGHT=31 STYLE="border: none;" ALT="Powered by Mason"></A>
        Version <%$HTML::Mason::VERSION%></TD>
</TR>
<TR>
    <TD><A HREF="http://zvtm.sourceforge.net/zgrviewer/applet">ZGRViewer</A>:</TD>
    <TD>Verison 0.8.2 Interactive GraphViz .svg Viewer used for Network Map. Author: Emmanuel Pietriga</TD>
</TR>
</TABLE>
<%init>
my $path   = $netdisco::CONFIG{webpath};
</%init>
</%method>
<%method title>
- About Netdisco \
</%method>
%# $Id: stats.html,v 1.12 2009/06/02 22:33:22 maxbaker Exp $
%# vim:syntax=mason