Merge branch 'master' into og-pluggable-daemon
This commit is contained in:
@@ -165,7 +165,9 @@ take care of all this for you:
|
||||
|
||||
~/bin/netdisco-deploy
|
||||
|
||||
If this is a new installation of Netdisco 2, answer yes to all questions.
|
||||
If this is a new installation of Netdisco 2, answer yes to all questions. If
|
||||
you wish to deploy without Internet access, see the
|
||||
L<Deployment|App::Netdisco::Manual::Deployment> documentation.
|
||||
|
||||
=head1 Startup
|
||||
|
||||
|
||||
@@ -28,6 +28,32 @@ the database service):
|
||||
# TYPE DATABASE USER ADDRESS METHOD
|
||||
host all all 127.0.0.1/32 md5
|
||||
|
||||
=head1 Deploy without Internet access
|
||||
|
||||
The C<netdisco-deploy> script asks for Internet access but it is possible to
|
||||
install off-line. You should download the following two files:
|
||||
|
||||
=over 4
|
||||
|
||||
=item *
|
||||
|
||||
http://standards.ieee.org/develop/regauth/oui/oui.txt
|
||||
|
||||
=item *
|
||||
|
||||
http://downloads.sourceforge.net/project/netdisco/netdisco-mibs/latest-snapshot/netdisco-mibs-snapshot.tar.gz
|
||||
|
||||
=back
|
||||
|
||||
Run the C<netdisco-deploy> script but pass the OUI file name as a parameter on
|
||||
the command line:
|
||||
|
||||
~/bin/netdisco-deploy ./oui.txt
|
||||
|
||||
Then answer yes to questions, even though you're not connected to the
|
||||
Internet. For the MIBs you can simply extract the downloaded archive to the
|
||||
home directory of Netdisco.
|
||||
|
||||
=head1 Relocating the Installation
|
||||
|
||||
The installation process installs Netdisco self-contained to your home
|
||||
@@ -110,6 +136,18 @@ You are instead recommended to run C<netdisco-web> behind a reverse proxy as
|
||||
described elsewhere in this document. Apache can easily act as an SSL reverse
|
||||
proxy.
|
||||
|
||||
=head1 Debug Tricks
|
||||
|
||||
You can see what HTTP Headers are received by Netdisco, and other information
|
||||
such as how it's parsing the config file, by enabling the Dancer debug plugin.
|
||||
First download the plugin:
|
||||
|
||||
~/bin/localenv cpanm --notest Dancer::Debug
|
||||
|
||||
Then run the web daemon with the environment variable to enable the feature:
|
||||
|
||||
DANCER_DEBUG=1 ~/bin/netdisco-web restart
|
||||
|
||||
=head1 Further Reading...
|
||||
|
||||
Other ways to run and host the web application can be found in the
|
||||
|
||||
@@ -16,19 +16,19 @@ register_report(
|
||||
|
||||
get '/ajax/content/report/vlaninventory' => require_login sub {
|
||||
my $set = schema('netdisco')->resultset('DeviceVlan')->search(
|
||||
{ 'vlan.description' => { '!=', 'NULL' } },
|
||||
{ 'me.description' => { '!=', 'NULL' } },
|
||||
{ join => { 'ports' => 'vlan' },
|
||||
select => [
|
||||
'vlan.vlan',
|
||||
'vlan.description',
|
||||
'me.vlan',
|
||||
'me.description',
|
||||
{ count => { distinct => 'ports.ip' } },
|
||||
{ count => 'ports.vlan' }
|
||||
],
|
||||
as => [qw/ vlan description dcount pcount /],
|
||||
group_by => [qw/ vlan.vlan vlan.description /],
|
||||
group_by => [qw/ me.vlan me.description /],
|
||||
}
|
||||
);
|
||||
return unless $set->count;
|
||||
return unless $set->has_rows;
|
||||
|
||||
if ( request->is_ajax ) {
|
||||
template 'ajax/report/vlaninventory.tt', { results => $set, },
|
||||
|
||||
Reference in New Issue
Block a user