Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging DHCP Lease information to a syslog server

Status
Not open for further replies.

MRSOLO

Technical User
Jan 28, 2003
31
0
0
IE
Hello
I am running DHCP on a Cisco 6500 for my wireless networks (each wireless network is a seperate vlan). For each ip address leased out i need to record/log to a syslog server the date, time, ip address, Mac address and lease expiration time. Can anyone advise how I can accomplish this. Also is it possible to log to more than one device i.e log info from specific interfaces goes to seperate syslog servers ?

Any help greatly appreciated.
Thanks
MRSOLO
 

Hi,

You could turn on debugging for dhcp...

'debug ip dhcp server events' then configure logging to a syslog server at the appropriate level. This will however send all syslogs of that level, which may include irrelevant messages.

Depending on the sylog server it should be possible to filter out the logs to only include the dhcp requests that you are interested in.

You may also be able to achieve this using SNMP polling/traps.

HTH

Regards,


Peter
CCNA, Cisco Qualified Specialist
 
Can you do this?
router(config)#logging host x.x.x.x
router(config)#logging trap informational

Burt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top