# Step 6: Monitor your Node via Screen

### Show all Screen sessions

To see all Screen sessions, type `screen -ls` . You should see a message that looks as follows:

```
There is a screen on:
	82824.xai	(12/09/2023 11:04:52 AM)	(Detached)
1 Socket in /run/screen/@root.
```

### Kill/Delete a Screen session <a href="#id-210-killdelete-a-screen-session" id="id-210-killdelete-a-screen-session"></a>

If you have multiple Screen sessions, you can kill the one you don’t need as follows:

```
screen -XS <screen_id> quit
```

> Replace the following values:\
> -`<screen_id>` - the id of your current Screen session\
> -Example: `screen -xs 82824 quit`

### Reattach to your Screen session <a href="#id-211-reattach-to-your-screen-session" id="id-211-reattach-to-your-screen-session"></a>

Anytime you want to see the logs from your node, you can reattach to that session as follows:

&#x20;Comment

```
screen -r <screen_id>
```

where `<screen_id>` is the numbers of your Screen session.

Example:

```
screen -r 82824
```

Note, currently you can’t see the rewards using the CLI. You need to install a desktop app for it. For more details refer to [this video](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/how-to-videos/command-line-interface-cli/track-accrued-esxai).

### Detach from your Screen session <a href="#id-28-detach-from-your-screen-session" id="id-28-detach-from-your-screen-session"></a>

You can detach from your current Screen session by **pressing**:

* `ctrl a + d` (Windows)
* `control a + d` (macOS)

or

```
screen -d <screen_id>
```

where `<screen_id>` is the numbers of your Screen session.

Example:

```
screen -d 82824
```

Make sure to **Detach** before exiting the server. Detached mode allows you to exit your Screen session without closing or interrupting any processes that are happening within that session. That means that everything will keep running in the background even if you log out from your VPS.

You can now safely log out from your server:

```
logout
```


---

# 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://xai-foundation.gitbook.io/xai-network/en/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/how-do-i-run-a-xai-node-on-vps/step-6-monitor-your-node-via-screen.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.
