I'm trying to use Kron to backup the config on some of my switches automatically. When the schedule runs, it just writes a 0KB file and the process just sits there.
Here's my config:
show run | begin kron
kron policy-list Backup
cli show run | redirect tftp://10.1.10.250/config.cfg
kron occurance Backup at 12:30 Wed recurring
When I do a show proccesses cpu I get this:
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
292 0 6 0 0.00% 0.00% 0.00% 0 Kron Process
#show processes memory 292
Process ID: 292
Process Name: Kron Process
Total Memory Held: 25072 bytes
Processor memory Holding = 25072 bytes
pc = 0x01EECD7C, size = 24044, count = 1
pc = 0x0135A880, size = 700, count = 1
pc = 0x0135D398, size = 200, count = 1
pc = 0x01EEE2FC, size = 128, count = 1
I/O memory Holding = 0 bytes
Driver text memory Holding = 0 bytes
My TFTP server that's running shows this in the logs:
Connection received from 10.1.10.251 on port 61403 [21/11 13:38:08.401]
Write request for file <config.cfg>. Mode octet [21/11 13:38:08.401]
Using local port 3391 [21/11 13:38:08.417]
<config.cfg>: rcvd 0 blk, 0 bytes in 1 s. 0 blk resent [21/11 13:38:09.417]
Connection received from 10.1.10.251 on port 63044 [21/11 13:42:54.010]
Write request for file <config.cfg>. Mode octet [21/11 13:42:54.010]
Using local port 3437 [21/11 13:42:54.010]
<config.cfg>: rcvd 0 blk, 0 bytes in 1 s. 0 blk resent [21/11 13:42:55.010]
If I run this command manually from the switch, it works. It takes a minute, but it works.
show run | redirect tftp://10.1.10.250/config.cfg
What is the HW platform and SW version ?
Would it be possible to temporarily change the KRON job time, run 'debug kron all' when the job has started and present the outcome ?
Can you please help me with the command to get output for multiple show commands in a single text file like show vlan brief, show interface trunk, show ip eigrp neighbor and so on. Thanks.