Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Note

All yarnman service commands

Note

Ensure that the database upgrade is completed Yarnman database version updated to latest version x.y.z and is ready. if the database upgrade has not completed run https://yarnlab.atlassian.net/wiki/spaces/YSP/pages/2916745332/Yarnman+Photon+Powered+YM-PH+-+Command+Line+Interface+Guide+CLI#ym-service-commands.sh-update-yarnman-database

Service Commands

Note

All yarnman service commands need to be run with sudo

ym-service-commands.sh start

...

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.

ym-service-commands.sh rebootcommands.sh reboot

Info

this command reboots the yarnman appliance

Code Block
sudo ym-service-commands.sh reboot
rebooting yarnman

...

Info

This command shows the tag thp used for setting up configuration encryption

Code Block
yarnman@ymsudo ym-phservice-test [ ~ ]$ sudo commands.sh tang-adv
9_CZiwV9PKBlQfehPKZO7cd5ZpM

ym-service-commands.sh update-jtapi

Info

This command updates jtapi for test_mate

Code Block
PENDING

ym-service-commands.sh update-jtapi-local

Info

This command updates jtapi for test_mate locally

Code Block
PENDING

ym-service-commands.sh

...

update-yarnman-database

Info

This command runs a manual database update

Code Block
sudo ym-service-commands.sh

...

Info

This command updates jtapi for test_mate

Code Block
PENDING

ym-service-commands.sh update-jtapi-local

Info

This command updates jtapi for test_mate locally

Code Block
PENDING
 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

Code Block
PENDING

ym-service-commands.sh

...

Code Block
PENDING

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

...