Hirdetés

Keresés

Új hozzászólás Aktív témák

  • Cyber_Bird

    senior tag

    válasz Cyber_Bird #10677 üzenetére

    Hogy raduplazzak magamra:

    Ezt hoztam ossze, de ha van szebb megoldas, azt azert szivesen latom :)

    conf t

    ip sla 1
    icmp-echo 10.72.1.2 source-ip 10.72.1.1
    frequency 5
    ip sla schedule 1 life forever start-time now

    ip sla 2
    icmp-echo 10.72.2.2 source-ip 10.72.2.1
    frequency 5
    ip sla schedule 2 life forever start-time now



    track 1 ip sla 1
    !
    track 2 ip sla 2
    !
    track 100 list boolean and
    object 1
    object 2
    delay down 5 up 60

    event manager environment interface1_to_shut GigabitEthernet4/1
    event manager environment interface2_to_shut GigabitEthernet8/31

    event manager applet shut_both_interface
    event syslog pattern "TRACKING-5-STATE: 100 .*Up->Down"
    action 0 cli command "enable"
    action 1 cli command "conf t"
    action 2 cli command "interface $interface2_to_shut"
    action 4 cli command "shut"
    action 5 cli command "interface $interface1_to_shut"
    action 6 cli command "shut"
    action 7 cli command "end"
    action 8 syslog priority errors msg "Multicast redundancy lost; shutting down $interface1_to_shut and $interface2_to_shut to failover to other devices"

    Sajnos ez a 12.2-es train nem tudja EEM-bol az object tracinget azert kell a syslogot trackelni, bar az mar szinte mindegy is...

Új hozzászólás Aktív témák