Useful Commands & Tools

Influxdbv2

Local Linux install

Exporting measurement data to line protocol

$ sudo influxd inspect export-lp --bucket-id <id> --engine-path /var/lib/influxdb/engine/ --measurement <name> --output-path <path-to-file>

Importing measurement data line protocol

$ sudo influx write --org <org> -b <bucket> -f <path-to-file> --token $INFLUX_TOKEN

Deleting measurements

$ sudo influx delete --org <org> --bucket <bucket> --start '1970-01-01T00:00:00Z' --stop $(date +"%Y-%m-%dT%H:%M:%SZ") --predicate '_measurement="<name>"' --token $INFLUX_TOKEN

Run the v1 client

$ influx v1 shell

WebRquest

Web page timings from Windows Powershell: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest

Powershell version

PS > $PSVersionTable

Show current user certificate thumbprints

PS > get-ChildItem Cert:\CurrentUser\My

Set Tls version

PS > [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Measure page download time

PS > Measure-Command {Invoke-WebRequest -Uri "https://<>" -CertificateThumbprint ""}

Curl

Example curl request below prints out details about the timing and size of the request. Further details and options can be found on the man page for curl here: https://curl.se/docs/manpage.html

$ curl -s -o /dev/null --cert <pem> --key <pem> --insecure -k "url" -w "URL=%{url_effective} RTT=%{time_total} SIZE=%{size_download} TTFB=%{time_starttransfer} CODE=%{http_code} DNS=%{time_namelookup} CONNECT=%{time_connect} appconnect=%{time_appconnect}\n"

chrome://net-internals

A number of useful tools, but very useful for debugging and tracing socket streams used by chrome. Further details can be found here: https://chromium.googlesource.com/chromium/src/+/HEAD/net/docs/crash-course-in-net-internals.md

NMON

A great tool for Linux reporting with nice Excel macro for creating a spreadsheet out of nmon result files. For more information see here: https://nmon.sourceforge.io/pmwiki.php