---
description: Operational Commands
---

# 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.
