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

Advertisements

The path to certification

Over the last few years I have made the transition at the company I work for, from Support Engineer to Network Engineer. In between this I became a Managed Services Engineer dealing with the configuration, installation and maintenance of Cisco 1800 series routers.  During this time I decided I would use the knowledge gained in my day job to go on the certification trail. 4 months later I gained my CCNA accreditation and a thirst to obtain more understanding in networking in general.

Continue reading

fun with bi-directional forwarding (BFD)

So I was tasked to provide a failover mechanism for a customer with Juniper equipment without using OSPF.

With the L2 providers we use there is always a link from the CPE to the provider equipment and then it breaks out to their backbone.  Now, this means that there could be a break in the provider network and the customer CPE would still see the link as up.  We would then be blindly forwarding traffic into a black hole. Continue reading

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