IOS XR and the egrep function

As you may have already realised I am always looking for ways to speed up my day to day tasks.

Every few days I check my BGP peering to see if there are any sessions down and then give the peers the obligatory nudge to reset a session.

Normally I run ‘ show bgp sum | i Active’ or Idle/Open which gives me a list of peers that are not in an ‘established’ state.  This means running a seperate command for each Active/Idle/Open session.

Thats far too much like hard work so i started to see what other option were available after the |  .  One of them is utility egrep! So, after 7 mins of trying to run commands and finally realising I have to escape the | i have came up with the below:-

show bgp summary | utility egrep ‘Idle| Active| Open’

Hope it helps you save some time!

 

Nick

Juniper as-path-expand with bgp communities

With working in an ISP enviroment I always find myself trying to automate or create process for others to follow so I don’t have to do the work 😉

I recently started to look at BGP communities and to see how I can apply them in day to day life.  One of the applications that would make my life easier the bigger we grow is putting the onus onto the bgp transit customer to affect how we advertise/announce them to our upstreams, peers and customers. Continue reading