Dell Networking SONiC Sådan monteres og frakobles USB

Summary: Denne artikel forklarer, hvordan du monterer og frakobler USB i Dell Networking SONiC.

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

BEMÆRK: For at bruge USB på en DELL Networking SONiC i en netværksswitch skal vi sikre, at USB Enable er konfigureret. Usb er som standard deaktiveret.

Denne artikel gælder for Dell SONiC 4.0.1 og derover. For ældre firmwareversion skal du bruge nedenstående link.
 Dell Networking SONiC Firmware version 3.x, 4.0.0 Sådan tilsluttes USB og kopieres fil mellem switch og USB


Dell SONiC understøtter filsystemerne FAT32, vfat, ext2, ext3 og ext4 på USB-medier


Kommandosyntaks

Kommando  Forklaring
sonic :~$ sonic-cli Åbn Dell Sonic CLI
sonic# konfigurer terminal Gå i konfigurationstilstand
sonic(config)# usb enable Aktivér USB
sonic(config)# ingen USB Deaktiver USB
sonic(config)# exit Afslut konfigurationstilstand
sonic# usb-montering  Monter USB
sonic# usb un-mount  Frakobl usb


Brug følgende kommandoer til at kontrollere, om USB er tilsluttet

Kommando  Forklaring
sonic# show usb Vis USB-oplysninger
sonic# show usb partitions (sonic# vis USB-partitioner) Der blev fundet usb-enhedspartitioner til visning
sonic# vis usb-enheder Der blev fundet usb-enheder til visning
sonic# dir usb:/  Vis usb-indhold
 

Når USB er monteret, kan vi bruge kopikommandoen til at kopiere filer mellem USB og switch, hvilket kan være nyttigt i forbindelse med sikkerhedskopiering af konfiguration, kopiering af teknisk supportfil osv. 


Eksempel på output

Konfigurer USB-aktivering
sonic# 
sonic# configure terminal
sonic(config)# usb enable 
sonic(config)# exit
sonic# 

Verificer konfigurationen
sonic# show running-configuration | grep "usb enable"
usb enable
sonic# 

MONTER USB
sonic# usb mount 

Kontrollér, om USB er monteret og dets indhold
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

FRAKOBL 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-ON
Article 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.