#set ip address on vlan interface 1 (system-view)
interface Vlan-interface 1
ip address <ip-address> <subnet>
#delete existing firmware files (user-view)
delete /unreserved flash:/5700-cmw710-boot-r2422p01.bin
delete /unreserved flash:/5700-cmw710-system-r2422p01.bin
#tftp new firmware to switch (user-view)
tftp <ip-address> get 5700-CMW710-R2422P02.ipe
#set the main startup software images (user-view)
boot-loader file flash:/5700-CMW710-R2422P02.ipe slot 1 main
#at the end, it will ask to delete the .ipe file
#reboot switch
reboot