Configuration Management
Function
Configures the remote server where the Kunpeng DevKit has been deployed and verifies the server certificate and root certificate addresses.
Syntax
1 | /opt/DevKit/tools/devkit setconfig -a <ip> -p <port> -k <true/false> -f <cert_file> -t<all/csv/html> |
/opt/DevKit/tools/ is the directory for storing the tool. Replace it with the actual directory.
Parameter Description
Argument |
Parameter |
Description |
|---|---|---|
-a/--address |
ADDRESS |
IP address of the remote server where the Kunpeng DevKit server has been deployed. This parameter is mandatory. NOTE:
The client that uses the Kunpeng DevKit terminal tool must be connected to the remote server. |
-p/--port |
PORT |
HTTPS port of the remote server where the Kunpeng DevKit server has been deployed. This parameter is mandatory. Port range: 1024-65535. |
-k/--ssl-verify |
|
Indicates whether to check the certificate. The default value is true. |
-f/--ca-file |
CA_FILE |
Checks whether the certificate file exists. This parameter is optional. The parameter content is the path of the root certificate. |
-t/--report-type |
|
Format of the report to be exported. The default value is all. |
Example
The following uses remote server configuration as an example. Go to the actual storage path of the DevKit terminal tool.
1 | ./devkit setconfig -a x.x.x.x -p 8086 -k false -t all |
In the preceding command, x.x.x.x indicates the IP address of the remote server.