Skip to content

Instantly share code, notes, and snippets.

@rafaelsnsa
Created June 7, 2016 16:25
Show Gist options
  • Save rafaelsnsa/9ff7b282ceff04e272631a02c5f25414 to your computer and use it in GitHub Desktop.
Save rafaelsnsa/9ff7b282ceff04e272631a02c5f25414 to your computer and use it in GitHub Desktop.
#!/bin/sh
# enable_snmp_version.sh
file="/etc/snmp/snmpd.conf"
#echo "view systemview included .1" >> $file
echo "exec serial /sbin/version -s" >> $file
echo "exec firmware /sbin/version -f" >> $file
echo "exec board /sbin/version -b" >> $file
cp -r /etc/snmp /mnt/config/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment