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 command file show usb://QEMUVVFAT/ at DUT0 and expect this output:
Show output
--------------------------------- Name Type Size Last modified ---------------------------------
Step 2: Run command file copy running://auth/ssh_host_secure_ecdsa_key.pub usb://QEMUVVFAT/ at DUT0 and expect this output:
Step 3: Run command file show usb://QEMUVVFAT/ at DUT0 and expect this output:
Show output
-------------------------------------------------------------------- Name Type Size Last modified -------------------------------------------------------------------- ssh_host_secure_ecdsa_key.pub text/plain 171B 2025 Oct 10 17:30
Step 4: Run command show system storage at DUT0 and check if 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.4 GB Used Storage: 375.672 MB
Step 5: Run command show system storage detail at DUT0 and check if 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 376M 7.0G 5% usb://QEMUVVFAT 504M 8.0K 504M 1%
Step 6: Run command show system storage detail json at DUT0 and check if output matches the following regular expressions:
\["Internal memory", ".+", ".+", ".+", ".+%"\] \["usb:\/\/QEMUVVFAT", ".+", ".+", ".+", ".+%"\]Show output
[ ["Internal memory", "7.8G", "376M", "7.0G", "5%"], ["usb://QEMUVVFAT", "504M", "8.0K", "504M", "1%"] ]