Skip to content

Instantly share code, notes, and snippets.

@TheSkorm
Created January 6, 2013 10:49
Show Gist options
  • Save TheSkorm/4466531 to your computer and use it in GitHub Desktop.
Save TheSkorm/4466531 to your computer and use it in GitHub Desktop.
SNMP grabs mikrotik volts reading.
#!/bin/bash
#Makes a CSV of UNIX Time, wget speed, and link speed from an SNMP router
VOLTS=`snmpwalk -OvQ -v2c -cpublic IP .1.3.6.1.4.1.14988.1.1.3.8.0`
TIME=`date +%s`
VOLTS=`echo "scale=3;$VOLTS/10"|/usr/bin/bc`
echo $TIME,$VOLTS V >> /home/mwheeler/scripts/volts.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment