System Maintenance
There are a number of setup guides available for Secure / Super Nodes, here we cover the most common options for the following system maintenance requirements
Useful zen-cli commands to validate node status
How to start, stop, restart processes
Checking the status of processes
Obtaining system logs for troubleshooting
Description | Command | |
|---|---|---|
| 1 | zen-cli commands | |
| 2 | List addresses in the wallet | For t_addresses zen-cli listaddressesFor z_addresses zen-cli z_listaddresses |
| 3 | Check balances | For all t_addresses zen-cli listaddressgroupingsFor total balance (t_addresses [transparent] and z_addresses [private]) zen-cli z_gettotalbalanceFor individual z_addresses (replace z_address with the value) zen-cli z_getbalance z_address |
| 4 | Exporting / dumping private keys | For t_addresses (replace t_address with the value) zen-cli dumpprivkey t_addressFor z_addresses (replace z_address with the value) zen-cli z_exportkey z_address |
| 5 | Checking block height | zen-cli getinfo | grep blocks |
| 6 | Sending transactions via the zend daemon Replace;
| zen-cli z_sendmany 'fromAddress' '[{"address": "toAddress", "amount": amt}]' |
| 7 | Start, stop and restart processes | |
| 8 | How to start, stop, restart and check the status of zend | For installations using systemd (assumes the unit file is named 'zend.service') sudo systemctl start zend
sudo systemctl stop zend
sudo systemctl restart zend
sudo systemctl status zendFor installations using monit sudo monit start zend
sudo monit stop zend
sudo monit restart zend
sudo monit status |
| 9 | How to start, stop, restart and check the status of the node tracker | For installations using systemd (assumes the unit file is named 'zentracker.service') sudo systemctl start zentracker
sudo systemctl stop zentracker
sudo systemctl restart zentracker
sudo systemctl status zentrackerFor installations using pm2 (assumes the tracker is running as the only or first process, numbered 0) pm2 stop 0
pm2 stop 0
pm2 restart 0
pm2 status 0 |
| 10 | Checking logs | |
| 11 | How to follow the zend log | Follow the zend output log with the command below, quit by pressing CTRL+c tail -f ~/.zen/debug.log |
| 12 | How to follow the node tracker log | For installations using systemd (assumes the unit file is named 'zentracker.service') quit by pressing CTRL+c sudo journalctl -fu zentrackerFor installations using pm2 (assumes the tracker is running as the only or first process, numbered 0) pm2 logsOr to tail pm2 logs directly tail -f ~/.pm2/logs/secnodetracker-out-0.log |
| 13 | How to obtain zend logs (if needed to raise a help ticket). This command will create a file named 'zendlog.txt' in the user's home directory | cp ~/.zen/debug.log ~/zendlog.txt |
| 14 | How to obtain node tracker logs (if needed to raise a help ticket). Either command will create a file named 'trackerlog.txt' in the user's home directory | For installations using systemd (assumes the unit file is named 'zentracker.service') sudo journalctl --no-pager -u zentracker > ~/trackerlog.txtFor installations using pm2 (assumes the tracker is running as the only or first process, numbered 0) cp ~/.pm2/logs/secnodetracker-out-0.log > ~/trackerlog.txt |