{%
    if State == 'New' then
        echo('Please make sure the iBMC is working while upgrading.\r\nUpdating...')
        if PowerState ~= 'OFF' then
            echo('\r\nIt can only be executed when OS is power-off.')
        end
    end

    if State == 'Exception' or State == 'Killed' or State == 'Cancelled' then
        echo(Message.Message or 'Upgrade failed.')
    end

    if State == 'Completed' then
        echo('Upgrade successfully.')
    end
    if GetRealUpgradePath[1] ~= true then
%}
Usage: ipmcset -t maintenance -d upgradebios -v <filepath>
filepath      e.g.: /tmp/image.hpm
Note:
    1.It can only be executed when OS is power-off.{%end%}