# Controlling the server and the plugin

## Start the server

The Mediaserver will usually be started automatically when the computer it is installed on is started.

However it also can be started manually from the command line with either of the following commands:

{% tabs %}
{% tab title="Nx Meta" %}

```sh
sudo service networkoptix-metavms-mediaserver start
```

```sh
sudo systemctl start networkoptix-metavms-mediaserver.service
```

{% endtab %}

{% tab title="Nx Witness" %}

```sh
sudo service networkoptix-mediaserver start
```

```sh
sudo systemctl start networkoptix-mediaserver.service
```

{% endtab %}

{% tab title="Nx Go" %}

```sh
sudo service networkoptix-mediaserver start
```

```sh
sudo systemctl start networkoptix-mediaserver.service
```

{% endtab %}

{% tab title="Windows" %}
Open the services application and select the Network Optix Server service that matches your customization.\
The server can then be controlled by the context menu or the start, restart and stop links.
{% endtab %}
{% endtabs %}

## Restarting the server

Restarting the server can be done on the command line too.

{% tabs %}
{% tab title="Nx Meta" %}

```sh
sudo service networkoptix-metavms-mediaserver restart
```

```sh
sudo systemctl restart networkoptix-metavms-mediaserver.service
```

{% endtab %}

{% tab title="Nx Witness" %}

```sh
sudo service networkoptix-mediaserver restart
```

```sh
sudo systemctl restart networkoptix-mediaserver.service
```

{% endtab %}

{% tab title="Nx Go" %}

```sh
sudo service networkoptix-mediaserver restart
```

```sh
sudo systemctl restart networkoptix-mediaserver.service
```

{% endtab %}

{% tab title="Windows" %}
Open the services application and select the Network Optix Server service that matches your customization.\
The server can then be controlled by the context menu or the start, restart and stop links.
{% endtab %}
{% endtabs %}

But it can also be done on the built-in Nx Meta Server web interface by accessing the webpage at port `:7001` for instance, at `https://localhost:7001/` or use the IP address for localhost `https://127.0.0.1:7001/` or use your external IP address with the same port.

<figure><img src="/files/whyJumtgmBdrT0MYvBVa" alt=""><figcaption></figcaption></figure>

## Stopping the server

Stopping the server on the command line is similar to starting and restarting.

{% tabs %}
{% tab title="Nx Meta" %}

```sh
sudo service networkoptix-metavms-mediaserver stop
```

```sh
sudo systemctl stop networkoptix-metavms-mediaserver.service
```

{% endtab %}

{% tab title="Nx Witness" %}

```sh
sudo service networkoptix-mediaserver stop
```

```sh
sudo systemctl stop networkoptix-mediaserver.service
```

{% endtab %}

{% tab title="Nx Go" %}

```sh
sudo service networkoptix-mediaserver stop
```

```sh
sudo systemctl stop networkoptix-mediaserver.service
```

{% endtab %}

{% tab title="Windows" %}
Open the services application and select the Network Optix Server service that matches your customization.\
The server can then be controlled by the context menu or the start, restart and stop links.
{% endtab %}
{% endtabs %}

## Starting the plugin

To start the plugin the plugin needs to be enabled by toggling the switch next to the title and then also enabling the 'Device Active' toggle that will then appear.

<figure><img src="/files/qy3KWFHcfsPWRCS4m5ot" alt=""><figcaption><p>The popup window showing that the plugin is disabled for this device</p></figcaption></figure>

<figure><img src="/files/vucyTGRHDzEAYOuBa6wA" alt=""><figcaption><p>The popup window showing that the plugin is enabled for this device, but the device is not active.</p></figcaption></figure>

## Stopping the plugin

Stopping the plugin when it is running can be done from within the Nx Client.

To stop the plugin all devices on a server need to be disabled by switching the 'Device Active' toggle to off.

<figure><img src="/files/2wATdJxfVA0VYVz3YZnx" alt=""><figcaption><p>The popup window showing that the plugin is enabled and the device is active.</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nx.docs.scailable.net/nx-ai-manager-v6.1.2/support-and-troubleshooting/troubleshooting/controlling-the-server-and-the-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
