37
(2) Configuration file
Shown below is the description of items of the configuration file referred to by the CLI.
Attribute name
Default
Description
server_ip
127.0.0.1
Specify the IP address of the server on which you have
installed EEM.
server_port
8080
Specify the port number of the REST service.
timeout
30
Specify timeout time (in seconds) of the HTTP session.
auth
0
Specify the type of authentication.
0: No use
1: Use Basic authentication to specify your user name and
password in the character string encoded by Base64.
2: Use Basic authentication to specify your user name and
password in plain text.
encoded_id
None
Specify a character string of your user name and password
concatenated by
“:” and encoded by Base64 for auth=1.
user
None
Specify a user name in plain text for auth=2.
password
None
Specify a password in plain text for auth=2.
ssl
false
When this is true, HTTPS communication is enabled.
cert
None
Specify the path of the server certificate for ssl=true.
Refer to
“Notes” for the server certificate.
print_json
false
The result of execution is displayed in JSON format if this is
true.
validation
true
The command line argument is checked if this is true.
[Notes]
You can read the configuration file stored in any folder by specifying an option “-c CONFIG, --
config CONFIG” when you execute a command.
An error is generated when the configuration file is not found in the path specified by the
option.
The configuration file stored in the same folder as that of eemcli.py is read when the option is
omitted.
When no configuration file is found, all set items are defaulted.
(3) Log output
The result of executing the CLI is output to the standard output and the standard error output.
You can output the debug log by specifying “-v, --verbose” option when you execute a
command.
(4) End status
“0” is returned for a normal end. A positive integer is returned for an abnormal end.
(5) Format
eemcli.py [-h] [-v] [-c CONFIG] subcommand ...
-
h, --help: Output the help message and terminate.
-
v, --verbose: Output the debug log.
-
c CONFIG, --config CONFIG: Read the config file specified in CONFIG.
Summary of Contents for ExpEther-2S
Page 2: ... Memo ...
Page 111: ...91 Memo ...