Community discussions

MUM Europe 2020

Search found 10 matches

by FearlessRabbitt
Fri Aug 10, 2012 10:13 am
Forum: Forwarding Protocols
Topic: BGP route failover is too slow. Any way around this?
Replies: 6
Views: 1984

Re: BGP route failover is too slow. Any way around this?

Thank you for your comments guys, I will look more into it asap!
by FearlessRabbitt
Thu Aug 09, 2012 3:01 pm
Forum: Forwarding Protocols
Topic: BGP route failover is too slow. Any way around this?
Replies: 6
Views: 1984

Re: BGP route failover is too slow. Any way around this?

Thank you for your reply, highly appreciated. Any resource I can learn more about its practical values? I`d rather skip wiki-style general material.
by FearlessRabbitt
Thu Aug 09, 2012 12:57 pm
Forum: Forwarding Protocols
Topic: BGP route failover is too slow. Any way around this?
Replies: 6
Views: 1984

BGP route failover is too slow. Any way around this?

Hi all, I have two BGP sessions connecting my RB1200 to two ISP providers. There are two default static routes with same metrics, pointing to two different ISP gateways. Now, instantaneous route failover in case one ISP is down would be easy if I didnt have BGP enabled. Considering I do, BGP takes c...
by FearlessRabbitt
Wed Aug 08, 2012 6:46 pm
Forum: Scripting
Topic: Email me if BGP session status in NOT established
Replies: 19
Views: 7472

Re: Email me if BGP session status in NOT established

And after whole day of playing around, I got the winner! Here it is if someone else needs it:

:if ([/routing bgp peer get [find name=mina] state] != "established") do={ -- send email --}

Basically I was using find name="mina", and it wouldnt work with quotation signs :? Who knew :D
by FearlessRabbitt
Wed Aug 08, 2012 4:43 pm
Forum: Scripting
Topic: Email me if BGP session status in NOT established
Replies: 19
Views: 7472

Re: Email me if BGP session status in NOT established

Tried manually entering the code directly into the command line, and got the syntax error at "=". Second run was without "=", and received no such item message. Any clue? :-|
by FearlessRabbitt
Wed Aug 08, 2012 3:14 pm
Forum: Scripting
Topic: Email me if BGP session status in NOT established
Replies: 19
Views: 7472

Re: Email me if BGP session status in NOT established

This might be a stupid question: I just copy and paste the code into the Script menu (attached)?
by FearlessRabbitt
Wed Aug 08, 2012 2:38 pm
Forum: Scripting
Topic: Email me if BGP session status in NOT established
Replies: 19
Views: 7472

Re: Email me if BGP session status in NOT established

add scheduled script :if ([/routing bgp peer get [find name="xxx"] state] != "established") do={ .. send email here...} Thank you for your reply! Highly appreciated! In System / Script menu I created a new script consisted of: :if ([/routing bgp peer get [find name="mina"] state] != "established") ...
by FearlessRabbitt
Wed Aug 08, 2012 2:16 pm
Forum: Scripting
Topic: Email me if BGP session status in NOT established
Replies: 19
Views: 7472

Re: Email me if BGP session status in NOT established

Trying to edit some similar script I found on the forums, wonder if I`m close? :global bgpest ; :global bgpest "established"; :local bgpstate [/routing bgp peer get [find where state=established]]; :if ($ bgpest != $ bgpstate ) do={     /tool e-mail send from=mikrotikDV@portomontenegro.com server=91...
by FearlessRabbitt
Wed Aug 08, 2012 1:07 pm
Forum: Scripting
Topic: Email me if BGP session status in NOT established
Replies: 19
Views: 7472

Re: Email me if BGP session status in NOT established

What I know so far: Command I need is /routing bgp peer print status . The output is something like this: name="tcom" instance=default remote-address=213.149.123.81 remote-as=29453 tcp-md5-key="" nexthop-choice=default multihop=no route-reflect=no hold-time=3m ttl=default in-filter="" out-filter=t-c...
by FearlessRabbitt
Tue Aug 07, 2012 1:49 pm
Forum: Scripting
Topic: Email me if BGP session status in NOT established
Replies: 19
Views: 7472

Email me if BGP session status in NOT established

Hi guys, I`d like to create a script which would email me if BGP session is NOT established. This is the only BGP state I`m interested in. I currently have basic Netwatch configured to email me if ISP gateway is not reachable, but this is not enough. Could you point me in right direction on how to c...