• API
  • Retrieve top 100 Internal IP and top 100 external IP

Trying to write a script to query using TRP for
selecting any time interval
top 100 internal hosts in that interval (with resolved name)
* top 100 external hosts in that interval

is there a sample somewhere. I prefer python for this

TIA,vlad

    Hi Vladzz,

    Please download the following python script from our git repository
    https://github.com/trisulnsm/trisul-scripts/blob/master/trp/python/top_internal_external_hosts.py

    Run the script with with following examples to get top Internal and External hosts.

    Usage

    python top_internal_external_hosts.py <zmq_endpoint>

    Example

    python top_internal_external_hosts.py  tcp://192.168.2.78:13004

    Example 2

    python top_internal_external_hosts.py  ipc:///usr/local/var/lib/trisul-hub/domain0/hub0/context0/run/trp_0 

    Thanks,

      Write a Reply...