Skip to content

Instantly share code, notes, and snippets.

@PackeTsar
Last active August 20, 2024 14:52
Show Gist options
  • Save PackeTsar/2bfe1e28a7dc60a6ed631a904dc19055 to your computer and use it in GitHub Desktop.
Save PackeTsar/2bfe1e28a7dc60a6ed631a904dc19055 to your computer and use it in GitHub Desktop.
Linux SNMP MIBs Set Up

Linux SNMP MIBs Set Up

Install SNMP MIBs on Ubuntu and add in Cisco MIBs

apt install snmp snmp-mibs-downloader

download-mibs

# Test MIB path, should fail this time
snmpget -c public -v2c localhost CISCO-REMOTE-ACCESS-MONITOR-MIB::crasIPSecNumSessions.0

cd /opt/

git clone https://github.com/cisco/cisco-mibs.git

ln -s /opt/cisco-mibs/v2 /usr/share/snmp/mibs/cisco

echo "mibdirs /usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/snmp/mibs/cisco" >> /etc/snmp/snmp.conf

# Test MIB path again, should not throw MIB lookup errors
snmpget -c public -v2c localhost CISCO-REMOTE-ACCESS-MONITOR-MIB::crasIPSecNumSessions.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment