Skip to content

Instantly share code, notes, and snippets.

@bahorn
Last active June 10, 2020 02:20
Show Gist options
  • Save bahorn/cf3a29e3a9bb7fdb442d081995026cb7 to your computer and use it in GitHub Desktop.
Save bahorn/cf3a29e3a9bb7fdb442d081995026cb7 to your computer and use it in GitHub Desktop.
random commands
grep "^mem" UCD-SNMP-MIB.txt | cut -f 1 -d ' ' | xargs -n 1 -I {} printf "[[inputs.snmp.field]]\nname = \"{}\"\noid = \"UCD-SNMP-MIB:::{}\"\n\n" | clip
opkg update; opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment