This script calls the methods of the IEDK services in the Edge Device via a command line interface and can set these methods with several parameters.
The following command can be used to access detailed logs and more options:
iedkcli --help
First, IEDK services and their methods can be accessed with the following command:
iedkcli list
An output is taken as in the figure below:
Service names and methods of those services are obtained with this command. Then, the services are called with the following commands:
NOTICE
The way to provide parameters can be determined by examining the proto files. It is stated in the proto files that it should be sent as a proto message. In the iedkcli script, these values must be passed as JSON string.
NOTICE
--param is optional. With Getter methods of the services, its usage is redundant.
iedkcli call --service "ntp" --method "GetNtpServer" --param ""
# or it can be used as follows.
iedkcli call --service "ntp" --method "GetNtpServer"
iedkcli call --service "ntp" --method "SetNtpServer" --param '{"ntpServer":["0.tr.pool.ntp.org", "1.tr.pool.ntp.org"]}'
iedkcli call --service "network" --method "GetAllInterfaces" --param ""
# or it can be used as follows.
iedkcli call --service "network" --method "GetAllInterfaces"
NOTICE
The same format is used for the methods of other services.