A hydraulic shovel includes a control device including: a vehicle controller for storing a program and configured to execute rewriting processing of rewriting the program by an update program, and a communication controller configured to store the update program received from the server; and a rewriting determination part to detect whether or not the hydraulic shovel is in an electric power supply state in which electric power is supplied to an electrical component. The control device starts transfer of the update program from the communication controller to the vehicle controller when the rewriting determination part detects that the hydraulic shovel is not in an electric power supply state, and suspends transfer of the update program when the rewriting determination part detects that the hydraulic shovel is in an electric power supply state after the transfer is started and before the transfer is completed.