Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

EEM/TCL script help for IOS upgradation

Hi,

Need your inputs if its possible to write an EEM/TCL script to push IOS for remote devices. Follwoing are the requirements

1.login to remote device

2.check if enough available memory in flash for new IOS ( something like predefine the IOS image file and compare with available flash)

3. copy IOS from ftp server to flash

4. verify MD5 (execute verify command and compare the value with predefined MD5)

5. change the boot sequence.

6. reload

Regards,

Sathvik K V

  • EEM Scripting
4 REPLIES
New Member

EEM/TCL script help for IOS upgradation

If you want to push out IOS to remote devices I would recommend that you use EXPECT to accomplish your task.  It is much easier and you can use autoexpect to provide the framework within EXPECT that you need.  I find that you will have to clean up a bit, but it is a great start.  Also, EXPECT runs on TCL which can provide additional control with conditions/requirements that you may have.  On the other hand I have written EEM scripts that will copy a configuration and download an image from the switches in my lab so I don't have to do it.  It might be possible, depending on how strict your requirements are, the current version of EEM, and the platform/IOS that you are running.  The EEM is a powerful tool that can provide additional functionality, flexablity, and additional benefits.   

-Jim

New Member

EEM/TCL script help for IOS upgradation

Jim Thank you!!

Just a beginner to EEM/TCL have written some simple scripts and not much  aware about EXPECT. Could you share some doc's and examples which might help me to understand EXPECT

Regards,

Sathvik

New Member

EEM/TCL script help for IOS upgradation

Sathvik,

Here is where I would start first:

http://expect.sourceforge.net/

I also use Exploring Expect from O'Reilly as a reference.  That should get you started.  Have fun!

-Jim

New Member

EEM/TCL script help for IOS upgradation

Thank you

485
Views
3
Helpful
4
Replies
This widget could not be displayed.