> For the complete documentation index, see [llms.txt](https://docs.vega365.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vega365.com/nidhi/management-client/software-management.md).

# Software Management

Install, update and remove Nidhi on the recording servers over the network, from the Management Client.

To open it, click **⚙ Settings > Software management...** on the [Dashboard](https://docs.vega365.com/nidhi/management-client/dashboard.md).

<figure><img src="https://1044727958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOkTZH1L3AaRU2hwQk4Ve%2Fuploads%2Fgit-blob-c68aea4106ea3afd6d55ff029e9259d54edbdfda%2Fmc-software-management.png?alt=media" alt=""><figcaption></figcaption></figure>

| Tile                                     | What it does                                                                                      |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------- |
| **Update the Nidhi plugin**              | Updates Nidhi on this Management Client, from a new Nidhi setup file. Do this first.              |
| **Update Nidhi on recording servers**    | Installs or updates the Nidhi Recorder Service on the recording servers. XProtect is not touched. |
| **Remove Nidhi from a recording server** | Removes Nidhi, its cloud drive and its licence. XProtect stays.                                   |

## Before You Start

Software management connects from this PC to each recording server. It needs two things.

**Ports.** These must be open inbound on each recording server, from this PC:

| Port                                      | Used to                                | Windows Firewall rule               |
| ----------------------------------------- | -------------------------------------- | ----------------------------------- |
| **TCP 445** (SMB)                         | Copy the files to the recording server | *File and Printer Sharing (SMB-In)* |
| **TCP 135** and **TCP 49152–65535** (RPC) | Install, start and stop the service    | *Remote Service Management*         |

The recording server never opens a connection back. See [Ports](https://docs.vega365.com/nidhi/getting-started/ports.md).

**An administrator account** on each recording server.

* Nidhi uses your Windows account.
* If that account isn't an administrator on the recording server, Windows asks for one (*Nidhi — administrator on* *recorder*), for example `DOMAIN\admin` or `RECORDER\Administrator`. It isn't saved.

{% hint style="info" %}
A local (non-domain) account also needs `LocalAccountTokenFilterPolicy = 1` on the recording server. Otherwise Windows refuses it over the network.
{% endhint %}

Can't open these ports? [Install Nidhi on the recording server itself](#on-the-recording-server-itself). No network is needed.

## Install or Update

Click **Update Nidhi on recording servers** to open a short wizard.

{% stepper %}
{% step %}

### Recorders

Each recording server is listed with its state:

* **✓ Up to date**
* **Update available**
* **Not installed**
* **Stopped**
* **Not answering**
* **No administrator access**
* **Not reachable**

Tick the recording servers to bring up to this version.

<figure><img src="https://1044727958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOkTZH1L3AaRU2hwQk4Ve%2Fuploads%2Fgit-blob-bfde2a842b7cf548331d6eb6028f39a6e2301010%2Fmc-install-recorders.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Network

Nidhi checks that it can reach each recording server as an administrator. If it can't reach one, it says why and offers **Install on** *recorder* **itself** instead.
{% endstep %}

{% step %}

### Install

The step says *Ready to install*. Click **Install**. Nidhi installs on one recording server at a time.
{% endstep %}

{% step %}

### Progress

Each recording server shows its progress in turn. When it is done, click **Close** to go back to Software management.
{% endstep %}
{% endstepper %}

### What happens on a recording server

* **Install.** The Nidhi Recorder Service is installed in `C:\Program Files\Vega Systems Inc\NidhiRecorderService` and starts automatically. WinFsp is installed, and a firewall rule for TCP 48984 is added. XProtect keeps recording.
* **Update.** **The cloud drive stays mounted**, so XProtect keeps archiving and playing back. Only if the Nidhi on the recording server is very old does the update stop the Recording Server for a minute or two. It tells you first.
* **Never older.** Nidhi never installs an older version. If a recording server has a newer Nidhi than this Management Client, it is left as it is. Update the plug-in here first.
* **On this PC.** If the Management Client isn't running as administrator, Windows asks for administrator rights (UAC).

## Remove Nidhi

Click **Remove Nidhi from a recording server**. You remove Nidhi from one recording server at a time. XProtect is not touched.

{% stepper %}
{% step %}

### Recorders

Choose the recording server.
{% endstep %}

{% step %}

### Network

As for installing, Nidhi checks that it can reach the recording server as an administrator.
{% endstep %}

{% step %}

### Cloud drive

**Remove the cloud archive first.** If an XProtect archive is still on the cloud drive, it goes offline when Nidhi is removed.

1. In **Management Client > Recording Servers >** *recorder* **> Storage**, remove each archive marked as in use.
2. Save.

The step then says **No storage profile uses the cloud drive**. Nidhi also waits until every file in the cache is uploaded.

<figure><img src="https://1044727958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOkTZH1L3AaRU2hwQk4Ve%2Fuploads%2Fgit-blob-9df155c4b703cd962cdd0043134c8d045906bccf%2Fmc-remove-cloud-drive.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### License

Before Nidhi is removed, it hands the licence back. If it can't, nothing is removed. Choose how:

* **Free it online.** The recording server needs internet access.
* **Free it with a request file.** Nidhi saves a release request file for each recording server. Upload it at `secure.softwarekey.com`.
  {% endstep %}

{% step %}

### Remove

Click **Remove Nidhi**. Nidhi and its files are removed from the recording server, including its settings, the cloud key and the licence file. You can choose to keep its logs.
{% endstep %}

{% step %}

### Progress

Shows what was done. **Save the report** saves it as a web page.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
**Footage in the cloud stays there.** Nidhi deletes nothing in the cloud.
{% endhint %}

## On the Recording Server Itself

Use this when this PC can't reach a recording server.

**To install or update:**

1. In Software management, click **Install on the recorder itself...** This saves the Nidhi setup file this PC was installed from.
2. Copy it to the recording server, for example on a USB stick or through a shared folder.
3. Run it as an administrator. Under **Custom Setup**, choose only **Nidhi Recorder Service (this recording server)**.

See [Installation](https://docs.vega365.com/nidhi/getting-started/installation.md#on-a-recording-server).

**To remove:**

1. In the Management Client, remove any archive on that recording server's cloud drive.
2. On the recording server, as an administrator, go to **Settings > Apps > Installed apps** (or **Programs and Features**) **> Nidhi Recorder Service > Uninstall**.

It makes the same checks as **Remove Nidhi** above. The recording server needs internet access to free its licence. Without it, nothing is removed.
