# Upgrade DeviceOn Agent in On-premises DeviceOn Server

Here is an example description of how to upgrade DeviceOn Agent in On-premises DeviceOn Server, for devices which do not have internet connectivity.

In closed network environment. On-premise DeviceOn Server can't download the latest released DeviceOn Agent through internet. Maintainer can upload DeviceOn Agent package manually then upgrade managed devices.

## Prerequisite

* A running DeviceOn Server.
* A device with installed DeviceOn Agent, that connects to the DeviceOn server.
* DeviceOn Agent package files.

## Upload DeviceOn Agent package

<figure><img src="/files/DHeLAQYIxkufqIqWKreX" alt=""><figcaption><p>On-premises DeviceOn Serve, the App Store will be empty.</p></figcaption></figure>

Prepare DeviceOn Agent package files:&#x20;

* `DeviceOnAgent({PLATFORM})-{VERSION}-{HASH}.zip`&#x20;
* `DeviceOnAgent-data-{VERSION}-{HASH}.zip`

<figure><img src="/files/EcSZPg79Oj9XmanyNSjf" alt=""><figcaption><p>Using DeviceOn Agent 2.0.16 as example</p></figcaption></figure>

<figure><img src="/files/1WKlB7fcCXPLw89Mgr38" alt=""><figcaption><p>Upload DeviceOn Agent package files to Repository</p></figcaption></figure>

<figure><img src="/files/7Kq9FKrPfontB8TQU0dU" alt=""><figcaption><p>Choose DeviceOn Agent package files</p></figcaption></figure>

After upload process finished, DeviceOn Agent list in Repository

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

## Upgrade DeviceOn Agent

<figure><img src="/files/Mh3mVj209HAGWL15I7iL" alt=""><figcaption><p>Upgrade selected device</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://deviceon.gitbook.io/docs/lab/application-ota/upgrade-deviceon-agent-in-on-premises-deviceon-server.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.
