$title =

A Network Testing Shell with History

;

$content = [

This was a cool project I started for using at work to monitor the network sometimes, especially when on-call paranoia kicks in. This tool is a python fire based tool that runs python-native code for ICMP testing and other utilities like DNS record validation.

https://github.com/packetpunter/pyNetTestShell

This code I made public since I consider it stable.

This code is broke into modules.

Flamegrid provides the python fire CLI interface.

TestConfig provides the default test parameters

TestShell provides the interactive shell’s functions. TestUtils contains the helper classes to define standard data formats.

The Tester module aggregates the functionality of these other modules into a single client-like interface for the python fire CLI, as well as the interactive CLI. This module is where the individual tool code lives as well.

Usage

Usage
Welcome to the Network Tester Interactive v2.2.1 app to test your network!

Type ? to list commands.
 For questions, please contact the administrator who granted you this access.


net_test> set targets 1.1.1.1 4.4.4.4 reddit.com
net_test> run route ping speed
HISTORY LOGGER::: route Result 
╒════╤═══════════════════════╤════════════════════╤═════════╤═══════════════════╤════════════════╤═════════════════════════════════════╕
│    │ TS                    │ SRC                │ DST     │   Route_AvgJitter │   Route_AvgRtt │ Route_HighestLossHop                │
╞════╪═══════════════════════╪════════════════════╪═════════╪═══════════════════╪════════════════╪═════════════════════════════════════╡
│ TS │ 2023/10/11-T-12:32:55 │ self via 10.1.10.1 │ 1.1.1.1 │          0.102231 │        1.51931 │ 71.25.197.110 responded in 20.769ms │
╘════╧═══════════════════════╧════════════════════╧═════════╧═══════════════════╧════════════════╧═════════════════════════════════════╛
HISTORY LOGGER::: route Result 
╒════╤═══════════════════════╤════════════════════╤═════════╤═══════════════════╤════════════════╤═════════════════════════════════════╕
│    │ TS                    │ SRC                │ DST     │   Route_AvgJitter │   Route_AvgRtt │ Route_HighestLossHop                │
╞════╪═══════════════════════╪════════════════════╪═════════╪═══════════════════╪════════════════╪═════════════════════════════════════╡
│ TS │ 2023/10/11-T-12:33:39 │ self via 10.1.10.1 │ 4.4.4.4 │            0.0465 │         1.8574 │ 96.110.37.233 responded in 21.475ms │
╘════╧═══════════════════════╧════════════════════╧═════════╧═══════════════════╧════════════════╧═════════════════════════════════════╛
HISTORY LOGGER::: route Result 
╒════╤═══════════════════════╤════════════════════╤════════════╤═══════════════════╤════════════════╤════════════════════════════════════╕
│    │ TS                    │ SRC                │ DST        │   Route_AvgJitter │   Route_AvgRtt │ Route_HighestLossHop               │
╞════╪═══════════════════════╪════════════════════╪════════════╪═══════════════════╪════════════════╪════════════════════════════════════╡
│ TS │ 2023/10/11-T-12:33:43 │ self via 10.1.10.1 │ reddit.com │         0.0338333 │        1.56475 │ 96.110.39.110 responded in 24.46ms │
╘════╧═══════════════════════╧════════════════════╧════════════╧═══════════════════╧════════════════╧════════════════════════════════════╛
HISTORY LOGGER::: ping Result 
╒════╤═══════════════════════╤═══════╤═════════╤════════════╤════════════╤════════════╤════════════════╕
│    │ TS                    │ SRC   │ DST     │   Ping_Avg │   Ping_Max │   Ping_Min │   Ping_PctLoss │
╞════╪═══════════════════════╪═══════╪═════════╪════════════╪════════════╪════════════╪════════════════╡
│ TS │ 2023/10/11-T-12:34:30 │ self  │ 1.1.1.1 │     19.908 │     22.093 │     18.868 │              0 │
╘════╧═══════════════════════╧═══════╧═════════╧════════════╧════════════╧════════════╧════════════════╛
HISTORY LOGGER::: ping Result 
╒════╤═══════════════════════╤═══════╤═════════╤════════════╤════════════╤════════════╤════════════════╕
│    │ TS                    │ SRC   │ DST     │   Ping_Avg │   Ping_Max │   Ping_Min │   Ping_PctLoss │
╞════╪═══════════════════════╪═══════╪═════════╪════════════╪════════════╪════════════╪════════════════╡
│ TS │ 2023/10/11-T-12:34:30 │ self  │ 4.4.4.4 │          0 │          0 │          0 │              1 │
╘════╧═══════════════════════╧═══════╧═════════╧════════════╧════════════╧════════════╧════════════════╛
HISTORY LOGGER::: ping Result 
╒════╤═══════════════════════╤═══════╤════════════╤════════════╤════════════╤════════════╤════════════════╕
│    │ TS                    │ SRC   │ DST        │   Ping_Avg │   Ping_Max │   Ping_Min │   Ping_PctLoss │
╞════╪═══════════════════════╪═══════╪════════════╪════════════╪════════════╪════════════╪════════════════╡
│ TS │ 2023/10/11-T-12:34:30 │ self  │ reddit.com │     19.547 │     24.884 │     18.315 │              0 │
╘════╧═══════════════════════╧═══════╧════════════╧════════════╧════════════╧════════════╧════════════════╛
HISTORY LOGGER::: speed Result 
╒════╤═══════════════════════╤═══════╤══════════════════════╤══════════════╤════════════╤═════════════════╤═════════════════════════════════════════════════╕
│    │ TS                    │ SRC   │ DST                  │ Speed_Down   │ Speed_Up   │ Speed_Latency   │ Speed_URL                                       │
╞════╪═══════════════════════╪═══════╪══════════════════════╪══════════════╪════════════╪═════════════════╪═════════════════════════════════════════════════╡
│ TS │ 2023/10/11-T-12:34:30 │ self  │ NextLight Denver, CO │ 649.0 Mbps   │ 26.0 Mbps  │ 23.9 ms         │ http://www.speedtest.net/result/15364450453.png │
╘════╧═══════════════════════╧═══════╧══════════════════════╧══════════════╧════════════╧═════════════════╧═════════════════════════════════════════════════╛
net_test> exit
 *** Goodbye ***!

];

$date =

;

$category =

;

$author =

;

$next =

;