MediaTrace, similar to traceroute, reports relevent network information relating to specific applications running in the trace path.
The code used in this tutorial is available in the MediaTraceTutorial.py file located under <SDK Location>/python/tutorials/python-tutorials/mediatrace/MediaTraceTutorial.py.
- These steps assume the application can connect properly to a network element. Please see the Connecting to a Network Element tutorial for information on how to make the initial connection.
- To configure the network element to run the MediaTrace tutorial, you must can first enable the VTY Service Set and let the tutorial configure the rest or configure it yourself.
router(config)# onep
router(config-onep)# service set vty
OR +----- router(config)# mediatrace responder router(config)# mediatrace initiator source-ip 10.10.10.110 router(config-onep)# service set mediatrace +-----
First, create the PathSpecifier object.
%(snippet|id=mediatrace_path_specifier|file=mediatrace/MediaTraceTutorial.py}
%(snippet|id=mediatrace_initiate|file=mediatrace/MediaTraceTutorial.py}