Skip to content

Instantly share code, notes, and snippets.

@elecnix
Created November 14, 2012 18:30
Show Gist options
  • Save elecnix/4073877 to your computer and use it in GitHub Desktop.
Save elecnix/4073877 to your computer and use it in GitHub Desktop.
Get DD-WRT daily traffic
# Inspired by: http://www.dd-wrt.com/wiki/index.php/WAN_Traffic_by_Month
ssh root@192.168.1.1 "nvram get traff-$(date +%m-%Y -d '-1 day')" > ~/consommation/`date +%Y-%m -d '-1 day'`.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment