How to upgrade uboot from Omnivista 2500 4.7R1 ?

Hello,

We have 200 OS6560 which need an uboot upgrade. How can it be done with Omnivista 2500 4.7R1 ? OV2500 schedule upgrade only allows AOS upgrade, not uboot upgrade.

Of course we can do it with SSH, but where is the utility of Omnivista Schedule Upgrade then ?

Bonjour, Nous avons à peu près deux cents commutateurs OS6560 qui nécessitent un upgrade d'uboot. Comment exécuter automatiquement cet upgrade d'uboot dans Omnivista ? Merci d'avance.

D. Margot UCLouvain

 

HI

OV4.7 has a module called CLI scripting which accepts Java scripting. You can do an script like:

show running-directory

<js> /*TEST */ cli.setTimeout(2, 30); cli.sendCmd("tftp -g -r OS6360-u-boot.8.9.R02.85.tar.gz -l OS6360-u-boot.8.9.R02.85.tar.gz 192.168.101.20 "); cli.expectPrompt("->"); cli.errorLog("Perfoming Uboot Upgrade"); cli.sendCmd("update uboot cmm all file /flash/OS6360-u-boot.8.9.R02.85.tar.gz"); cli.expectPrompt("->"); cli.cliSleep(5000); cli.sendCmd("reload from working no rollback"); var module = cli.lastResponse(); cli.sendCmd("Y"); cli.sendCmd("/n"); </js>

and the output log will be like

export PS1="->" -> export PS1="->" ->export PS1="->" ->show running-directory

CONFIGURATION STATUS Running CMM : MASTER-PRIMARY, CMM Mode : VIRTUAL-CHASSIS MONO CMM, Current CMM Slot : CHASSIS-1 A, Running configuration : WORKING, Certify/Restore Status : CERTIFIED SYNCHRONIZATION STATUS Running Configuration : SYNCHRONIZED

->tftp -g -r OS6360-u-boot.8.9.R02.85.tar.gz -l OS6360-u-boot.8.9.R02.85.tar.gz 192.168.101.20 ->update uboot cmm all file /flash/OS6360-u-boot.8.9.R02.85.tar.gz Starting CMM ALL UBOOT Upgrade

Please wait... reload from working no rollback Y /n

CMM 1/1 Detected OS6360 u-boot-msys-bxh-ac3-AOS-spi.bin: OK U-boot successfully updated Successfully updated

Reload required to activate new firmware.

->reload from working no rollback

Confirm Activate (Y/N) : This operation will verify and copy images before reloading. It may take several minutes to complete....

So in my setup it worked fine. You might change the protocol to get the file from tftp to ftp or sftp and then launch the upgrade. Be careful as usually the prompt may take longer and the call to reload be called before. So you might try to do some testing. Once done then you can send the script to multiple switches. Please be aware that you need to upgrade image to 8.9R02 before doing uboot ugprade. that can be done through scheduled upgrades in OV4.7

 

 

For some reason the parsing of the script is not seen correctly

/*TEST
*/
cli.setTimeout(2, 30);
cli.sendCmd(“tftp -g -r OS6360-u-boot.8.9.R02.85.tar.gz -l OS6360-u-boot.8.9.R02.85.tar.gz 192.168.101.20 “);
cli.expectPrompt(”->”);
cli.errorLog(“Perfoming Uboot Upgrade”);
cli.sendCmd(“update uboot cmm all file /flash/OS6360-u-boot.8.9.R02.85.tar.gz”);
cli.expectPrompt(“->”);
cli.cliSleep(5000);
cli.sendCmd(“reload from working no rollback”);
var module = cli.lastResponse();
cli.sendCmd(“Y”);
cli.sendCmd(“/n”);

/*TEST

*/

cli.setTimeout(2, 30);

cli.sendCmd("tftp -g -r OS6360-u-boot.8.9.R02.85.tar.gz -l OS6360-u-boot.8.9.R02.85.tar.gz 192.168.101.20 ");

cli.expectPrompt(“->”);

cli.errorLog(“Perfoming Uboot Upgrade”);

cli.sendCmd(“update uboot cmm all file /flash/OS6360-u-boot.8.9.R02.85.tar.gz”);

cli.expectPrompt(“->”);

cli.cliSleep(5000);

cli.sendCmd(“reload from working no rollback”);

var module = cli.lastResponse();

cli.sendCmd(“Y”);

cli.sendCmd(“/n”);