Closed Jolly-Pirate closed 1 year ago
Hi @Jolly-Pirate,
If you want to run a command on all detected devices use -d all
instead.
So doing openSeaChest_PowerControl -d all --showEPCSettings
will do what you are trying right now.
The ?
is meant to be a "fill in your number" representation. If you think there is a better way to put this in the help that is more intuitive, please let me know and I will make that change.
Oh, the ?
seemed misleading to me, it looked like a wildcard. Usually parameters like that are expressed as <id>
for example. Perhaps the documentation should be corrected like so.
openSeaChest_PowerControl -d /dev/sg<device number> --showEPCSettings
Also, the all
parameter doesn't appear in the options, when running the command, so I couldn't have known its existence. This should be added as well.
Utility Arguments
=================
-d, --device deviceHandle
@Jolly-Pirate,
Thanks for the feedback!
I've pushed an update for the missing -d all
help information. I will look at the <id>
idea next.
I'll leave this open until I've finished that work and pushed an update for that as well.
Release https://github.com/Seagate/openSeaChest/releases/tag/v23.03 contains the help updates I mentioned in my last comment.
I'm leaving this open for now to look at the
I implemented the <id>
as <#>
in the handle examples since this seemed to make the most sense for now since the handles being used today/are expected (or recommended by openSeaChest in the case of Linux sd vs sg) all use numbers.
This is included in v23.03.1 that was just released. I'm closing this since I believe all issues have been addressed, but please feel free to reopen this if I need to look at anything else or create a new issue as you see fit.
Running the command
openSeaChest_PowerControl
for example, it cites a few examples such asopenSeaChest_PowerControl -d /dev/sg? --showEPCSettings
, however, running any command with the device wildcard (?) doesn't work properly, it only shows an output for the/dev/sg0
device, but not the rest. The same problem happens with the SeaChest tools from Seagate's website.