Skip to content

Belajar Mengkonfigurasi SNMP di JunOS

-------------------------------------------------------------------
!              Belajar Mengkonfigurasi SNMP di JunOS              !
-------------------------------------------------------------------
!Yang merupakan mandatory adalah konfigurasi berikut, perintah    !
!ini membuat router sebagai SNMP Server/Agent                     !
-------------------------------------------------------------------           
[edit snmp]
iwing@toiletumum# set community iwingtea authorization read-only 
-------------------------------------------------------------------
!Konfigurasi selanjutnya merupakan konfigurasi tambahan, perintah-!
!perintah ini mensetting informasi mengenai deskripsi, lokasi dan !
!kontak dari router                                               !
-------------------------------------------------------------------
[edit snmp]
iwing@toiletumum# set description "Juniper@Toiletumum"
iwing@toiletumum# set location Cimindi 
iwing@toiletumum# set contact iwing 
-------------------------------------------------------------------
!Perintah selanjutnya membatasi client mana yang bisa mengakses   !
!SNMP Server/Agent                                                !
-------------------------------------------------------------------
[edit snmp]
iwing@toiletumum# set community iwingtea clients 192.168.10.2       
iwing@toiletumum# set interface fxp0.0 
-------------------------------------------------------------------
!Pengecekan 1                                                     !
-------------------------------------------------------------------
[edit snmp]
iwing@toiletumum# show 
description "Juniper@Toiletumum";
location Cimindi;
contact iwing;
interface fxp0.0;
community iwingtea {
    authorization read-only;
    clients {
        192.168.10.2/32;
    }
}
traceoptions {
   flag pdu;
}
health-monitor {
    interval 300;
    rising-threshold 80;
    falling-threshold 70;
}

[edit snmp]
iwing@toiletumum# 
-------------------------------------------------------------------
!Pengecekan 2 (run show snmp mib walk system)                     !
-------------------------------------------------------------------
[edit snmp]
iwing@toiletumum# run show snmp mib walk system    
sysDescr.0    = Juniper@Toiletumum
sysObjectID.0 = jnxProductNameM40
sysUpTime.0   = 61817
sysContact.0  = iwing
sysName.0     = toiletumum
sysLocation.0 = Cimindi
sysServices.0 = 4

[edit snmp]
iwing@toiletumum#
-------------------------------------------------------------------
!Pengecekan 3 (run show snmp statistics)                          !
-------------------------------------------------------------------
[edit snmp]
iwing@toiletumum# run show snmp statistics       
SNMP statistics:
 Input:
 Packets: 4036, Bad versions: 0, Bad community names: 0,
 Bad community uses: 0, ASN parse errors: 0,
 Too bigs: 0, No such names: 0, Bad values: 0,
 Read onlys: 0, General errors: 0,
 Total request varbinds: 4400, Total set varbinds: 0,
 Get requests: 88, Get nexts: 3928, Set requests: 0,
 Get responses: 0, Traps: 0,
 Silent drops: 0, Proxy drops: 0, Commit pending drops: 0,
 Throttle drops: 0, Duplicate request drops: 0
 V3 Input:
 Unknown security models: 0, Invalid messages: 0
 Unknown pdu handlers: 0, Unavailable contexts: 0
 Unknown contexts: 0, Unsupported security levels: 0
 Not in time windows: 0, Unknown user names: 0
 Unknown engine ids: 0, Wrong digests: 0, Decryption errors: 0
 Output:
 Packets: 4036, Too bigs: 0, No such names: 0,
 Bad values: 0, General errors: 0,
 Get requests: 0, Get nexts: 0, Set requests: 0,
 Get responses: 4036, Traps: 0

[edit snmp]
iwing@toiletumum# 
-------------------------------------------------------------------
!Kalau mengkonfigurasi melalui Jweb                               !
-------------------------------------------------------------------
[a]. Masuk ke Router

[b]. Pilih Configuration, lalu Klik SNMP

[c]. Isi SNMP Community Information

[d]. Isi SNMP Identification
 ok,save lalu commit


-------------------------------------------------------------------
!Konfigurasi di SNMP Client/Manager (cacti)                       !
-------------------------------------------------------------------
[a].Create devices

[b].Add

[c].Isi Parameter-parameter berikut:
 Descrition     : Juniper@Toiletumum
 Hostname       : 192.168.10.1
 Host Template  : Generic SNMP-enabled Host
 Downed Device Detection : SNMP
 SNMP Version   : Version 2
 SNMP Community : iwingtea
 Biarkan parameter yang lainya terisi default
 Kemudian Save
[d].Kalau konfigurasi tidak ada masalah maka akan muncul SNMP 
 Information dari Server/Agent
 
 Lalu klik Create Graphs for this Host
[e].Plih interface yang akan dibuat graphs nya
 Pada kasus saya, saya memilih interface fxp0.0 (192.168.10.2)

[f].Kalau tidak ada masalah maka akan muncul tampilan
 + Created graph: Juniper@Toiletumum - Traffic - fxp0.0

[g].Klik graph yang baru kita buat

[h].

[i].Dan Hasilnya adalah sebagai berikut :

-------------------------------------------------------------------
!Hasil Capture-an Wireshark                                       !
-------------------------------------------------------------------

SNMP uses UDP port 161
The JunOs software support SNMP version 1,2c, and 3
No comments yet

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: