Server for the pinger Utility in dnxOS

#Routers #dnxOS
This script functions as a server for the pinger utility within the dnxOS operating system.

System Requirements

A PC or virtual machine with the following specifications is required:

  • Platform: Linux

  • Python: 3.7 or higher

  • Resources: Minimal (128 MB RAM and 10 MB of disk space are sufficient)

Running the Script

  1. Download the script pinger_server.py.

  2. Upload the downloaded file to the target PC (or virtual machine).

  3. Execute the script. Launch command:

python3 pinger_server.py [-a IP] [-p PORT] [-d]

Supported Arguments

Description

Short

Full

Default

Bind IP address

-a

--ip

0.0.0.0

TCP port

-p

--port

2000

Debug mode (DEBUG logs)

-d

--debug

If arguments are not specified, default values are used.

Logging

The script records operational data to the pinger_server.log file, which is created in the script’s execution directory.

File Management and Rotation:

  • Maximum file size: 1 MB.

  • Retention policy: Up to 5 archived log files are maintained.

Logging Levels:

  • INFO — standard mode recording primary events only.

  • DEBUG — detailed mode activated by the -d flag during startup.

Output Destination:

Logs are directed simultaneously to the log file and the standard output (console).