Considering the system security, and in order to prevent the virus spreading through the USB interface, use USB disable function to disable external USB interface of the switch. All the external USB interfaces of the switch will be unavailable after they have been disabled.
The USB disable function is supported on the following platforms:
Configuring USB Disable Function
• Use the following command to disable or enable the USB interfaces of the switch.
set system usb disable [true | false]
The default setting is set system usb disable false. The command takes effect immediately after committing.
• Disable the USB interfaces.
• Enable the USB interfaces.
Verify the Configuration
• Use blkid command to view the information of the switch disk. The external USB disk will not be shown if the USB interfaces are disabled.