> For the complete documentation index, see [llms.txt](https://docs.nodecattel.xyz/node-guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nodecattel.xyz/node-guides/quick-start/zerogravity-0g/node-and-service-maintenance.md).

# Node & Service maintenance

{% tabs %}
{% tab title="Maintenance" %}
**GET NODE INFO**

```bash
0gchaind status | jq
```

**GET SYNC STATUS**

```bash
0gchaind status | jq '{ latest_block_height: .sync_info.latest_block_height, catching_up: .sync_info.catching_up }'
```

**GET NODE PEER**

```bash
echo $(0gchaind tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.0gchain/config/config.toml \
| sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
```

**GET LIVE PEERS**

```bash
curl -sS http://localhost:$RPC_PORT/net_info \
| jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' \
| awk -F ':' '{print $1":"$(NF)}'
```

**SET MINIMUM GAS PRICE**

```bash
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025ua0gi\"/" $HOME/.0gchain/config/app.toml
```

**ENABLE PROMETHEUS**

```bash
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.0gchain/config/config.toml
```

**RESET CHAIN DATA - !!!BE CAREFUL HERE!!!**

```bash
0gchaind tendermint unsafe-reset-all --keep-addr-book --home $HOME/.0gchain --keep-addr-book
```

**REMOVE NODE**

Please, before proceeding with the next step! All chain data will be lost! Make sure you have backed up your priv\_validator\_key.json

```bash
cd $HOME
sudo systemctl stop 0gd
sudo systemctl disable 0gd
sudo rm /etc/systemd/system/0gd.service
sudo systemctl daemon-reload
rm -f $(which 0gchaind)
rm -rf $HOME/.0gchain
rm -rf $HOME/0gchaind
```

{% endtab %}

{% tab title="Service" %}
**RELOAD SERVICE CONFIGURATION**

```
sudo systemctl daemon-reload
```

**ENABLE SERVICE**

```
sudo systemctl enable 0gd
```

**DISABLE SERVICE**

```
sudo systemctl disable 0gd
```

**START SERVICE**

```
sudo systemctl start 0gd
```

**STOP SERVICE**

```
sudo systemctl stop 0gd
```

**RESTART SERVICE**

```
sudo systemctl restart 0gd
```

**CHECK SERVICE STATUS**

```
sudo systemctl status 0gd
```

**CHECK SERVICE LOGS**

```
sudo journalctl -u 0gd -f --no-hostname -o cat --since 1h
```

{% endtab %}
{% endtabs %}
