You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To debug the state of an STH or STU it makes sense to read (and write) some of the (EEPROM) attributes of these nodes. Ideally we should offer a command line application (Python script) that allows us to read all or specific attributes of a node. Contrary to the current design of the ICOc the application would not work interactively, but instead behave just like a normal command line application such as cat, head or git. This should make it possible to also use the program in (Shell) scripts to automate certain tasks.
Examples
General
I am still unsure about the name of the tool. In the examples below I just call it “ICOn” or icon. Of course I am open for better name suggestions.
Reading all attributes of a certain unit could look like this
icon read --name GGvXEd6B --type STH
and the output could look something like this:
EEPROM Status: Initialized (0xac)
Name: CGvXAd6B
Production Date: 2019-07-03
…
The idea here is to use subcommands (read in this example) to specify the purpose of the command just like other tools such as docker or git do.
Description
To debug the state of an STH or STU it makes sense to read (and write) some of the (EEPROM) attributes of these nodes. Ideally we should offer a command line application (Python script) that allows us to read all or specific attributes of a node. Contrary to the current design of the
ICOc
the application would not work interactively, but instead behave just like a normal command line application such ascat
,head
orgit
. This should make it possible to also use the program in (Shell) scripts to automate certain tasks.Examples
General
I am still unsure about the name of the tool. In the examples below I just call it “ICOn” or
icon
. Of course I am open for better name suggestions.Reading all attributes of a certain unit could look like this
icon read --name GGvXEd6B --type STH
and the output could look something like this:
The idea here is to use subcommands (
read
in this example) to specify the purpose of the command just like other tools such asdocker
orgit
do.Reading a Single Attribute
Command
Output
Writing a Single Attribute
Command
Output
None
Retrieving All Available STHs
Command
Output
The text was updated successfully, but these errors were encountered: