> For the complete documentation index, see [llms.txt](https://goodblock.gitbook.io/dstor-documentation-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://goodblock.gitbook.io/dstor-documentation-1/storage-node-operation-guide/storage-node-operation/more-useful-commands.md).

# More Useful Commands

Shows connected status to peers over wireguard VPN: <mark style="background-color:blue;">**sudo wg show**</mark>

To bring down and up wireguard:  <mark style="background-color:blue;">wg-quick down wg0 && wg-quick up wg0</mark>

Shows IPFS peers. If empty, no one is connected: *<mark style="background-color:blue;">ipfs swarm peers</mark>*

### Logfiles are in:&#x20;

\~/.pm2/logs/outpost-worker-error.log

\~/.pm2/logs/outpost-worker-output.log

/var/log/nginx/

ipfs log tail

## *Typical Storage Node migration*

### Save old .env

### Stop node:&#x20;

cd \~/dstor-storage-node/ pm2 stop ecosystem.config.js ###Install dependencies git pull npm install

### Update your .env file

Use .env.example as an example. Variables NODE\_PEER\_ALLOWED\_IPS, NODE\_PEER\_LISTEN\_PORT, NODE\_PEER\_PERSISTENT\_KEEPALIVE, NODE\_PEER\_PRIVATE\_KEY might stay empty for default behaviour.

### Restart node&#x20;

pm2 restart ecosystem.config.js --update-env\
Update nginx config for node if any changes

### IPFS swarm

1. After node is automatically set up, check for swarm peers
2. If you see a message, saying something about your node not being online and you don't see an api (no extension at all) file inside your IPFS folder (/ipfs/ probably), make sure you've added IPFS\_PATH env variable to .bashrc and .profile and reboot your server.

ipfs swarm peers
