Assalamualaikum Wr.Wb
Oke untuk kali ini kita akan ngulik syslog. Sylog itu apa sih? oke,jika kalian masih blom tau tentang syslog mungkin kalian pernah melakukan konfigurasi pada perangkat switch/router.
Syslog.
*Aug 1 10:23:18.903: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Nah mungkin dengan komen diatas jika kalian sudah tidak asing lagi ketikan melakukan aktivitas pada perangkat switch/router sering menemui komen tersebut..nah komen tersebut merupakan syslog.
Oke mungkin masih ada yang bingung maksud dari komen tersebtu itu apa?..mari kita bedah satu per satu
Timestaps : Aug 1 10:23:18.903
Facility : %LINEPROTO
Severity level : 5
Mnemonic : UPDOWN
Description : Line protocol on Interface FastEthernet0/0, changed state to up
Selain itu pada severity sebenarnya sampe level 7,akan tetapi yang bisa dibacaa itu sampe level 5..jika level nya makin merendah atau sampe pada titik 0 itu perangkat sudah dalam kondisi darurat/parah.
Seleverity level
0.Emergecy
1.Alert
2.Critical
3.Error
4.Warning
5.Notice
6.Informational
7.Debug
berikut adalah syntax untuk melihat level severity.
R1(config)#logging console ?
<0-7> Logging severity level
alerts Immediate action needed (severity=1)
critical Critical conditions (severity=2)
debugging Debugging messages (severity=7)
discriminator Establish MD-Console association
emergencies System is unusable (severity=0)
errors Error conditions (severity=3)
filtered Enable filtered logging
guaranteed Guarantee console messages
informational Informational messages (severity=6)
notifications Normal but significant conditions (severity=5)
warnings Warning conditions (severity=4)
xml Enable logging in XML
<cr>
<0-7> Logging severity level
alerts Immediate action needed (severity=1)
critical Critical conditions (severity=2)
debugging Debugging messages (severity=7)
discriminator Establish MD-Console association
emergencies System is unusable (severity=0)
errors Error conditions (severity=3)
filtered Enable filtered logging
guaranteed Guarantee console messages
informational Informational messages (severity=6)
notifications Normal but significant conditions (severity=5)
warnings Warning conditions (severity=4)
xml Enable logging in XML
<cr>
Oke sekarang kita akan lab kan syslog nya,disini lab nya kita gunakan packet traacer.
topologi.
setelah itu setting ip address pada kedua perangkat.
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 10.10.10.1 255.255.255.0
Router(config-if)#no sh
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 10.10.10.1 255.255.255.0
Router(config-if)#no sh
setting ip pada server.
R1(config)#logging 10.10.10.2
R1(config)#logging trap debugging
R1(config)#logging on
R1(config)#exit
R1(config)#logging trap debugging
R1(config)#logging on
R1(config)#exit
setelah itu kita lakukan ping,dan shutdown interface nya kemudian no shutdown lagi.
Router(config)#do ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/1/7 ms
Router(config)#int fa0/0
Router(config-if)#sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/1/7 ms
Router(config)#int fa0/0
Router(config-if)#sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
terakhir kita cek pada server nya apkaah pesan syslog nya sudah bisa dibaca atau blom..
gambar.1.2
Terlihat pada server aktivitas yang tadi kita lakukan terbaca pada server nya.karena sudah terbaca aktivitas nya maka artikel kali ini sampai disini dulu semoga bermanfaat..terimkasih
0 komentar:
Posting Komentar