Professional Documents
Culture Documents
V200R019C00
Issue 01
Date 2020-09-01
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website: https://e.huawei.com
Contents
NOTE
----End
1.4 Procedure
You can use any of the following methods to install the plug-in based on the site
requirements:
● Downloading and Loading the Plug-in to the Device
● Loading the Plug-in Using FTP
● Loading the Plug-in Using SFTP
NOTE
SFTPv2 is more secure than FTP and SFTPv1, and is therefore recommended.
Context
Before obtaining the plug-in through FTP, ensure that the PC and AP can
communicate with each other. The PC functions as an FTP server, and the AP
functions as an FTP client to download the plug-in from the PC.
Procedure
Step 1 Configure the PC as an FTP server.
Step 2 Run the ftp ip-address command on the AP to log in to the FTP server.
Set ip-address to the IP address of the PC.
Enter the preset user name and password as prompted and press Enter.
<HUAWEI> ftp 10.3.99.57
Trying 10.3.99.57 ...
Press CTRL+K to abort
Connected to 10.3.99.57.
220 FTP Server ready.
User(10.3.99.57:(none)):
331 Password required for .
Enter password:
230 User logged in.
Step 3 Run the binary command on the AP to set the file transfer mode to binary.
NOTE
FTP supports ASCII and binary file transfer modes. They differ from each other as follows:
● The ASCII file transfer mode (default) is intended for transferring text files through ASCII
characters separated by carriage returns and line feeds.
● The binary file transfer mode is intended for transferring binary files through characters
without format conversion.
The FTP file transfer mode is determined by the client, which can be switched between
ASCII and binary using the CLI. The binary file transfer mode is recommended in this
example.
[HUAWEI-ftp] binary
200 Type set to I.
Step 4 Run the get **.mod command on the AP to download the plug-in from the PC to
the AP. **.mod specifies the file name of the plug-in.
[HUAWEI-ftp] get AP4050DN-E-V200R019C00SPC802WXFJ.mod
200 Port command successful.
150 Opening data connection for AP4050DN-E-V200R019C00SPC802WXFJ.mod.
226 File sent ok
FTP: 537873 byte(s) received in 4.870 second(s) 110.44Kbyte(s)/sec.
Now begins to save file, please wait...
File has been saved successfully.
[HUAWEI-ftp]
Step 5 Run the dir command on the AP to check whether the plug-in file exists in the
current directory.
NOTE
If the size of the plug-in file in the current directory on the AP is different from that on the
PC, an error may occur during file transfer. In this case, upload the plug-in file again.
----End
Context
SFTP runs over the SSH protocol and allows you to use SFTP to set up a secure
connection between a user terminal and a device, enabling you to manage files on
the device while ensuring file transfer security.
Before obtaining the plug-in through SFTP, ensure that the PC and AP can
communicate with each other. The PC functions as an SFTP server, and the AP
functions as an SSH client to download the plug-in from the PC.
Procedure
Step 1 Configure the PC as an SFTP server.
Step 2 Run the system-view command on the AP to enter the system view.
Step 3 Run the ssh client first-time enable command on the AP to enable the first
authentication on the SSH client.
Step 4 Run the sftp ip-address command on the AP to log in to the SFTP server.
Set ip-address to the IP address of the PC.
Enter the preset user name and password as prompted and press Enter.
HUAWEI] sftp 10.246.29.54
Please input the username:huawei123
Trying 10.246.29.54 ...
Press CTRL+K to abort
The server is not authenticated. Continue to access it? [Y/N]:y
Save the server's public key? [Y/N]:n
Enter password:
sftp-client>
Step 5 Run the OpenSSH command to download the local plug-in (**.mod specifying the
plug-in file name) to the AP.
sftp-client>get AP4050DN-E-V200R019C00SPC802WXFJ.mod
Remote file: /home/test/AP4050DN-E-V200R019C00SPC802WXFJ.mod ---> Local file: AP4050DN-E-
V200R019C00SPC802WXFJ.mod\
End of file
Success
Info: Downloading file successfully ended.
Now begins to save file, please wait...
File has been saved successfully.
Step 6 Run the dir command on the AP to check whether the plug-in file exists in the
current directory.
NOTE
If the size of the plug-in file in the current directory on the AP is different from that on the
PC, an error may occur during file transfer. In this case, upload the plug-in file again.
----End
Procedure
Step 1 Run the system-view command to enter the system view.
Step 2 Run the module load filename command to load the plug-in.
<HUAWEI> system-view
[HUAWEI] module load AP4050DN-E-V200R019C00SPC802WXFJ.mod
Info: The module is loaded successfully.
----End
Context
Before obtaining the plug-in through FTP, ensure that the PC and AP can
communicate with each other. The PC functions as an FTP server, and the AP
functions as an FTP client to download the plug-in from the PC.
Procedure
Step 1 Configure the PC as an FTP server.
Step 3 Run the module load ftp filename ip-address username password command to
load the plug-in using FTP.
<HUAWEI> system-view
[HUAWEI] module load ftp AP4050DN-E-V200R019C00SPC802WXFJ.mod 10.3.99.57 huawei
huawei@123
Info: The module is loaded successfully.
----End
Context
SFTP runs over the SSH protocol and allows you to use SFTP to set up a secure
connection between a user terminal and a device, enabling you to manage files on
the device while ensuring file transfer security.
Before obtaining the plug-in through SFTP, ensure that the PC and AP can
communicate with each other. The PC functions as an SFTP server, and the AP
functions as an SSH client to download the plug-in from the PC and load the
plug-in.
Procedure
Step 1 Configure the PC as an SFTP server.
Step 3 Run the module load sftp filename ip-address username password command to
load the plug-in using SFTP.
<HUAWEI> system-view
[HUAWEI] module load sftp AP4050DN-E-V200R019C00SPC802WXFJ.mod 10.3.99.57 huawei
huawei@123
Info: The module is loaded successfully.
----End
After running the plug-in, restart the device to make the plug-in run properly.
<HUAWEI> system-view
[HUAWEI] module enable
Info: The module is enabled successfully.
Warning: The device will be restarted for the module to take effect. Continue? [y/n]:y
Step 4 Run the mirror vap to observe-port both radio-id radio-id ssid ssid command to
configure the VAP-based mirroring function. To reduce the CPU usage of the
device, change both to inbound to mirror only unidirectional traffic.
[HUAWEI] mirror vap to observe-port both radio-id 0 ssid ssid01
[HUAWEI] mirror vap to observe-port both radio-id 1 ssid ssid01
----End
After the plug-in is stopped, restart the device to ensure the normal running of the device.
<HUAWEI> system-view
[HUAWEI] undo module enable
Info: The module is disabled successfully.
Warning: Some functions can be restored after a restart. Do you want to restart the system immediately?
[y/n]:y
----End
After the plug-in is unloaded, all configurations are lost. After the plug-in is reloaded, run the
module enable command again.
<HUAWEI> system-view
[HUAWEI] undo module load
Info: The module is unloaded successfully.
----End
Format
display loaded module-information
Parameters
None
Views
All views
Default Level
1: Monitoring level
Usage Guidelines
You can run this command to view detailed information about loaded or
uninstalled plug-ins.
Example
# Display plug-in information.
<HUAWEI> display loaded module-information
--------------------------------------------------------------------------------
Module Version Load status File name
--------------------------------------------------------------------------------
WXFJ 1.0 Loaded (running) flash:/wxfj.mod
Item Description
Function
The module load command loads a plug-in.
The module load ftp command downloads and loads a plug-in using FTP.
The module load sftp command downloads and loads a plug-in using SFTP.
Format
module load filename
Parameters
Parameter Description Value
filename Specifies the name of the plug-in file to The value is a string
be loaded. of 1 to 127
characters.
username Specifies the user name for logging in to The value is a string
the FTP or SFTP server. of 1 to 31
characters.
Views
System view
Default Level
2: Configuration level
Usage Guidelines
None
Example
# Load a plug-in.
<HUAWEI> system-view
[HUAWEI] module load AP4050DN-E-V200R019C00SPC802WXFJ.mod
Info: The module is loaded successfully.
Function
The module enable command runs a plug-in.
Format
module enable
undo module enable
Parameters
None
Views
System view
Default Level
2: Configuration level
Usage Guidelines
Precautions
If the mode is switched when you run or stop the plug-in, restart the device to
make the new mode take effect.
Prerequisites
The plug-in has been loaded.
Example
# Run the plug-in.
<HUAWEI> system-view
[HUAWEI] module enable
Warning: The device will be restarted for the module to take effect. Continue? [y/n]:y