Go to the top

Config snippet – SNMPv3 IOS, ASA

Ziaul / Cisco /
SNMPv3

SNMPv3 IOS

! All OID read only
!
ip access-list standard MONITORING_SVRS
permit x.x.x.x x.x.x.x 
permit x.x.x.x x.x.x.x
deny any log
exit
!
snmp-server group MONITORING-READ v3 priv
!
snmp-server user xxxx MONITORING-READ v3 auth sha ABCDABCD priv aes 128 WXYZWXYZ access MONITORING_SVRS
!
end



! Restricted OID read only
!
ip access-list standard MONITORING_SVRS
permit x.x.x.x x.x.x.x 
permit x.x.x.x x.x.x.x
deny any log
exit
!
snmp-server view RESTRICTED-MIB system included
snmp-server view RESTRICTED-MIB mib-2 included
!
snmp-server group MONITORING-READ v3 priv read RESTRICTED-MIB
!
snmp-server user xxxx MONITORING-READ v3 auth sha ABCDABCD priv aes 128 WXYZWXYZ access MONITORING_SVRS
!
end

 

SNMPv3 ASA

!
snmp-server enable
!
snmp-server group MONITORING-READ v3 priv
snmp-server user xxxxx MONITORING-READ v3 auth sha ABCDABCD priv aes 128 WXYZWXYZ
!
snmp-server host wwwww aaaa bbbbb poll version 3 xxxxx
snmp-server host wwwww cccc poll version 3 xxxxx 

Crib Sheets:

Leave a Comment