Lingkage program

Install snmp di freebsd

Posted on: August 18, 2007

Teori Singkat

SNMP (Simple Network Management Protocol) adalah protokol manajemen jaringan yang paling banyak digunakan pada jaringan berbasis TCP/IP. SNMP merupakan protokol standard industri yang digunakan untuk memonitor dan mengelola berbagai perangkat di jaringan Internet meliputi hub, router, switch, workstation dan sistem manajemen jaringan secara jarak jauh (remote).

Instalasi SNMP

office# cd /usr/local
office# wget http://andalasmedia.homeunix.org/~harinto/Source/ucd-snmp-4.2.6.tar.gz
office# tar -zxvf ucd-snmp-4.2.6.tar.gz
office# cd ucd-snmp-4.2.6
office# ./configure –prefix=/usr/local/snmp

System Contact Information (root@pdg.asiamaya.net): senthod@pdg.asiamaya.net
setting System Contact Information to… senthod@pdg.asiamaya.net
checking System Location…

*** System Location:

Describes the location of the system. This information is
available in the MIB-II tree. this can also be over-ridden using the
“syslocation” syntax in the agent’s configuration files.

System Location (Unknown): Traffict Monitoring Office

office# make
office# make install

office# cp EXAMPLE.conf /var/snmp.conf
office# ee /var/snmp.conf

Cari pada bagian seperti contoh di bawah ini :

####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):

# sec.name source community
com2sec local localhost COMMUNITY
com2sec mynetwork NETWORK/24 COMMUNITY

Sebagai contoh, saya mengganti NETWORK/24 seperti di bawah ini :

# sec.name source community
com2sec local localhost COMMUNITY
com2sec asianet 202.152.27.126/32 asianet

Bila sudah selesai pengeditan Anda, silahkan Anda simpan.

Sekarang kita jalankan SNMPnya :

office# /usr/local/snmp/sbin/snmpd
office# ps ax | grep snmpd
272 ?? I 0:00.07 /usr/local/snmp/sbin/snmpd
18316 p0 DL+ 0:00.00 grep snmp

Pastikan ini tidak ada error, silahkan Anda selalu ngecek dengan perintah “tail -f /var/log/messages”, setiap Anda melakukan pengeditan. Kemudian silahkan Testing SNMP-nya dengan perintah seperti dibawah ini :

office# /usr/local/snmp/bin/snmpwalk -v1 -c public localhost system

Hasilnya seperti dibawah ini, :

system.sysDescr.0 = FreeBSD office.pdg.asiamaya.net 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Wed Jul i386
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.unknown
system.sysUpTime.0 = Timeticks: (12301) 0:02:03.01
system.sysContact.0 = senthod@pdg.asiamaya.net.where
system.sysName.0 = office.pdg.asiamaya.net
system.sysLocation.0 = Traffict Monitoring Office

Bila sewaktu mentest dengan snmpwalk, muncul pesan host time out atau unkown host, silahkan Anda cek sekali lagi konfigurasi Anda. Bisa jadi waktu Configure SNMP-nya ada error atau setingan di /var/snmp.conf-nya belum benar. Selalu cek dengan “tail -f /var/log/messages” Smile

Biar setiap kali sistem restart, snmpnya langsung jalan, tambahkan aja di file startup-nya.

office# touch /etc/rc.local
office# ee /etc/rc.local

#Running SNMP
/usr/local/snmp/sbin/snmpd

Finish. Selamat Mencoba, Semoga Berhasil

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


  • Order Xtrasize: Hi there, all is going well here and ofcourse every one is sharing facts, that's in fact fine, keep up writing.
  • chatroulette: I am curious to find out what blog system you're using? I'm experiencing some small security issues with my latest site and I would like to find s
  • 3:00 AM: Hello! Do you know if they make any plugins to protect against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any suggest

Categories

%d bloggers like this: