From: Sam Munzani (sam@munzani.com)
Date: Tue Jul 29 2003 - 13:05:30 GMT-3
Brennan,
If you have SNMP RW access to the router, use SNMP to upload the IOS. It's
much more painless process than any telnet/expect script. A command like
below will do the job.
This command will erase the existing image from flash.
snmpset 172.16.99.22 private .1.3.6.1.4.1.9.2.10.6.0 i 1
Where: i 1 defines the file index in the flash.
This command will copy the new image to your flash.
snmpset 172.16.99.22 private .1.3.6.1.4.1.9.2.10.12.171.68.191.135 s
c2600-i-mz.122-2.XA.bin
Where: 171.68.191.135 is your TFTP server address and
c2600-i-mz.122-2.XA.bin is image name.
I have tested this in lab and have found better results than writing a
telnet or expect script. However if you write your telnet perl script and
don't mind sharing, I would like to use it on some of my antique devices
those do not support Cisco FLASH MIB.
Hope this helps.
Sam Munzani
CCIE # 6479 (R&S, Security)
> I'm trying to write a script to upload an IOS image to flash on
> some 3700 series routers. I was hoping to correspond with
> someone offlist possibly about what may be causing a timeout
> on the script I wrote using the Net-Telnet-Cisco perl module.
> Actually, what would be better is if I could see some sample
> scripts. I've got scripts that can backup configs to tftp with
> no problem. I also wrote one that can send an email based
> on whether a value from a show command passes a test.
> I'm happy to share. But I can't seem to write one that deals
> appropriately with
> the long pause that occurs when copying an image to
> flash.
>
> Since I'm wasting space here on the list, I was wondering also if
> anyone agrees with me that there's a need for an Enterprise
> Network engineering list. It seems to me that most networking
> lists are geared towards ISPs or Certifications whereas
> it would be nice if there were a list devoted to Enterprise
> or corporate networks. ...a place where one could discuss
> load balancing, QoS, WAN vendors, design issues, etc.
>
> Thanks,
> BM
>
>
> _______________________________________________________________________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Wed Aug 06 2003 - 06:52:57 GMT-3