Tracing on Juniper – Explained

Another way to monitor what is happening to your Juniper router is to use the Tracing.

Tracing is similar to debugging if you come from the Cisco world. What tracing does, it shows us directly and live what is happening on our Juniper router. Of course, tracing takes load on the Juniper hardware resources, so you should use it with caution, and you should trace one thing at a time.

In in the previous lesson, I gave you the example of the broken leg to make the topic easier to be understood, I will use the same example also here 😊

With tracing, it is like someone got a broken leg and he went to the doctor who directly put him under the surgery and looked directly what is broken on his leg then fixed it. Same on the trace, you see what is happening directly on the Juniper router then you can take an immediate action to fix it.

As the syslog, tracing are stored in /var/log directory. You can also send them to a server if you want.

Let’s apply a LAB now to see how tracing works.

I will do tracing on OSPF even though that I don’t have OSPF protocol enabled on my router. If you do not know what OSPF protocol is, it is a dynamic routing protocol that you can use to allow the router to dynamically learn routes from other routers that have OSPF protocol enabled on them. Don’t worry about it, just OSPF is here to show you how tracing works.

root@Juniper# edit protocols ospf

[edit protocols ospf]

root@Juniper# set ?

Possible completions:

+ apply-groups         Groups from which to inherit configuration data

+ apply-groups-except  Don’t inherit configuration data from these groups

> area                 Configure an OSPF area

> backup-spf-options   Configure options for backup SPF

> database-protection  Configure database protection attributes

disable              Disable OSPF

+ export               Export policy

external-preference  Preference of external routes

> graceful-restart     Configure graceful restart attributes

+ import               Import policy (for external routes or setting priority)

no-nssa-abr          Disable full NSSA functionality at ABR

no-rfc-1583          Disable RFC1583 compatibility

> overload             Set the overload mode (repel transit traffic)

preference           Preference of internal routes

prefix-export-limit  Maximum number of prefixes that can be exported

reference-bandwidth  Bandwidth for calculating metric defaults

rib-group            Routing table group for importing OSPF routes

> spf-options          Configure options for SPF

> topology             Topology parameters

> traceoptions         Trace options for OSPF

> traffic-engineering  Configure traffic engineering attributes

Apologies, the Full Lesson Access is Only for Members....


Get Access to all Lessons from different Vendors


Affordable Price to Enhance your IT Skills!


Always Accessing all Lessons including the New Added Ones

100% Satisfaction Guaranteed!

You can cancel your membership at anytime.
No Questions Asked Whatsover!

Course Content


Submit a Comment

Your email address will not be published. Required fields are marked *