This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Firmware Upgrade Script

I'm trying to create a script to automatically upgrade our Cat2950's.

I've got all the commands sorted out
delete flash:*.bin ${CRLF}
${CRLF}
${CRLF}
delete flash:html/* ${CRLF}
archive tar /xtract tftp://192.168.51.65/c2950.tar flash: ${CRLF}
${CRLF}
wr
reload

My problem is that the delete flash:html/* takes so long and I haven't found a way to automatically accept every file to be deleted instead it goes through every file in the folder one by one and if there are any commands after the delete it uses the characters in the command as the aceepantece to delete the file. So neither the files get deleted or the firmware gets upgraded.

The only way I have found to get round this is to have two seperate scripts one to deleted the old firmware and html and one to upload and install the new one.

Can anyone suggest a more efficient way of running this script so I can have all the commands in one script?

Thanks

Jon

IT Infrastructure Manager
Pilgrim Hospital
UK