Example configuration of snmp v3 on cisco switch

  1. Enter commands into cisco switch console.
snmp-server view mon_view system included
snmp-server view mon_view mib-2 included
snmp-server view mon_view dot1dBridge included
snmp-server view mon_view ifMIB included
snmp-server view mon_view ciscoVtpMIB included
snmp-server view mon_view ciscoVlanMembershipMIB included
snmp-server view mon_view ciscoVlanIfTableRelationshipMIB included
snmp-server view mon_view snmpFrameworkMIB included
snmp-server group mon_group v3 priv read mon_view
snmp-server group mon_group v3 priv context vlan- match prefix read mon_view
snmp-server user mon_user mon_group v3 auth sha a1234567 priv aes 128 p1234567
  1. If you need to collect ipv6 neighbor tables, then additionally enter the following command.
snmp-server view mon_view ciscoIetfIpMIB included
  1. For snmp access to the switch, you must use the user mon_user with auth sha key a12345678 and priv aes128 key p1234567.