Tuesday, March 26, 2013

Cisco Kron: How To Schedule A Reboot On A Cisco Router/UC500/CME Every Night

I had a little problem on a UC500 that would crop up every now and then, say once a week or so.  I have seen this on two different UC500s so far, and I have gotten no resolution from Cisco on them.  So, I noticed that when the UC500 was rebooted, the problem would clear out for a while, then come back some time later.  Anyway, I just decided to reboot the router every night at midnight so that the issue would not come back to hinder the customer.  They are a 8 to 5 business, so rebooting at midnight wouldnt be an issue.  Here is the commands I took to great a kron job and schedule the reboot every night at 12:01 AM.

UC(config)#kron policy-list reloadrouter
UC(config-kron-policy)#cli reload
UC(config-kron-policy)#exit
UC(config)#kron occurrence reloadrouter at 00:01 recurring
UC(config-kron-occurrence)#policy-list reloadrouter
UC(config-kron-occurrence)#exit
UC(config)#wr mem

5 comments:

  1. Hi Shane,

    I too see issues with the UC and needing a reboot. Did you enter this via CLI or from the command tool within CCA? Also, if you want to remove this do you just NO out the first line?

    ~ Mat

    ReplyDelete
    Replies
    1. Hey Mat. Thanks for posting. No, I did this in CLI. I never use CCA. And to your second question, I think I would do this first (although I have not tried this, Im only speculating):
      no kron occurrence reloadrouter at 00:01 recurring
      no kron policy-list reloadrouter

      Delete
  2. Awesome, thanks a ton!

    ~ Mat

    ReplyDelete
  3. Shane,
    I wanted to thank you again for these commands. I have not used this in about three places and it works perfectly. One thing to note however is that you cannot wr mem while in the config terminal. Other than that this works without a hitch!

    ~ Mat

    ReplyDelete
    Replies
    1. Glad this helped Mat. And good info about the wr mem.

      Delete

Your comment will be reviewed for approval. Thank you for submitting your comments.