Netdisco is a web-based network management tool
designed for network administrators.
Data is collected into a PostgreSQL database using SNMP.
Some of the things you can do with Netdisco:
Locate a machine on the network by MAC or IP
and show the switch port it lives at
Turn off a switch port, or change the VLAN or PoE status of a port
Inventory your network hardware by model, vendor, software
and operating system
Pretty pictures of your network
App::Netdisco provides a web frontend with built-in web server,
and a backend daemon to handle interactive requests
such as changing port or device properties.
to get Netdisco running, you just have to:
* edit /usr/local/etc/netdisco/environments/deployment.yml to suit your needs
(https://github.com/netdisco/netdisco/wiki/Configuration)
* edit rc.conf according to /usr/local/etc/rc.d/netdisco
* have a look at https://metacpan.org/pod/App::Netdisco
note that ~/environments is replaced here by /usr/local/etc/netdisco/environments
* launch netdisco-deploy *as user netdisco* to install/upgrade your database
su - netdisco -c "netdisco-deploy"
* copy (or link) /usr/local/etc/netdisco/netdiscologs.conf
to /usr/local/etc/newsyslog.conf.d/ to take care
of logs rotation
ln -s /usr/local/etc/netdisco/netdiscologs.conf /usr/local/etc/newsyslog.conf.d/netdiscologs.conf
Always use "su - netdisco" or "sudo -l -u netdisco" before running netdisco-do or
any netdisco-* command (because of locallib use)
If running with another user or missing HOME variable (eg: sudo without -l) you
need NETDISCO_HOME=/usr/local/etc/netdisco environment variable
Reason:
The netdisco user now needs a HOME and a shell.
For existing installs you will need to set
HOME to /usr/local/etc/netdisco and shell to /bin/sh.
For example in one shell line:
pw user mod netdisco -d /usr/local/etc/netdisco -s /bin/sh
Port Moves
port deleted on 2025-09-02 REASON: Has expired: Depends on expired security/p5-Data-Entropy via security/p5-Dancer-Plugin-Passphrase
net-mgmt/netdisco: Remove expired port
2025-09-01 net-mgmt/netdisco: Depends on expired security/p5-Data-Entropy via
security/p5-Dancer-Plugin-Passphrase
net-mgmt/netdisco: Update to 2.061001
While here, fix install instructions.
New features:
* ACLs portctl_no and portctl_only for limiting port control targets
* Config setting portctl_nowaps to prevent port control on WAP ports
* Feature to gather SNMP Walk, use as Pseudo Device, and Browse Objects
* Added SSHCollector::Platform::ASAContext
* new addpseudodevice worker action
* option to display vlan names instead of numbers in device ports
* renumber device option in the device details web page
* add option in device ports sidebar to hide vlan 1002-1005
* Group Cisco subinterfaces in Device Ports view (like LAG)
* add FortiOS SSH collector implementation from @jpvelders
(Only the first 15 lines of the commit message are shown above )
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
net-mgmt/netdisco: Update to 2.042005
* Pet portlint
Changelog since 2.040003:
[NEW FEATURES]
* Implementation of API authentication and Swagger-UI
* netdisco-sshcollector no longer required - the functionality (arpnip via
ssh) will be run within netdisco's core schedule
* get_credentials replaces get_community and accepts any device_auth stanza
in JSON format
* Store ifindex in Device Port Properties table
* New discover_waps and discover_phones boolean settings
(Only the first 15 lines of the commit message are shown above )
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
Make it so that the default Perl is always called perl5.
- Move Perl's man1 files along with its man3 files.
- Move where Perl installs its modules man1 pages.
- Convert the ports installing man1 pages.
- Make different Perl versions installable at the same time.
Though you should note that only the default version can be used to
install Perl modules, and the non default Perl versions cannot use the
modules installed via ports if they contain .so as they are installed
in a version specific directory.
Reviewed by: bapt (the Mk bits)
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3542
change command_interpreter from /usr/bin/perl to ${PREFIX}/bin/perl
Several ports had rc.d scripts with hardcoded command_interpreter string
as /usr/bin/perl. This symlink is not guaranteed to be in place, and it
isn't even an option for perl 5.20. For affected ports, the interpreter
was changed to localbase.
In one case, the interpreter was correct, but it wasn't surround by
quotes. Since the rc.d script would break if a space was contained in
${PREFIX}, quotes were added in that case.
Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:
site_perl : lib/perl5/site_perl/5.18
site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
perl_man3 : lib/perl5/5.18/man/man3
Now we have:
site_perl : lib/perl5/site_perl
site_arch : lib/perl5/site_perl/mach/5.18
perl_man3 : lib/perl5/site_perl/man/man3
Modules without any .so will be installed at the same place regardless of the
(Only the first 15 lines of the commit message are shown above )
Unbreak on Apache24 and overhaul net-mgmt/netdisco
PR: 193284
Submitted by: maintainer: dgeo (centrale-marseille.fr)
Overhaul: marino
There were numerous issues still existing even after provided patch
was applied. I ended up completely overhauling the port. It's been
tested with poudriere testport.
- Update to 1.2.
- Removed option to fetch oui.txt while building the port (let the user read
pkg-message).
PR: ports/177956
Submitted by: Geoffroy Desvernay <dgeo@centrale-marseille.fr> (maintainer)
- Change rc script, so netdisco is not run as root
- Fix group replacement in rc script
- Trim Makefile header
PR: ports/177632
Submitted by: maintainer
- Convert to new options framework [1]
- Fix build with new bsd.apache.mk by changing
to USE_APACHE_RUN, since this port has NO_BUILD
PR: ports/171284 [1]
Submitted by: Geoffroy Desvernay <dgeo@centrale-marseille.fr> (maintainer)
Approved by: eadler (mentor)
- Missed ../Makefile update for new port newdisc-mibs
- Updated netdisco to 1.1
- Updated netdisco to use netdisco-mibs instead of INDEX killer !=
- Pass maintainership to submitter (via private email)
- Update to use Apache 20+ instead of 13+
PR: ports/164955
Submitted by: Geoffroy Desvernay <dgeo@centrale-marseille.fr> (maintainer)
Approved by: gabor (mentor, implicit)
Feature safe: yes
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
- change required APACHE version from 13+ to 20+
(prepare to remove www/apache13)
- no PORTREVISION bump since apache22 is the default
with hat apache@
mod_perl2 was updated, this changes are needet to prevent
dependency loops
- fix mod_perl/mod_perl2 dependency
- p5-Apache-Reload is now included in mod_perl2
- make usage of CPAN author macro
- bump portrevision
commit with hat apache@
Change dependency on old p5-Compress-Zlib, p5-IO-Compress-Base,
p5-IO-Compress-Zlib and p5-IO-Compress-Bzip2 modules to p5-IO-Compress.
Explicitly depend on p5-IO-Compress only if PERL_LEVEL < 500903
Bump PORTREVISION
Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).
PR: ports/124340
Submitted by: edwin@
Approved by: portmgr (pav)