Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: SNMP v1 or v2

The following code is an example configuration for a cisco device using SNMP (v2c) v1 or v2 showing how to configure and access list, an SNMP view, SNMP read-only access and read-write access.  If you would prefer to use SNMP V3 see our guide here.

Configuration

The first command in the code below creates an access list that includes any device from 192.168.1.X and names the list 42.  

...

That should be all that is required to get basic SNMP access to your router configured.  If you haven't already, add your cisco device to NMIS, instructions to do that are here. Note: if you have setup your device and everything should be working but it doesn't, try using SNMP v1 (see the previous instructions for how to do that in NMIS)

Testing

To test the new configuration use snmpwalk on your linux server running NMIS or your NMIS VM:

Code Block
snmpwalk -v 2c -c NMISread <cisco_device_name_or_ip> 1.3.6.1.2.1.1

...