HP 5900AF-48XG-4QSFP+ Switch – Copy from USB
Copying files from a USB flash drive Every 5900 switch provides a USB port for you to copy files from a USB flash drive.
To copy a file from a USB flash drive to the Flash memory of the master switch:
1. Reinitialize USB drive :
<HP>cd slot1#flash:/
<HP>%Jan 1 00:27:54:421 2011 HP FS/4/FS_REMOVED: usba: removed from slot 1
%Jan 1 00:27:54:858 2011 HP FS/5/FS_INSERTED: usba: inserted into slot 1
<HP>dir usba0:/
Directory of usba0:
0 -rw- 80509952 Dec 16 2015 10:55:20 5900_5920-CMW710-R2422P01.ipe
1 -rw- 7309312 Jan 01 2011 00:15:46 5900_5920-cmw710-boot-r2311p05.bin
2 -rw- 12679168 Dec 16 2015 10:59:34 5900_5920-cmw710-packet-capture-r2422p01.bin
3 -rw- 54262784 Jan 01 2011 00:13:18 5900_5920-cmw710-system-r2311p05.bin
4 drw- – Aug 03 2016 08:48:02 System Volume Information
2. Checks :
<HP>display boot-loader
Software images on slot 1:
Current software images:
flash:/5900_5920-cmw710-boot-r2311p05.bin
flash:/5900_5920-cmw710-system-r2311p05.bin
Main startup software images:
flash:/5900_5920-cmw710-boot-r2311p05.bin
flash:/5900_5920-cmw710-system-r2311p05.bin
Backup startup software images:
None
3. Copy USB to FLASH :
<HP>Copy usba0:/5900_5920-cmw710-packet-capture-r2422p01.bin to flash:/5900_5920-cmw710-packet-capture-r2422p01.bin
<HP>Copy usba0:/5900_5920-CMW710-R2422P01.ipe to flash:/5900_5920-CMW710-R2422P01.ipe
4. Backup Existing startup Image :
<HP>boot-loader file boot flash:/5900_5920-cmw710-boot-r2311p05.bin system flash:/5900_5920-cmw710-system-r2311p05.bin slot 1 backup
This command will set the backup startup software images. Continue? [Y/N]:y
The images that have passed all examinations will be used as the backup startup software images at the next reboot on slot 1.
5. Setup Main startup Image :
<HP>boot-loader file flash:/5900_5920-CMW710-R2422P01.ipe slot 1 main
Verifying image file………Done.
Images in IPE:
5900_5920-cmw710-boot-r2422p01.bin
5900_5920-cmw710-system-r2422p01.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to target slot.
Decompressing file 5900_5920-cmw710-boot-r2422p01.bin to flash:/5900_5920-cmw710-boot-r2422p01.b in……………………Done.
Decompressing file 5900_5920-cmw710-system-r2422p01.bin to flash:/5900_5920-cmw710-system-r2422p01.bin……………………………………………………………………………………………………………………………Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.
6. Checks :
<HP>display boot-loader
Software images on slot 1:
Current software images:
flash:/5900_5920-cmw710-boot-r2311p05.bin
flash:/5900_5920-cmw710-system-r2311p05.bin
Main startup software images:
flash:/5900_5920-cmw710-boot-r2422p01.bin
flash:/5900_5920-cmw710-system-r2422p01.bin
Backup startup software images:
None
7. Finally :
<HP>reboot
Start to check configuration with next startup configuration file, please wait.……..DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:y
Saved the current configuration to mainboard device successfully.
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait…
8. When Switch is rebooted, Confirm Boot Loader is running the new image & old image is backed up :
<HP>display boot-loader
Software images on slot 1:
Current software images:
flash:/5900_5920-cmw710-boot-r2422p01.bin
flash:/5900_5920-cmw710-system-r2422p01.bin
Main startup software images:
flash:/5900_5920-cmw710-boot-r2422p01.bin
flash:/5900_5920-cmw710-system-r2422p01.bin
Backup startup software images:
flash:/5900_5920-cmw710-boot-r2311p05.bin
flash:/5900_5920-cmw710-system-r2311p05.bin
Summary Commands :
<HP>cd slot1#flash:/
<HP>dir usba0:/
<HP>display boot-loader
<HP>Copy usba0:/5900_5920-cmw710-packet-capture-r2422p01.bin to flash:/5900_5920-cmw710-packet-capture-r2422p01.bin
<HP>Copy usba0:/5900_5920-CMW710-R2422P01.ipe to flash:/5900_5920-CMW710-R2422P01.ipe
<HP>boot-loader file boot flash:/5900_5920-cmw710-boot-r2311p05.bin system flash:/5900_5920-cmw710-system-r2311p05.bin slot 1 backup
<HP>boot-loader file flash:/5900_5920-CMW710-R2422P01.ipe slot 1 main
<HP>display boot-loader
<HP>reboot