This blog was originally started to better help me understand the technologies in the CCIE R&S blueprint; after completing the R&S track I have decided to transition the blog into a technology blog.

CCIE #29033

This blog will continue to include questions, troubleshooting scenarios, and references to existing and new technologies but will grow to include a variety of different platforms and technologies. Currently I have created over 185 questions/answers in regards to the CCIE R&S track!! Note: answers are in the comment field or within "Read More" section.

You can also follow me on twitter @FE80CC1E


Sunday, May 16, 2010

Question 103

What commands can be used to schedule a command to run?

1 comments:

Packets Analyzed said...

Couple of commands that can schedule or automate commands are

EEM (Event Embedded Manager)
KRON

EEM Example (when interface is shut do a not shut)

config#event manager applet NO_Shut_Fa0/0
config-applet#event syslog patter “Interface FastEthernet0/0, changed state to down”
config-applet#action 1.0 cli command “enable”
config-applet#action 1.1 cli command “configure terminal”
config-applet#action 1.2 cli command “interface fa0/0
config-applet#action 1.3 cli command “no shut”

KRON Example (this will write the running config every Friday at 11:00pm)

config# kron policy-list writerunningconfig
config-kron-policy# cli write
onfig-kron-policy# exit
config# kron occurrence backup at 23:00 Fri recurring
config-kron-occurrence# policy-list writerunningconfig

Post a Comment