CIsco | Event Syslog (Embedded Event Manager)
1.Event Syslog
EEM adalah sebuah teknologi cisco yang memunkginkan perangakt akan menjalankan perintah script secara otomatis ketika ada event tertentu.
hostname R1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
no shut
!
interface Ethernet0/0
no shut
ip address 12.12.12.1 255.255.255.252
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
network 1.1.1.1 0.0.0.0 area 0
!
-------------------
hostname R2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
no shut
!
interface Ethernet0/0
no shut
ip address 12.12.12.2 255.255.255.252
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
network 2.2.2.2 0.0.0.0 area 0
!
---LALU KETIK PERINTAH EVENT SYSLOG INI DI R1--
event manager applet INTERFACE_DOWN
event syslog pattern "Interface Ethernet0/0, changed state to down"
!
action 1.0 cli command "enable"
action 2.0 cli command "conf term"
action 3.0 cli command "Interface eth0/0"
action 4.0 cli command "no shut"
--LALU TEST VERIFIKASI di R1, KETIK:
debug event manager action cli
int eth0/0
no shut
--mamati apa yg terjadi, apstikan Ketika port eth0/0 shutdown, hitungand etik dia akan Kembali UP
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
no shut
!
interface Ethernet0/0
no shut
ip address 12.12.12.1 255.255.255.252
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
network 1.1.1.1 0.0.0.0 area 0
!
-------------------
hostname R2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
no shut
!
interface Ethernet0/0
no shut
ip address 12.12.12.2 255.255.255.252
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
network 2.2.2.2 0.0.0.0 area 0
!
---LALU KETIK PERINTAH EVENT SYSLOG INI DI R1--
event manager applet INTERFACE_DOWN
event syslog pattern "Interface Ethernet0/0, changed state to down"
!
action 1.0 cli command "enable"
action 2.0 cli command "conf term"
action 3.0 cli command "Interface eth0/0"
action 4.0 cli command "no shut"
--LALU TEST VERIFIKASI di R1, KETIK:
debug event manager action cli
int eth0/0
no shut
--mamati apa yg terjadi, apstikan Ketika port eth0/0 shutdown, hitungand etik dia akan Kembali UP
Posting Komentar untuk "CIsco | Event Syslog (Embedded Event Manager)"