-
-
Save changeme/4d247c9f3a83bfccbec2496e7a099851 to your computer and use it in GitHub Desktop.
SNMP grabs mikrotik volts reading.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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