Step 6: Monitor your Node via Screen
Last updated
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.If you have multiple Screen sessions, you can kill the one you don’t need as follows:
screen -XS <screen_id> quitReplace the following values: -
<screen_id>- the id of your current Screen session -Example:screen -xs 82824 quit
Anytime you want to see the logs from your node, you can reattach to that session as follows:
Comment
screen -r <screen_id>where <screen_id> is the numbers of your Screen session.
Example:
screen -r 82824Note, 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.
You can detach from your current Screen session by pressing:
ctrl a + d (Windows)
control a + d (macOS)
or
where <screen_id> is the numbers of your Screen session.
Example:
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:
Last updated
screen -d <screen_id>screen -d 82824logout