Huawei Switch Firmware Upgrade Page
from ncclient import manager with manager.connect(host="10.0.0.1", port=830, username="admin", password="Huawei@123", hostkey_verify=False) as m: # Copy file via SCP m.copy_file(source="http://server/firmware.cc", target="flash:/new_firmware.cc") # Set startup m.edit_config(target="running", config="""<config><sysman><startup><software>flash:/new_firmware.cc</software></startup></sysman></config>""") # Reboot m.reboot()
: Run a hashing tool on your local machine to verify the MD5 or SHA256 checksum of the downloaded files against Huawei’s published values. 2. Backup Current Configuration Huawei Switch Firmware Upgrade
Consult the specific or Release Notes for your target software version on the Huawei Enterprise Support portal. from ncclient import manager with manager