The enterprise network shown in Figure 1 supports the EasyDeploy function. SwitchA functions as a DHCP relay agent and Commander. SwitchA, DHCP server, and the file server have reachable routes to each other.
Client5 on the network fails, and services of users connected to Client5 are interrupted. To resume services for users, Client5 must be replaced by a new client. The new client needs to take over services of Client5 quickly to minimize impact of the fault.
The MAC address of the new client is 0200-0000-0000, and the new client needs to download the web page file web_1.web.7z.
Faulty device replacement can be implemented on a network where EasyDeploy has been deployed, and the file server, DHCP server, and Commander have been configured.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] easy-operation [SwitchA-easyoperation] backup configuration interval 72
[SwitchA-easyoperation] client 5 replace mac-address 0200-0000-0000 [SwitchA-easyoperation] client 5 replace web-file web_1.web.7z
# Check client replacement information.
[SwitchA-easyoperation] display easy-operation client replace The total number of replacement information is : 1 ----------------------------------------------------------- ID Replaced Mac Replaced Esn ----------------------------------------------------------- 5 0200-0000-0000 - -----------------------------------------------------------
# After the faulty device replacement process starts, run the display easy-operation client 5 command to check the status of the new client.
[SwitchA-easyoperation] display easy-operation client 5 --------------------------------------------------------------------------- Client ID : 5 Host name : HUAWEI Mac address : 0200-0000-0000 ESN : 210235182810xxxxxxxx IP address : 192.168.1.254 Model : S5701-28X-LI-AC Device Type : S5700-X-LI System-software file : flash:/S5700XLI.cc System-software version : V200R005C00 Configuration file : - Patch file : - WEB file : - License file : - System CPU usage : 55% System Memory usage : 44% Backup configuration file : vrpcfg-0300-0000-0000.zip Backup result : Successful Last operation result : - Last operation time : 0000-00-00 00:00:00 State : UPGRADING Aging time left (hours) : - ---------------------------------------------------------------------------
[SwitchA-easyoperation] display easy-operation download-status The total number of client in downloading files is : 1 ------------------------------------------------------------------------------- ID Mac address IP address Method Phase Status ------------------------------------------------------------------------------- 5 0200-0000-0000 192.168.1.254 Zero-touch Web-file Upgrading
SwitchA configuration file
# sysname SwitchA # vlan batch 10 20 # dhcp enable # interface Vlanif10 ip address 192.168.1.6 255.255.255.0 dhcp select relay dhcp relay server-ip 192.168.3.2 # interface Vlanif20 ip address 192.168.4.2 255.255.255.0 # interface GigabitEthernet0/0/1 port link-type hybrid port hybrid pvid vlan 10 port hybrid untagged vlan 10 # interface GigabitEthernet0/0/2 port link-type hybrid port hybrid pvid vlan 10 port hybrid untagged vlan 10 # interface GigabitEthernet0/0/3 port link-type hybrid port hybrid pvid vlan 10 port hybrid untagged vlan 10 # interface GigabitEthernet0/0/4 port link-type hybrid port hybrid pvid vlan 20 port hybrid untagged vlan 20 # ip route-static 0.0.0.0 0.0.0.0 192.168.4.1 # easy-operation commander ip-address 192.168.1.6 easy-operation commander enable # easy-operation sftp-server 192.168.2.2 username admin password %^%#=.X8C_TN##%&9P>3RK503O@w-=Fr%>naT#E3P4{0%^%# backup configuration interval 72 client 5 mac-address 0300-0000-0000 # return
SwitchB configuration file
# sysname SwitchB # vlan batch 30 # dhcp enable # ip pool easy-operation gateway-list 192.168.1.6 network 192.168.1.0 mask 255.255.255.0 option 148 ascii ipaddr=192.168.1.6; # interface Vlanif30 ip address 192.168.3.2 255.255.255.0 dhcp select global # interface GigabitEthernet0/0/1 port link-type hybrid port hybrid pvid vlan 30 port hybrid untagged vlan 30 # ip route-static 0.0.0.0 0.0.0.0 192.168.3.1 # return