cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
695
Views
0
Helpful
10
Replies

Regular DHCP Binding Output

hillda01
Level 1
Level 1

Hi

I want to output the dhcp binding information using a krontab every 1 hour but I can't see to work out the krontab schedule for hourly or the krontab won't do an hourly output.

 

This is the command that I've got and it works but I want it to run every hour

 

show ip dhcp binding | redirect tftp://IPAddress/_dhcp_binding.txt

 

Can anyone tell me how I can schedule it every hour or let me know an alternative suggestion as to

10 Replies 10

balaji.bandi
Hall of Fame
Hall of Fame

Instead why not use EEM Script for this :

 

below example help you :

 

http://darenmatthews.com/blog/?p=2223#more-2223

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thanks - would this work on a switch?

Hello

Possibly try this, I haven't tested it but it should run at every minute past the hour on every day of week.
event manager applet DHCP
event timer cron cron-entry "1 1-23 * * 0-6"
action 1.1 cli command "enable"
action 1.2 cli command "show ip dhcp binding | redirect tftp://IPAddress/_dhcp_binding.txt"
action 1.3 cli command "end"


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

I don't have

event manager applet

or

event timer

It's a Cisco 9300 switch I'm trying to configure it on

Hello

Not sure not tried eem on 9ks before try as i posted it?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

FYI

That cron timer sequence does work as expected , just tested it on IOS


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

So is it....?

 

conf t

event manager applet DHCP
event timer cron cron-entry "1 1-23 * * 0-6"
action 1.1 cli command "enable"
action 1.2 cli command "show ip dhcp binding | redirect tftp://IPAddress/_dhcp_binding.txt"
action 1.3 cli command "end"

 

 

 

yes here is IOX XE reference in case if you required.

 

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/configuration/xe-3se/3650/eem-xe-3se-3650-book/eem-policy-cli.html

 

Let us know any issue.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thanks for your help - I'll try it out and feedback with my findings.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card