snmp di ubuntu

hmm…kemarin install snmpd di ubuntu, tp ga bisa di akses dari luar…cuma localhost saja. ee

ini caranya biar snmp bisa di akses dari luar network kita.

asumsi snmpd sudah terinstall.

tp bagi yg belom terinstall, bisa di mengikuti langkah berikut.

adi@adi:~$sudo apt-get install snmpd

Edit file /etc/snmp/snmpd.conf dengan editor kesayangan, bisa pake vi atau pico.

$sudo vi /etc/snmp/snmpd.conf

Menjadi seperti ini

# sec.name source community

#com2sec paranoid defaut public

#com2sec readonly default public

#com2sec readwrite default private

com2sec readonly default public

com2sec readonly xxx.xxx.xxx.xxx/xx public << “ganti pake ip network atau pake 0.0.0.0/0 jika ingin di akses dari mana saja”

####

# Second, map the security names into group names:

# sec.model sec.name

group MyROSystem v1 paranoid

group MyROSystem v2c paranoid

group MyROSystem usm paranoid

group MyROGroup v1 readonly

group MyROGroup v2c readonly

group MyROGroup usm readonly

group MyRWGroup v1 readwrite

group MyRWGroup v2c readwrite

group MyRWGroup usm readwrite

####

####

# Third, create a view for us to let the groups have rights to:

# incl/excl subtree mask

view all included .1 80

view system included .iso.org.dod.internet.mgmt.mib-2.system

####

# Finally, grant the 2 groups access to the 1 view with different

# write permissions:

# context sec.model sec.level match read write notif

access MyROSystem “” any noauth exact system none none

access MyROGroup “” any noauth exact all none none

access MyRWGroup “” any noauth exact all all none

# —————————————————————————–

setelah snmpd terinstall, masuk ke direktori “/etc/default”

$cd /etc/default/

nah…setelah itu edit file snmpd

$sudo vi snmpd

cari baris berikut :

# snmpd options (use syslog, close stdin/out/err).

SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid localhost’

localhost di ganti dengan 0.0.0.0

Restart snmp

$sudo /etc/init.d/snmpd restart

tada…snmp sudah bisa di akses dari luar. onion

untuk membuktikan, coba akses dari jaringan luar dengan perintah (dari kompi linux pastinya…) “snmpwalk -v 1 -c public xxx.xxx.xxx.xxx” << alamat ip.

jika ada respon, brarti snmp siap di gunakan.

onion

Posted in IT. 2 Comments »

2 Responses to “snmp di ubuntu”

  1. anonymous Says:

    keren gan..

  2. I Lost T h i r t y P o u n d s in Thirty Days Says:

    Hi, cool post. I have been wondering about this issue,so thanks for posting. I’ll certainly be subscribing to your posts. Keep up the good posts


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

%d bloggers like this: