SNMP tools

Posted on July 24, 2015

Ubuntu setup

#install software
sudo apt-get install snmp snmp-mibs-downloader
#download mibs
sudo snmp-mibs-downloader
#backup old configuration
sudo mv /etc/snmp/snmp.conf /etc/snmp/snmp.conf.old
#create empty configuration
echo '#mibs: ' | sudo tee /etc/snmp/snmp.conf
#create private mibs repository
mkdir -p ~/.snmp/mibs
cd ~/.snmp/mibs
#download ciscos mibs
wget ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
#unpack
tar xvzf v2.tar.gz
#move mibs to there right place
mv auto/mibs/v2/* .
#clean up
rm -rf auto

Show arp table

snmpbulkwalk -v 2c -c public -m +ALL -OXsq  192.168.1.1 .1.3.6.1.2.1.17.4.3.1.2