http://netdisco.org/
Kurulum:
root:~# apt-get install libdbd-pg-perl libsnmp-perl libssl-dev libio-socket-ssl-perl build-essential postgresql postgresql-contrib
root:~# useradd -m -p x -s /bin/bash netdisco
root:~# su – postgres
postgres:~$ createuser -DRSP netdisco
Enter password for new role:
Enter it again:
postgres:~$ createdb -O netdisco netdisco
su - netdisco
curl -L https://cpanmin.us/ | perl – –notest –local-lib ~/perl5 App::Netdisco
mkdir ~/bin
ln -s ~/perl5/bin/{localenv,netdisco-*} ~/bin/
mkdir ~/environments
nano ~/environments/deployment.yml (İçeriği bir aşağıda)
chmod 600 ~/environments/deployment.yml
deployment.yml:
database:
name: 'netdisco'
user: 'netdisco'
pass: 'sifre'
safe_password_store: true
snmp_auth:
- tag: 'default_1'
community: 'edebali'
read: true
write: true
- tag: 'default_2'
community: 'public'
read: true
write: true
schedule:
discoverall:
when: '5 1,7,13,19 * * *'
macwalk:
when: '35 1,7,13,19 * * *'
arpwalk:
when: '45 1,7,13,19 * * *'
nbtwalk:
when: '55 1,7,13,19 * * *'
expire:
when: '15 23 * * *'
dns:
max_outstanding: 50
workers:
tasks: 'AUTO * 5'
~/bin/netdisco-deploy
~/bin/netdisco-web start
~/bin/netdisco-backend start
Şeklinde kurulum bitiyor.
~/bin/netdisco-do -D discover -d ip_blogu
şeklinde de discover edebiliyoruz.
Taranacak cihazı discover edebilmek için o cihazda;
snmp-server host netdisco_server_ip community "snmpcommunitystring"
Güncelleme :
Software Version
App::Netdisco 2.39.33 e çıkarılması (2.39.28 eski versiyonu)
# upgrade Netdisco
~/bin/localenv cpanm –notest App::Netdisco
ln -sf ~/perl5/bin/{localenv,netdisco-*} ~/bin/
# apply database schema updates, update MIBs and Vendor MACs
~/bin/netdisco-deploy
# restart web service (if you run it)
~/bin/netdisco-web restart
# restart the backend workers (wherever you run them)
~/bin/netdisco-backend restart
sonrasında web üzerinden database işlemleri için phppgadmin kurulumu
apt install phppgadmin
You don’t have permission to access /phppgadmin/ on this server.
Solution:
sudo vi /etc/apache2/conf-enabled/phppgadmin.conf
remove “Require local”, and restart apache2
İşletim Sistemi (Linux 16.04.05 lts to 18.04) ve İleri Güncelleme (2.39.33 to 2.41.0) :
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove
sudo apt-get install update-manager-core
sudo nano /etc/update-manager/release-upgrades (Confirm that the Prompt is equal lts)
sudo do-release-upgrade -d (herşeye yes :p)
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-19-generic x86_64)
Netdisco için Güncelleme adımları uygulanmıştır.
Netdisco’nun ağı taraması ve scan işlemlerini hafta içi her saatte tekrarlaması için yapılan değişiklikler:
Eski deployment.yml:
schedule:
discoverall:
when: '5 1,7,13,19 * * *'
macwalk:
when: '35 1,7,13,19 * * *'
arpwalk:
when: '45 1,7,13,19 * * *'
nbtwalk:
when: '55 1,7,13,19 * * *'
expire:
when: '15 23 * * *'
Yeni deployment.yml:
schedule:
discoverall:
when:
min: 1
hour: '*/1'
wday: 'mon-fri'
macwalk:
when:
min: 25
hour: '*/1'
wday: 'mon-fri'