[BMC] How to update the Accton-BMC via web interface?

Steven_zhangCreated at:Dec 10, 2019 14:20:23Updated at:Dec 11, 2019 09:51:04

Purpose:

This post shows the procedures to update the Accton-BMC via the web.

Model:

AS5916-54XKS, AS5916-54XL

Preparation:

A. Personal computer 

B. BMC_Updater

  • Download the BMC-updater image for your own device.

C. Serial Console cable:

  • A cable which attached in the original box.

D. Console terminal

  • Putty,Teraterm,SecureCRT,etc...

E. Web browser

  • Chrome, Opera, etc..

Procedure:

STEP1. Plugin the ethernet cable to the MGMT on the front panel of switch. (e.g., AS5916-54XL)

 mceclip1.png

STEP2. Plugin the console cable into console port on the front panel of switch. (e.g., AS5916-54XL)

mceclip2.png

STEP3. Open the terminal. (e.g., Teraterm)

Note:  Please set the baud rate as 115200

picutre01.jpg

STEP4. Reboot the data center and enter the "Onie: Rescue " mode.

mceclip0.png

STEP5. There are two flashes in BMC, one flash01, another flash02. If we want to update the BMC firmware, please update twice. The following command shows the flash which you select. (e.g., 01, at the flash 01)

ONIE:/ #  ipmitool raw 0x34 0x96

mceclip4.png

STEP6. Set the BMC IP mode, IP address, Netmask and gateway.

ONIE:/ # ipmitool lan set 1 ipsrc static
ONIE:/ # ipmitool lan set 1 ipaddr 192.168.0.100
ONIE:/ # ipmitool lan set 1 netmask 255.255.255.0
ONIE:/ # ipmitool lan set 1 defgw ipaddr 192.168.0.254

 mceclip5.png

STEP7. Check the current status of BMC IP.

ONIE:/ # ipmitool lan print

mceclip2.png

STEP8. Open a web browser to login into the BMC web interface. (e.g., Chrome, URL: https://192.168.0.100/)

mceclip1.png

Note: Please allow going on the web page manually, because the web browser will determine that it is not secure.

STEP9.  Enter the "Username" and "Password" then click "OK".

Username: ADMIN

Password: ADMIN

mceclip2.png

STEP10. The "Properties" page is displayed the current version of BMC, it showed hexadecimal.  (e.g., Firmware version: 00.4A)

mceclip3.png

STEP11. Click the "update" option and click “Choose File” then choose the firmware image file. (e.g., AS5916_54XL_BMC_v00_4Bh_firmimg_ast2400.bin)

mceclip4.png

STEP12.  After seeing the firmware image file chosen, click “Upload” option.

mceclip5.png

STEP13. When prompted, click “OK” to start the upload.

mceclip6.png

STEP14. Please wait for the several minutes when showing upload is in progress.

mceclip7.png

STEP15. The web interface will show the current version and the new version when the update is completed. 

Note: “Preserve Configuration” is enabled by default, please disable the “preserve configuration” when updating the firmware.

mceclip8.png

STEP16. After checking the version and uncheck the “Preserve Configuration” option, click "update" option below the button.

mceclip9.png

STEP17. When prompted, click “OK” to start the update.

mceclip11.png

STEP18. Wait for the update process until 100% completed. 

mceclip10.png

STEP19. Reflash the BMC web interface again and check the firmware version.

mceclip13.png

 

STEP20. You could also use the "ipmitool mc info" command under the ONIE to check the current firmware version.

ONIE:/ # ipmitool mc info

mceclip14.png

STEP21. Now, the flash 01 has been updated, switch to flash 2.

ONIE:/ # ipmitool raw 0x34 0x98      //Switch the flash from 01 to 02

mceclip16.png

STEP22. After switching, need to reset the BMC. It takes about 2 minutes.

ONIE:/ # ipmitool mc reset cold

mceclip20.png

STEP23. Check the BMC flash again. (e.g., 02, at the flash 02)

ONIE:/ # ipmitool raw 0x34 0x96

mceclip21.png

STEP24. Please follow STEP6 to STEP20 again for the second flash. (e.g., The result of flash 02)

mceclip22.png

ONIE:/ # ipmitool mc info

mceclip23.png