Check Storage
This scenario shows how to display information about storage and attached USB drives.
Check Storage And USB Mount
Description
This scenario checks that USB mount point can be used in OSDx devices (only for SDE/VMs).
Scenario
Note
Plug-in a USB drive.
Step 1: Run the command file show usb://QEMUVVFAT/ on DUT0 and expect the following output:
Show output
--------------------------------- Name Type Size Last modified ---------------------------------
Step 2: Run the command file copy running://auth/ssh_host_secure_ecdsa_key.pub usb://QEMUVVFAT/ on DUT0 and expect no output.
Step 3: Run the command file show usb://QEMUVVFAT/ on DUT0 and expect the following output:
Show output
-------------------------------------------------------------------- Name Type Size Last modified -------------------------------------------------------------------- ssh_host_secure_ecdsa_key.pub text/plain 171B 2026 May 19 12:01
Step 4: Run the command show system storage on DUT0 and check whether the output matches the following regular expressions:
Total(.*):\s+(\S+)\s?([KMGT]B) Used(.*):\s+(\S+)\s?([KMGT]B) Free(.*):\s+(\S+)\s?([KMGT]B)Show output
Total Storage: 7.767 GB Free Storage: 7.368 GB Used Storage: 408.754 MB
Step 5: Run the command show system storage detail on DUT0 and check whether the output matches the following regular expressions:
Device\s+Size\s+Used\s+Available\s+Use % Internal memory.* usb://QEMUVVFATShow output
--------------------------------------------- Device Size Used Available Use % --------------------------------------------- Internal memory 7.8G 409M 7.0G 6% usb://QEMUVVFAT 504M 8.0K 504M 1%
Step 6: Run the command show system storage detail json on DUT0 and check whether the output matches the following regular expressions:
\["Internal memory", ".+", ".+", ".+", ".+%"\] \["usb:\/\/QEMUVVFAT", ".+", ".+", ".+", ".+%"\]Show output
[ ["Internal memory", "7.8G", "409M", "7.0G", "6%"], ["usb://QEMUVVFAT", "504M", "8.0K", "504M", "1%"] ]