Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am charlie-haley on github.
  • I am charliehaley (https://keybase.io/charliehaley) on keybase.
  • I have a public key ASDj1IgWsICZg3ZoZs4PC-s01vF2c8MTDbmF1m1ohrlbXAo

To claim this, I am signing this object:

#!/usr/local/bin/bash
# pkg install bash
# add to shellcmd as "/root/push_ip_metrics.sh &" via Services/shellcmd
pushgatewayip="192.168.1.2:9091"
network="192.168.1.0/24"
interface="bce1"
interval="1"
rate -i "${interface}" -r "${interval}" -e -n -Ab -a 255 -c "${network}" -d | while read -r line; do