The application relates to the field of script upgrading, and discloses a batch script upgrading method for
firmware based on python, which comprises the following steps: S1, initializing a
graphical user interface: creating a main window based on a Python environment, and configuring a target configuration tab page, a task configuration tab page, a
global configuration tab page and an upgrading execution tab page in the main window, loading default configuration parameters and displaying a main interface; in the application, target configuration, task configuration,
global configuration and upgrading execution are modular tab page managed through a
graphical user interface, an operator can complete batch input of IP addresses, usernames, passwords and other information of
multiple target machines at a time, and unified configuration of
firmware file paths, expected versions, specific upgrading options and other parameters, batch upgrading of multiple
firmware types such as
server BMC,
BIOS, CPLD, PSU, FPGA and REAR_CPLD is realized, and the problem that a traditional Web manual per-
station operation mode is inefficient and time-consuming is completely solved.