Manually Replacing Faulty Devices Using the Commander
Context
When a client on a network supporting EasyDeploy fails, you can configure replacement information on the Commander so that the new client can quickly obtain the configuration file of the faulty one. This minimizes impact of client failures on the network.
This faulty device replacement function can only be implemented on a network that already has EasyDeploy configured.
In addition, automatic configuration file backup must be enabled on the Commander using the backup configuration interval interval [ duplicate ] command. If the new client fails to obtain backup configuration file information after you start the unconfigured device deployment process, it attempts to obtain configuration file information from the client database. If the new client still fails to obtain configuration file information, it uses default configuration file information. The default configuration of the new client may differ from the configuration of the faulty client.
Pre-configuration Tasks
- Configure a routing protocol to ensure that the DHCP server, file server, Commander, and new client (has obtained an IP address) have reachable routes to each other.
- Configure a file server, configure the DHCP service, and configure the Commander.
- Ensure that the new client has no configuration file.
- Obtain the MAC address or ESN of each device to be configured by viewing the barcode label on the device.
- Ensure that upgrade files or files to be downloaded have been uploaded to the working directory of the file server.
Procedure
Configure client replacement information.
Run the system-view command to enter the system view.
Run the easy-operation command to enter the Easy-Operation view.
Run one of the following commands as required:
If the new client only needs to restore the configuration of the faulty client, run the client client-id replace { mac-address mac-address | esn esn } command to map the client-id to the MAC address or ESN of the new client.
If the new client needs to be upgraded or download other files, run the client client-id replace { { mac-address mac-address | esn esn } | system-software file-name [ version ] | patch file-name | web-file file-name | license file-name | { custom-file file-name } &<1-3> }* command to specify replacement information. The preceding configurations can be completed using the command once or multiple times. You must specify the faulty client ID and the MAC address or ESN of the new client in the command.
Configure an activation policy for downloaded files.
Run the system-view command to enter the system view.
Run the easy-operation command to enter the Easy-Operation view.
Run the activate-file { reload | { in time | delay delay-time } }* command to configure an activation policy for downloaded files.
Replace the faulty device.
Remove the faulty device and connect the new device to the network.