Yarnman Photon Powered (YM-PH) - Command Line Interface Guide (CLI)
- 1 Install
- 2 Upgrade
- 2.1 ym-upgrade.sh
- 3 Service Commands
- 3.1 ym-service-commands.sh start
- 3.2 ym-service-commands.sh stop
- 3.3 ym-service-commands.sh restart
- 3.4 ym-service-commands.sh reboot
- 3.5 ym-service-commands.sh status
- 3.6 ym-service-commands.sh status-pm2
- 3.7 ym-service-commands.sh status-docker
- 3.8 ym-service-commands.sh stats-docker
- 3.9 ym-service-commands.sh yarnman-logs
- 3.10 ym-service-commands.sh couchdb-logs
- 3.11 ym-service-commands.sh redis-logs
- 3.12 ym-service-commands.sh tang-logs
- 3.13 ym-service-commands.sh tang-thp
- 3.14 ym-service-commands.sh update-jtapi
- 3.15 ym-service-commands.sh update-jtapi-local
- 3.16 ym-service-commands.sh update-yarnman-database
- 3.17 ym-service-commands.sh stig-hardening-check
- 3.18 ym-service-commands.sh show-tech-support
- 4 Edit Configuration Commands
- 4.1 ym-edit-config.sh enable-local-admin-access
- 4.2 ym-edit-config.sh disable-local-admin-access
- 4.3 ym-edit-config.sh enable-local-couchdb-access
- 4.4 ym-edit-config.sh disable-local-couchdb-access
- 4.5 ym-edit-config.sh set-local-yarnman-container-name
- 4.6 ym-edit-config.sh unset-local-yarnman-container-name
- 4.7 ym-edit-config.sh enable-yarnman-logs
- 4.8 ym-edit-config.sh disable-yarnman-logs
- 4.9 ym-edit-config.sh set-hw-8vcpu-16gb
- 4.10 ym-edit-config.sh set-hw-default
- 4.11 ym-edit-config.sh set-custom-motd
- 5 Backup
- 6 Advanced Configuration
Install
All yarnman install commands need to be run with sudo
The details for these commands is in Yarnman Photon Powered (YM-PH) - Installation and Upgrade Guide
ym-set-static-ip.sh
sudo ym-set-static-ip.sh
ym-generate-certs.sh
sudo ym-generate-certs.sh
ym-install.sh
sudo ym-install.sh
Upgrade
All yarnman upgrade commands need to be run with sudo
ym-upgrade.sh
Copy the upgrade file into /var/opt/yarnlab/upgrade
or if Web access from Yarnman type wget https://yldev.blob.core.windows.net/yl-ph-staging-updates/<update file package name> or sftp/ftp/scp the file onto the server
SSH into the yarnman host and change into the directory /var/opt/yarnlab/upgrade
run the command yarnman@host [ ~ ]$ sudo ym-upgrade.sh ym-registry:package-upgrade-master-2.6.5-81d5809c.tar.gz
Service Commands
ym-service-commands.sh start
ym-service-commands.sh stop
ym-service-commands.sh restart
ym-service-commands.sh reboot
ym-service-commands.sh status
ym-service-commands.sh status-pm2
ym-service-commands.sh status-docker
ym-service-commands.sh stats-docker
ym-service-commands.sh yarnman-logs
ym-service-commands.sh couchdb-logs
ym-service-commands.sh redis-logs
ym-service-commands.sh tang-logs
ym-service-commands.sh tang-thp
ym-service-commands.sh update-jtapi
ym-service-commands.sh update-jtapi-local
ym-service-commands.sh update-yarnman-database
ym-service-commands.sh stig-hardening-check
ym-service-commands.sh show-tech-support
Edit Configuration Commands
ym-edit-config.sh enable-local-admin-access
ym-edit-config.sh disable-local-admin-access
ym-edit-config.sh enable-local-couchdb-access
ym-edit-config.sh disable-local-couchdb-access
ym-edit-config.sh set-local-yarnman-container-name
ym-edit-config.sh unset-local-yarnman-container-name
ym-edit-config.sh enable-yarnman-logs
ym-edit-config.sh disable-yarnman-logs
ym-edit-config.sh set-hw-8vcpu-16gb
ym-edit-config.sh set-hw-default
ym-edit-config.sh set-custom-motd
Backup
ym-backup-setup.sh
refer to Yarnman Photon Powered (YM-PH) - Backup and Restore Guide
ym-backup-actions.sh
refer to Yarnman Photon Powered (YM-PH) - Backup and Restore Guide