August 2018
Intermediate to advanced
466 pages
10h 23m
English
We can use Python to parse the NetFlow datagram being transported on the wire. This gives us a way to look at the NetFlow packet in detail as well as troubleshoot any NetFlow issues when it is not working as expected.
First, let's generate some traffic between the client and server across the VIRL network. We can use the built-in HTTP server module from Python to quickly launch a simple HTTP server on the VIRL host acting as the server:
cisco@Server:~$ python3 -m http.serverServing HTTP on 0.0.0.0 port 8000 ...
We can create a short while loop in a Python script to continuously send HTTP GET to the web server on the client: ...
Read now
Unlock full access