# Command Line Update

{% hint style="info" %} <mark style="color:blue;">**Note.**</mark> This method updates the **DPX Master Server’s Core, Microservices and Infrastructure**.\
It *does not* update individual DPX Clients.
{% endhint %}

This update method is performed by using an ISO image along with the accompanying update script. Both files can be downloaded from the [Catalogic MySupport website](https://mysupport.catalogicsoftware.com/) after logging in with your user credentials.

{% hint style="warning" %} <mark style="color:orange;">**Important.**</mark> Before running the DPX update script, take a full VM snapshot of the Catalogic DPX Master Server virtual appliance.
{% endhint %}

The procedure described below assumes the latest available version of Catalogic DPX is 4.12.3. Always check MySupport for the latest version. It is also assumed that the `update_dpx_4.12.3.sh` and the `dpx_update_4.12.3.iso` files are available from within the DPX Master Server machine, in the same location.

1. Log in to your DPX Master Server via SSH. The login is `dpxadmin` and the default password is `dpxadmin`. If you logged into the same Master Server in the past, you may have been forced to change the password. In such case, provide the current password, not the default one.

   ```
   PS C:\Users\i_am_the_admin_here> ssh dpxadmin@172.20.4.110
   dpxadmin@172.20.4.110's password:
   Last login: Thu Aug 30 12:22:18 2023 from 192.168.129.143
   ```
2. Use `sudo su` to gain root user permissions.
3. Change permissions to the `update_dpx_4.12.3.sh` file:

   ```
   chmod +x <file_path>/update_dpx_4.12.3.sh
   ```
4. Call the `update_dpx_4.12.3.sh` script, specifying the `dpx_update_4.12.3.iso` image file as the argument:

   ```
    ./update_dpx_4.12.3.sh dpx_update_4.12.3.iso
   ```

   The following prompt will appear:

   <pre data-overflow="wrap"><code> ==> Log file is in /tmp/3615430.update.log
    
   Catalogic Software recommends that no backup or recovery jobs are running during the update process and that a full virtual machine snapshot before running the upgrade process is taken. Are no backup or recovery jobs currently running and has a snapshot been taken (Yes/No)?
   </code></pre>
5. If you have no jobs running and wish to proceed with the update process, type `Yes`.\
   The update procedure will start. This process may take a long while to complete. Some progress steps will be printed in the terminal.
6. Upon completion, the installer will ask if you want to reboot your master server.\
   Select `Y` to reboot the master server now or `N` to do it later.\
   This ends the updating procedure. Wait for your updated DPX Master Server to reboot, then you can resume using it.
