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_rsa_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_rsa_key.pub text/plain 563B 2024 Jul 3 14:10
Step 4: Run command show system storage
at DUT0
and check if output matches the following regular expressions:
Total:\s+\d+ kB Free:\s+\d+ kB Used:\s+\d+ kBShow output
Total: 8144384 kB Free: 7784504 kB Used: 359880 kB
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 352M 7.1G 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", "352M", "7.1G", "5%"], ["usb://QEMUVVFAT", "504M", "8.0K", "504M", "1%"] ]