Main Content

Set Up and Log In toMATLABProduction ServerDashboard

Follow these instructions to set up the dashboard for an on-premises installation ofMATLAB®Production Server™.

Set Up the Dashboard

Warning

You must have admin privileges on Windows®to complete setup.

To set up an instance of theMATLAB Production Serverdashboard:

  1. Open a Terminal or Command Window with administrator privileges, and navigate to thedashboardfolder in theMATLAB Production Serverinstallation directory.

    Platform

    Default Directory Where theMATLAB Production Serverdashboard is Installed

    Windows(Administrator)

    C:\Program Files\MATLAB\MATLAB Production Server\R2021a\dashboard

    Linux®

    /usr/local/MATLAB/MATLAB_Production_Server/R2021a/dashboard

  2. Execute the scriptmps-dashboardwith thesetup选择,出现提示时,指定的目录or dashboard setup. You must have write privileges to the directory from where you are running themps-dashboardscript, and to the directory where the dashboard is going to be set up.

    Platform

    Script for Dashboard Setup

    Windows(Administrator)

    >mps-dashboard.bat setup

    For example:

    >mps-dashboard.bat setup Specify a workspace directory for MATLAB Production Server Dashboard: C:\mps\dashboard

    Linux

    $./mps-dashboard.sh setup

    For example:

    $./mps-dashboard.sh setup Specify a workspace directory for MATLAB Production Server Dashboard: /opt/mps/dashboard

    You receive a message acknowledging that the dashboard has been successfully setup.

    Tip

    To directly specify a directory when setting up the dashboard, use the-Coption after thesetupoption and provide a directory name.

    For example, in Windows:>mps-dashboard.bat setup -C D:\mps\dashboard

    For example, in Linux:$./mps-dashboard.sh setup -C /opt/mps/dashboard

    Note

    For a complete list of options that can be passed to themps-dashboardscript, pass a?as an option to themps-dashboardscript.

    For example, in Windows type:

    >mps-dashboard.bat ?

    在Linux中,类型:

    $./mps-dashboard.sh ?

    The complete list of options are as follows.

    setup | start | stop | remove | reset_admin_password

  3. Execute themps-dashboardscript with thestartoption to start the dashboard.

    Platform

    Script to Start Dashboard

    Windows(Administrator)

    >mps-dashboard.bat start

    Linux

    $./mps-dashboard.sh start

    You will get a message indicating the host and port where the dashboard is running. The default host and port arelocalhostand9090, respectively.

    Tip

    Windows only: To run the dashboard instance as a background process in Windows, precede themps-dashboardscript with commandstart /B.

    For example:> start /B mps-dashboard.bat start

    Note

    You can change the default port used by dashboard by editing the--node_server_portoption inconfig.txtfile. You can find theconfig.txtfile here:

    Platform

    Location ofconfig.txtFile

    Windows

    C:\Program Files\MATLAB\MATLAB Production Server\R2021a\dashboard\config\config.txt

    Linux

    /usr/local/MATLAB/MATLAB_Production_Server/R2021a/dashboard/config/config.txt

    Other customizations to the setup process can be made by editing relevant parts of theconfig.txtfile.

  4. Open a web browser, and type the host and port number that were displayed in the previous step.

    For example:

    http://localhost:9090

Tip

If you see garbled text in the dashboard logs, verify that the server machine uses UTF-8 encoding. You must executemps-dashboard.bat setupagain after setting the locale.

For information about setting the locale, seeSet Locale on Microsoft Windows Platforms(MATLAB)andSet Locale on Linux Platforms(MATLAB).

Log In to the Dashboard

To log in toMATLAB Production ServerDashboard follow this procedure:

  1. Open a web browser, and type the host and port number that were displayed at the end of the install process.

    For example:

    http://localhost:9090

  2. Type the following information at the login screen for the username and password:

    Username:admin

    Password:admin

You are now logged into theMATLAB Production ServerDashboard.

Reset the Admin Password

You can use themps-dashboardscript with the optionreset_admin_passwordto change the admin password.

Platform

Script to Reset the Admin Password

Windows(Administrator)

>mps-dashboard.bat reset_admin_password

Linux

$./mps-dashboard.sh reset_admin_password

Warning

Thereset_admin_passwordoption should not be executed while dashboard is still running. First, stop dashboard execution using themps-dashboardscript with thestopoption and then reset the admin password.

Related Topics