snmp query on a dhcp server (low routers or L3 switches)

Unanswered Question
Jun 9th, 2010
User Badges:

Hello,


is possible to monitor dhcp binding or free addresses using snmp? I found the following MIB: CISCO-IETF-DHCP-SERVER-MIB, but this MIB is supported only on the Cisco 7300, 7200 series.:-( When I tried snmpwalk on the Catalyst3560, but the CISCO-IETF-DHCP-SERVER-MIBoids is not supported:-( So the question is following: Is possible to monitor DHCP leases using SNMP on the low end Cisco platforms (800,1700, 1800, 26xx, 28xx..., Cat3560, Cat3560E, Cat3750, ...)? Thank you. Roman

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Wed, 06/16/2010 - 23:04
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You can do this with EEM and the EXPRESSION-MIB.  Take a look at the script at

http://forums.cisco.com/eforum/servlet/EEM;jsessionid=BC017F546ECE38762F78BCF6270D6A77.SJ5A?page=eem&fn=script&scriptId=2283 .  I just used this script today to do exactly what you want.  I created objects to be able to poll my number of outstanding leases and my overall pool size.

ROMAN TOMASEK Thu, 06/17/2010 - 07:18
User Badges:

Thank you very much. I will test it. Is it supported on the L3 switches (3560,

3750)??. Roman

Joe Clarke Thu, 06/17/2010 - 08:04
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Provided those switches are running 12.2(40)SE or higher, then yes.

Actions

This Discussion