...
Info |
---|
The details for these commands is in Yarnman Photon Powered (YM-PH) - Deployment and InstallationInstallation and Upgrade Guide |
ym-set-static-ip.sh
Code Block |
---|
sudo ym-set-static-ip.sh |
ym-generate-certs.sh
Code Block |
---|
sudo ym-generate-certs.sh |
ym-install.sh
Code Block |
---|
sudo ym-install.sh |
Upgrade
Note |
---|
All yarnman upgrade commands need to be run with sudo |
...
Copy the upgrade file into /var/opt/yarnlab/upgrade
eg wget http://xxxxxxxx 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
...
Note |
---|
A reboot may be required to apply OS patches if they are bundled into the update. |
Service Commands
Service Commands
Note |
---|
All yarnman service commands need to be run with sudo |
...
Code Block |
---|
yarnman@yarnman-test [ ~ ]$ sudo ym-service-commands.sh restart
restarting yarnman.service
● yarnman.service - yarnman
Loaded: loaded (/usr/lib/systemd/system/yarnman.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-08-17 08:27:36 UTC; 6ms ago
Process: 63277 ExecStartPre=/usr/bin/docker-compose -f docker-compose.yml down (code=exited, status=0/SUCCESS)
Main PID: 63287 (docker-compose)
Tasks: 6 (limit: 4694)
Memory: 4.9M
CGroup: /system.slice/yarnman.service
└─63287 /usr/bin/docker-compose -f docker-compose.yml -f docker-compose-override.yml up --remove-orphans
Aug 17 08:27:36 yarnman-test systemd[1]: Starting yarnman...
Aug 17 08:27:36 yarnman-test docker-compose[63277]: yarnman Warning: No resource found to remove
Aug 17 08:27:36 yarnman-test systemd[1]: Started yarnman.
]: Started yarnman.
|
ym-service-commands.sh reboot
Info |
---|
this command reboots the yarnman appliance |
Code Block |
---|
sudo ym-service-commands.sh reboot
rebooting yarnman |
ym-service-commands.sh status
...
Info |
---|
This command shows the tag thp used for setting up configuration encryption |
Code Block |
---|
yarnman@ym-ph-test [ ~ ]$ sudo ym-service-commands.sh tang-adv
9_CZiwV9PKBlQfehPKZO7cd5ZpM |
...
Info |
---|
This command updates jtapi for test_mate locally |
sudo ym-service-commands.sh reboot
Code Block |
---|
sudo ym-service-commands.sh reboot
rebooting yarnman |
ym-service-commands.sh update-yarnman-database
Info |
---|
This command runs a manual database update |
Code Block |
---|
sudo ym-service-commands.sh update-yarnman-database
!! ommitted
1712036279860 INFO Yarnman database version record is currently at 2.6.6.
1712036279860 INFO Yarnman database version already updated to latest version 2.6.6 and is ready |
ym-service-commands.sh stig-hardening-check
ym-service-commands.sh
...
ym-service-commands.sh show-tech-support
Info |
---|
This command provides an overview of the system for yarnlab tech support |
...
Info |
---|
This command allocates 8vcpu and 16gb ram which is required for large wrangler_ migrations |
Note |
---|
Note that this command does check if there are 8vCPU and 16vGB RAM present |
Code Block |
---|
sudo ym-edit-config.sh set-hw-8vcpu-16gb |
...