Wednesday, August 20, 2008

Cisco Kron Schedule not Cron Schedule

Do you familiar with *nix Cron Schedule / *nix Crontab Schedule ? How about Kron Schedule in Cisco IOS
Warning be carefull with this example about configure replace at hh:mm

old configure
ip route 0.0.0.0 0.0.0.0 161.1.78.8

new configure (flash:test)
ip route 0.0.0.0 0.0.0.0 161.1.78.8 --> delete it

configure kron schedule

configure terminal
kron policy-list remove-static-route
cli configure replace flash:test force

kron occurrence remove-static-route at 22:49 oneshot
policy-list remove-static-route

step by step, verify, debug

Router#sh clock
22:48:07.145 UTC Wed Aug 20 2008

Router#sh kron schedule
Kron Occurrence Schedule
remove-static-route inactive, will run once in 0 days 00:01:09 at 22:49 on


Router#debug kron all
All kron debug flags are on

Router#sh debug
Kron:
Kron debugs, failure messages debugging is on
Kron debugs, informational and minor warning messages debugging is on
Kron cli occurrence messages debugging is on


Router#sh kron schedule
Kron Occurrence Schedule
remove-static-route inactive, will run once in 0 days 00:00:50 at 22:49 on

Router#sh ip ro static
S* 0.0.0.0/0 [1/0] via 161.1.78.8


Router#
5w1d: Major 1, Minor 0
5w1d: Timer Event remove-static-route
5w1d: Call parse_cmd 'configure replace flash:test force'
5w1d: Rollback:Acquired Configuration lock.
5w1d: Occurrence remove-static-route is active, it will be removed when inactive
5w1d: Policy remove-static-route is Active, cannot be removed yet

Router#
5w1d: %PARSER-3-BADUNLOCKREQ: Unlock requested by process id '225' name 'Kron CLI Process' debug info 'Rollback'. You are not the lock owner

Router#
5w1d: Kron CLI return 0
'
**CLI 'configure replace flash:test force':
Total number of passes: 1Rollback Done'
5w1d: Major 4, Minor 7
5w1d: Respond to end of CLI Process
5w1d: Forcing Removing Policy remove-static-route
5w1d: Removing Policy remove-static-route
5w1d: Removing CLI 'configure replace flash:test force'
5w1d: Done Removing Policy remove-static-route
5w1d: Forcing Removing Occur remove-static-route
5w1d: Removing Occur remove-static-route
5w1d: Removing Policy Name 'remove

Router#-static-route'
5w1d: Finished Removing Occurrence remove-static-route


Router#show ip route static

Router#sh kron schedule
Kron Occurrence Schedule

1 comment:

agustri said...

numpang lewat wan,
berhubung gak ngerti Network alias gaptek network,.hehehe.

salam,


agus