yum -y install perl-core perl-DBD-Pg net-snmp-perl net-snmp-devel make automake gcc

useradd netdisco

yum  -y install postgresql-server
service postgresql initdb; service postgresql start; chkconfig postgresql on

su - postgres
createuser -DRSP netdisco
createdb -O netdisco netdisco

su - netdisco
curl -L http://cpanmin.us/ | perl - --notest --local-lib ~/perl5 App::Netdisco

mkdir ~/bin
ln -s ~/perl5/bin/{localenv,netdisco-*} ~/bin/

~/bin/netdisco-daemon status

mkdir ~/environments
cp ~/perl5/lib/perl5/auto/share/dist/App-Netdisco/environments/deployment.yml ~/environments
chmod 600 ~/environments/deployment.yml
vi ~/environments/deployment.yml

change the database connection parameters to match those for your local system (that is, the name, user and pass).

In the same file uncomment and edit the domain_suffix setting to be appropriate for your local site.

Change the community string setting if your site has different values, and uncomment the schedule setting to enable SNMP data gathering from devices (this replaces cron jobs in Netdisco 1).

Have a quick read of the other settings to make sure you're happy, then move on.


copy oui.txt and netdisco-mibs-snapshot.tar.gz to netdisco directory

~/bin/netdisco-deploy ./oui.txt

Then answer yes to questions

For the MIBs you can simply extract the downloaded archive to the home directory of Netdisco, and change the name of the directory to netdisco-mibs.



~/bin/netdisco-web start
~/bin/netdisco-daemon start

http://ip:5000

run as netdisco user:
bin/netdisco-web get_init_file > netdisco-web
bin/netdisco-daemon get_init_file > netdisco-daemon

run as root user:
mv /home/netdisco/netdisco-web /etc/init.d/
mv /home/netdisco/netdisco-daemon /etc/init.d/
chown root:root /etc/init.d/netdisco-*
chmod 755 /etc/init.d/netdisco-*
chkconfig --add netdisco-web
chkconfig --add netdisco-daemon


Command-Line Device and Port Actions

Most significant Device jobs and Port actions, as well as several troubleshooting and housekeeping duties, can be performed at the command-ling with the netdisco-do program. For example:

~/bin/netdisco-do -D discover -d 192.0.2.1

See the netdisco-do documentation for further details.


refer: https://metacpan.org/pod/App::Netdisco