This topic describes how to create a product connection in OAgent to access OCP and OAS services.
Prerequisites
You have obtained the service address, login account, and password of OCP, and the account has the permission to view the target cluster and tenant.
If you need to use diagnostic capabilities such as slow SQL, ASH, or root cause analysis, you have obtained the service address of OAS and the username and password for HTTP Basic authentication.
The network is connected between OAgent Gateway and the service addresses of OCP/OAS.
Procedure
In the left navigation bar, click More to go to the Product Management page.
Click Create Product in the upper-right corner.
In the Create Product dialog box, configure the following parameters.
ParameterDescriptionProduct Name The display name of the product, used to reference it with @or by name in sessions. It is recommended to use a name that identifies its environment purpose, for example, "Production OB".OCP Address The service access address of OCP, in the format https://<OCP domain name or IP>:<port>.OCP Username The account for logging into OCP, for example, admin.OCP Password The password corresponding to the above OCP account. OAS Address (Optional) The service access address of OAS, in the format https://<OAS domain name or IP>.OAS Username (Optional) The HTTP Basic authentication username for OAS, which must match the configuration on the gateway side. OAS Password (Optional) The HTTP Basic authentication password for OAS. Click OK.
After successful saving, the product appears in the product list, and OAgent automatically pulls the cluster and tenant information under it.
Editing and modifying
After a product is created, you can adjust it at any time on the Product Management page:
Edit: Click Edit on the product card to modify parameters such as the product name, OCP/OAS addresses, and credentials. After modification, click OK to save. The new configuration takes effect immediately, ongoing sessions are not affected, and subsequent tool calls will use the updated credentials.
Delete: Click Delete on the product card. After confirmation, the product and all connection information under it will be removed. After deletion, historical sessions that depend on this product will no longer be able to initiate new tool calls.
What to do next
To start analysis for a cluster under this product in a session, select the cluster with
@. For details, see Use @ to mention the analysis object.To verify if a connection is available, ask a question like "
has which clusters?" in a session.
Notice
After you change the password of an OCP or OAS account, you must update the credentials saved in Product Management. Otherwise, all tool calls under this product will return authentication failures.