cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9080
Views
0
Helpful
4
Replies

Kron policy-list

Dear members, I use the below commands, after I have verified the sh clock on the cisco 3560

sh clock
17:52:56.903 UTC Mon Nov 1 2010

config t

kron policy-list tftpbackup

cli sh run | redirect tftp://192.168.10.10/switch.cfg
exit
kron occurrence tftpbackup at 18:00 monday recurring
exit

exit

sh kron schedule

tftpbackup inactive, will run again in 0 days 00:02:13 at 18:00 on Mon

I then I wait and I do not get anything on the IP address of my tftp which I can ping.

Proof that I can reach my tftp server, and not only that, I even launch a manal tftp backup to the same IP address and it is working.


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.10, timeout is 2 seconds:

!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

Can anyone help? i would appreciate your help on the matter.

AS

4 Replies 4

this is what the sh run config gives me.

kron occurrence tftpbackup at 18:00 Mon recurring
!
kron policy-list tftpbackup
cli show run | redirect tftp://192.168.10.10/switch.cfg

I think you need to change your configuration to this:

!
kron occurrence tftpbackup at 18:00 Mon recurring

policy-list tftpbackup
!
kron policy-list tftpbackup
cli show run | redirect tftp://192.168.10.10/switch.cfg

!

The name of the occurrence is not the name of the policy you want to run at that time.

After that, if it's still not working, run "debug kron all" to see what is happening at the occurrence time.

Margalla thank you so much for the help, what I was doing wrong it seems to be that

after i was defining the occurence of the kron to run I was not defining the policy list to be executed during that occurence statement.

Your help is much aprpeciated.

Indeed your configuration is the correct one.

Thank you

AS

In my case, it works perfectly well but I'd like to personalize the name of the created file. I mean I use this kron all over my network but I'd like to use a variable instead the switch.cfg, so each switch uses its own hostname as the cfg file.
Is it possible?
Review Cisco Networking products for a $25 gift card