Netdisco Statistics
- <% $device_count %> devices with <% $device_port_count %> interfaces
using <% $device_count + $device_ip_count %> IPs
- <% $device_links %> layer 2 links between devices.
- <% $node_count %> nodes in <% $node_table_count %> entries.
- <% $ip_count %> IPs in <% $ip_table_count %> entries.
Statistics took <%$time9 - $time1 %> seconds to process.
Glossary
- Devices - Switch, Router, ...
- Device Interface - Port
- Node - MAC Address. Something connected to the network. Server, Printer, ...
- Node Entry - Mapping between a MAC Address and a Switch Port.
From MAC Forwarding table in Layer 2 devices.
- IP Entry - Mapping between an IP and a MAC Address.
From ARP Cache Entries in Layer 3 devices.
<& 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()']);
About Netdisco
|
Netdisco Version: |
<%$netdisco::VERSION%> |
|
Perl Version: |
<% join('.',map(ord,split(//,($^V)))) %> (<%$]%>) |
Postgres Version: |
<%$pg_ver |h%>
DBI <%$DBI::VERSION |h%> DBD::Pg <%$DBD::Pg::VERSION |h%>
|
Apache Info: |
<%$ENV{SERVER_SOFTWARE}%> |
mod_perl Version: |
<%$mod_perl::VERSION%> |
Mason: |
Version <%$HTML::Mason::VERSION%> |
ZGRViewer: |
Verison 0.8.2 Interactive GraphViz .svg Viewer used for Network Map. Author: Emmanuel Pietriga |
<%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