# Query EKS Cluster

{% embed url="<https://drive.google.com/file/d/1AAS5VRDTbDSz1BSDZftqSc4xahukhMB8/view?usp=sharing>" %}

To perform operational commands and retrieve specific information about your EKS cluster, you can utilize the `ops.sh` script. This script provides various commands that can be executed in the AWS Cloud Shell or a terminal environment. Here are the available commands:

* `getPodRestart`: Use this command to restart the writer pods in the cluster.
* `getEnodeId`: Use this command to obtain the Enode ID of the Writer Node.
* `getNodeAddress`: Use this command to fetch the address of the Writer node.
* `getConnectionStatus`: Use this command to check the status of the nodes' connection.
* `getbesuLogs`: Use this command to view the besu container logs To execute any of these commands, follow these steps:

Step 1: Make sure you have the `ops.sh` script available. If not follow stage 3 again. Step 2: Open the AWS Cloud Shell or a terminal environment. Step 3: Navigate to the location where the `ops.sh` script is located. Step 4: Run the following command to source the script:

```
    source ops.sh
```

Once the script is sourced, you can run any of the commands mentioned above by simply typing the command in the AWS Cloud Shell and pressing Enter. The output will be displayed accordingly.

Note: Ensure that you have appropriate permissions and access to the EKS cluster before running these commands.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://launchnodes.gitbook.io/lacchain/query-eks-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
