Patent ID: 8375252

Claim:
A method for automatic device failure recovery, comprising: obtaining, by a device, after a failure occurs in the device, information associated with a plurality of versions of recovery program files corresponding to the device from a server; determining, by the device, whether the information associated with the plurality of versions of the recovery program files obtained from the server includes information associated with a version of a program file with which the device last operated normally by comparing information associated with a plurality of versions of the program file with which the device operated normally stored by the device itself with the information associated with the plurality of versions of the recovery program files corresponding to the device obtained from the server; if the information associated with the plurality of versions of the recovery program files obtained from the server includes information associated with the version of the program file with which the device last operated normally, downloading, by the device, the version of the program file with which the device last operated normally from the server; otherwise, downloading, by the device, a previous version of the program file with which the device operated normally from the server; and performing, by the device, failure recovery using the downloaded version of the program file.