Versions Compared

Key

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

Below is a list of all sudo commands for the Deployment Monitoring Console (DMC) 7.x versions.

Set up User

  • sudo useradd -m datical

  • sudo passwd datical

  • sudo usermod -aG wheel datical

...

  • sudo datical-control network set-cluster-hostname <new-hostname>

  • sudo datical-control network reconfigure --ip <new-ip-address>

  • sudo datical-control db show --include-password (does not require sudo)

  • sudo datical-control network set-external-hostname <desiredHostname>

...

  • sudo service datical-proxy stop (requires sudo - authentication is required)

  • sudo service datical-proxy start (requires sudo - authentication is required)

  • sudo service datical-proxy restart (requires sudo - authentication is required)

  • sudo service datical-service restart (requires sudo - authentication is required)

  • sudo datical-control service restart datical-service (requires sudo - this script must be run as sudo or root)

  • sudo datical-control service restart proxy (requires sudo - this script must be run as sudo or root)

Troubleshooting Commands

  • sudo datical-control troubleshoot (does not require sudo)

  • sudo datical-control service status datical-service (does not require sudo)

  • sudo datical-control logs datical-service --follow (requires sudo - insufficient permissions)

  • sudo datical-control logs proxy (requires sudo - insufficient permissions)

  • sudo datical-control logs proxy --follow (requires sudo - insufficient permissions)

  • sudo find /etc/ -name datical-service* (requires sudo - insufficient permissions)

Example sudofile

View file
namesudofile.txt

Code Block
User_Alias DATICAL_USER=%datical 
Cmnd_Alias       DATCMD = /usr/bin/datical-control troubleshoot,\
                /usr/bin/datical-control logs datical-service --follow,\
                /usr/bin/datical-control logs proxy --follow,\
                /usr/bin/datical-control logs keycloak --follow,\
                /usr/bin/datical-control service restart datical-service,\
                /usr/bin/datical-control service restart proxy,\
                /usr/bin/datical-control service status datical-service,\
                /usr/bin/datical-control service start datical-service,\
                /usr/bin/datical-control service stop datical-service,\
                /usr/bin/datical-control service start,\
                /usr/bin/datical-control service stop,\
                /usr/bin/datical-control troubleshoot,\
                /usr/bin/systemctl restart datical-service,\
                /usr/bin/systemctl restart datical-proxy,\
                /usr/bin/systemctl restart datical-keycloak,\
                /usr/sbin/service datical-service restart,\
                /usr/sbin/service datical-proxy restart,\
                /usr/sbin/service datical-keycloak restart,\
                /usr/sbin/service datical-proxy start,\
                /usr/sbin/service datical-proxy stop,\
                /usr/bin/find /etc/ -name datical-service*
                     

DATICAL_USER    ALL=NOPASSWD: DATCMD