Dell Networking SONiC 如何掛載和卸下 USB
Summary: 本文說明如何在 Dell Networking SONiC 中掛接和卸下 USB。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
|
注意:若要在網路交換器的 DELL Networking SONiC 上使用 USB,我們必須確保已設定USB 啟用。依預設,USB已停用。
本文適用于 Dell SONiC 4.0.1 及更新版本。針對舊版韌體版本,請使用以下連結。 Dell Networking SONiC 韌體版本 3.x、4.0.0 如何在交換器和 USB 之間掛接 USB 和複製檔案 |
Dell SONiC 在 USB 媒體上支援 FAT32、vfat、ext2、ext3 和 ext4 檔案系統
命令語法
| 命令 | 說明 |
|---|---|
| sonic:~$ sonic-cli | 輸入 Dell Sonic CLI |
| sonic# configure terminal | 進入設定模式 |
| sonic(config)# usb enable | Enable usb (啟用 USB) |
| sonic(config)# no usb | 停用 USB |
| sonic(config)# exit | 結束設定模式 |
| sonic# usb 固定架 | 掛載 USB |
| sonic# usb 卸載 | 取消掛接 USB |
使用下列命令確認 USB 是否已連線
| 命令 | 說明 |
|---|---|
| sonic# show usb | 顯示 USB 資訊 |
| sonic# show usb 分割區 | 顯示偵測到的 USB 裝置分割區 |
| sonic# show usb devices | 顯示偵測到的 USB 裝置 |
| sonic# dir usb:/ | 顯示 USB 內容 |
安裝 USB 後,我們可以使用 複製 命令在 usb 和交換器之間複製檔案,這對於備份組態、複製技術支援檔案等都有所説明。
範例輸出
設定 USB 啟用
sonic# sonic# configure terminal sonic(config)# usb enable sonic(config)# exit sonic#
驗證組態
sonic# show running-configuration | grep "usb enable" usb enable sonic#
掛載 USB
sonic# usb mount
檢查 USB 是否已掛接及其內容
sonic# show usb Auto Detection: Enabled -------------------------------------------------------------------- Mount Dir Device Name Filesystem -------------------------------------------------------------------- /media/usb0 /dev/sdb vfat sonic# show usb partitions -------------------------------------------------------------------- Device name Mount Dir Filesystem -------------------------------------------------------------------- /dev/sdb vfat sonic# show usb devices -------------------------------------------------------------------- Device name Manufacturer Model Name -------------------------------------------------------------------- /dev/sdb Generic Flash Disk sonic# dir usb:/ ------------------------------------------------------------------------- Date(Last Modified) Size(Bytes) Type Filename ------------------------------------------------------------------------- XXXX-XX-XX XX:XX XXXXX - XXX XXXX-XX-XX XX:XX XXXXX - XXX XXXX-XX-XX XX:XX XXXXX - XXX
取消掛接 USB
sonic# usb un-mount
Affected Products
Enterprise SONiC Distribution, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON, PowerSwitch Z9432F-ONArticle Properties
Article Number: 000212218
Article Type: How To
Last Modified: 25 May 2023
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.