Patent ID: 8379248

Claim:
An image-forming apparatus comprising: a reception unit configured to receive a start instruction and an end instruction entered by a service engineer who performs a maintenance work for the image-forming apparatus; a first holding unit configured to store first counter information obtained by the image-forming apparatus in a case that the reception unit receives the start instruction; a second holding unit configured to store second counter information obtained by the image-forming apparatus in a case that an operating state of the image-forming apparatus satisfies a first end condition; a third holding unit configured to store third counter information obtained by the image-forming apparatus in a case that the reception unit receives the end instruction entered by the service engineer; a generation unit configured to generate maintenance information based on the second counter information stored in the second holding unit if the operating state of the image-forming apparatus satisfies the first end condition and further satisfies a second end condition before the reception unit receives the end instruction from the service engineer; and a deletion unit configured to delete the second counter information stored in the second holding unit in a case that the reception unit receives the end instruction entered by the service engineer after the operating state of the image-forming apparatus satisfies the first end condition, wherein the generation unit generates maintenance information based on the third counter information stored in the third holding unit in a case that the reception unit receives the end instruction entered by the service engineer, and wherein the second end condition is satisfied in a case that, after a predetermined time has elapsed after the reception of the start instruction for the maintenance work, the service engineer enters a start instruction again for a maintenance work without entering the end instruction of the maintenance work.