PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:snmp:snmp

This is an old revision of the document!


SNMP

Topology

Physical Lab.

Install Zabbix Server

Using Zabbix Server Appliance 3.4 Appliance Image.

Download, Start VM, Configure IP address, that's it!

Initial config

  • R1
en
conf t
!
int f0/0
ip addr 172.16.2.1 255.255.255.0
no shut
exit
int f0/1
ip addr 172.16.1.1 255.255.255.0
no shut
exit
!
end
  • R2
en
conf t
!
! ip configuration
int f0/0
ip addr 172.16.2.2 255.255.255.0
no shut
exit
int f0/1
ip addr dhcp
no shut
exit
!
end

Configuration

R1(config)#snmp-server community Public01 ro
R1(config)#snmp-server community Private01 rw
R1(config)#do sh run | i snmp-server
snmp-server community Public01 RO
snmp-server community Private01 RW
R1(config)#snmp-server host 172.16.2.241 version 2c Public01
R1(config)#snmp-server enable traps

snmp-server community Public01 ro
snmp-server community Private01 rw
snmp-server host 172.16.2.241 version 2c Public01
snmp-server enable traps

number of configuration generated…

R1(config)#do sh run | i snmp
snmp-server community Public01 RO
snmp-server community Private01 RW
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps vrrp
snmp-server enable traps flowmon
snmp-server enable traps ds1
snmp-server enable traps call-home message-send-fail server-fail
snmp-server enable traps tty
snmp-server enable traps eigrp
snmp-server enable traps ospf state-change
snmp-server enable traps ospf errors
snmp-server enable traps ospf retransmit
snmp-server enable traps ospf lsa
snmp-server enable traps ospf cisco-specific state-change nssa-trans-change
snmp-server enable traps ospf cisco-specific state-change shamlink interface
snmp-server enable traps ospf cisco-specific state-change shamlink neighbor
snmp-server enable traps ospf cisco-specific errors
snmp-server enable traps ospf cisco-specific retransmit
snmp-server enable traps ospf cisco-specific lsa
snmp-server enable traps envmon
snmp-server enable traps adslline
snmp-server enable traps c3g
snmp-server enable traps vstack
snmp-server enable traps license
snmp-server enable traps flash insertion removal
snmp-server enable traps icsudsu
snmp-server enable traps isdn call-information
snmp-server enable traps isdn layer2
snmp-server enable traps isdn chan-not-avail
snmp-server enable traps isdn ietf
snmp-server enable traps ds0-busyout
snmp-server enable traps ds1-loopback
snmp-server enable traps ethernet cfm cc mep-up mep-down cross-connect loop config
snmp-server enable traps ethernet cfm crosscheck mep-missing mep-unknown service-up
snmp-server enable traps disassociate
snmp-server enable traps deauthenticate
snmp-server enable traps authenticate-fail
snmp-server enable traps dot11-qos
snmp-server enable traps switch-over
snmp-server enable traps rogue-ap
snmp-server enable traps wlan-wep
snmp-server enable traps rf
snmp-server enable traps atm subif
snmp-server enable traps bfd
snmp-server enable traps bgp
snmp-server enable traps bstun
snmp-server enable traps bulkstat collection transfer
snmp-server enable traps cef resource-failure peer-state-change peer-fib-state-change inconsistency
snmp-server enable traps memory bufferpeak
snmp-server enable traps cnpd
snmp-server enable traps config-copy
snmp-server enable traps config
snmp-server enable traps config-ctid
snmp-server enable traps dlsw
snmp-server enable traps dsp card-status
snmp-server enable traps dsp oper-state
snmp-server enable traps entity
snmp-server enable traps fru-ctrl
snmp-server enable traps resource-policy
snmp-server enable traps frame-relay multilink bundle-mismatch
snmp-server enable traps frame-relay
snmp-server enable traps frame-relay subif
snmp-server enable traps hsrp
snmp-server enable traps ipmobile
snmp-server enable traps ipmulticast
snmp-server enable traps isis
snmp-server enable traps mpls traffic-eng
snmp-server enable traps mpls fast-reroute protected
snmp-server enable traps mpls rfc ldp
snmp-server enable traps mpls ldp
snmp-server enable traps msdp
snmp-server enable traps mvpn
snmp-server enable traps pim neighbor-change rp-mapping-change invalid-pim-message
snmp-server enable traps pppoe
snmp-server enable traps cpu threshold
snmp-server enable traps nhrp nhs
snmp-server enable traps nhrp nhc
snmp-server enable traps nhrp nhp
snmp-server enable traps nhrp quota-exceeded
snmp-server enable traps rsvp
snmp-server enable traps ipsla
snmp-server enable traps stun
snmp-server enable traps syslog
snmp-server enable traps l2tun session
snmp-server enable traps l2tun pseudowire status
snmp-server enable traps vtp
snmp-server enable traps pw vc
snmp-server enable traps event-manager
snmp-server enable traps firewall serverstatus
snmp-server enable traps isakmp policy add
snmp-server enable traps isakmp policy delete
snmp-server enable traps isakmp tunnel start
snmp-server enable traps isakmp tunnel stop
snmp-server enable traps ipsec cryptomap add
snmp-server enable traps ipsec cryptomap delete
snmp-server enable traps ipsec cryptomap attach
snmp-server enable traps ipsec cryptomap detach
snmp-server enable traps ipsec tunnel start
snmp-server enable traps ipsec tunnel stop
snmp-server enable traps ipsec too-many-sas
snmp-server enable traps mpls vpn
snmp-server enable traps vrfmib vrf-up vrf-down vnet-trunk-up vnet-trunk-down
snmp-server host 172.16.2.241 version 2c Public01
R1(config)#access-list 1 permit 172.16.2.240
R1(config)#snmp-server community Public01 ro ?
  <1-99>       Std IP accesslist allowing access with this community string
  <1300-1999>  Expanded IP accesslist allowing access with this community
               string
  WORD         Access-list name
  ipv6         Specify IPv6 Named Access-List
  <cr>

R1(config)#snmp-server community Public01 ro 1
R1(config)#no access-list 1
R1(config)#access-list 1 permit 172.16.2.241
access-list 1 permit 172.16.2.241
snmp-server community Public01 ro 1
snmp-server system-shutdown
R1(config)#snmp-server system-shutdown
R1#wr
Building configuration...
[OK]
snmp-server trap-source f0/0
snmp-server queue-length 100
snmp-server trap-timeout 60
snmp-server contact Wataru Noguchi
snmp-server location My Home

References

tech/network/cisco/snmp/snmp.1528624228.txt.gz · Last modified: 2018/06/10 18:50 by wnoguchi