Skip to main content

Cisco EEM - How to configure kron to FTP

More
13 years 2 weeks ago - 13 years 2 weeks ago #37639 by apit

Attachment cl_multi_pipe.txt not found


hi..this is my problem...
I want to sent output piping command from switch to ftp server..Below are the step that i have done :

1- Copy script cl_multi_pipe.tcl to my switch (Cisco catalyst WS-C3560E-12SD , IOS : 12.2(55)SE). This TCL script will allow multiple piping from cisco command line to be sent to ftp server.

C3560G#dir
Directory of flash:/


2 -rwx 3096 Oct 28 2011 23:59:02 +08:00 multiple-fs
3 -rwx 3857 Oct 28 2011 23:59:02 +08:00 private-config.text
4 -rwx 5716 Oct 28 2011 23:59:01 +08:00 config.text
5 -rwx 8916 Jul 25 2011 16:12:38 +08:00 vlan.dat
443 -rwx 4524 Nov 18 2011 15:09:34 +08:00 cl_multi_pipe.tcl
6 drwx 512 Nov 12 2010 15:31:05 +08:00 c3560e-universalk9-mz.122-55.SE


57931776 bytes total (39990272 bytes free)


2- Create event manager directory & policy

C3560G#sh ru | b event
event manager directory user policy "flash:/"
event manager policy cl_multi_pipe.tcl
!
end


3- At the same time i already configure kron & command to push text file to my ftp server. This task cannot be done because kron cannot accept double pipe ( i guest ?)

kron occurrence PipeOut at 15:00 sun recurring
policy-list PipeOut
!

kron policy-list PipeOut
cli show version | i uptime | redirect ftp://172.17.30.1/uptime.txt


The idea is to use Cisco EEM features to do the double pipe command. How to configure EEM so that the task will run automatically just like kron schedule ?

Please advice.

Thanks
Attachments:
Last edit: 13 years 2 weeks ago by apit.
Time to create page: 0.116 seconds