---
title: "Import an Opspack"
description: "Importing Opspacks can be done via the UI or command line with valid file extensions. The process includes uploading or transferring files and using specific scripts for multiple Opspacks."
url: "https://docs.itrsgroup.com/docs/faq/opsview/4922769742621-opsview-import-an-opspack/index.html"
---
There are two ways to import Opspacks:

- [Using the UI](#import-an-opspack-using-the-ui)
- [Using the command line](#import-an-opspack-using-the-command-line)

If you want to import multiple Opspacks at the same time, it is faster to do so using the command line.

## Import an Opspack using the UI

### Prerequisites

- You have a valid Opspack file with the file extension `.opspack`, `.tar.gz`, or `.tgz`.
- You have [enabled Opspack imports using the UI](https://docs.itrsgroup.com/docs/faq/opsview/4922753865629-opsview-enable-opspack-imports-using-the-ui/index.html)

### Process

1. Log in to the UI as an Administrator and navigate to **Configuration** > **Host Templates**.
2. Click **Import Opspack** in the top left of the page.
3. Click the **Browse** button and select the Opspack you want to import.
4. Click **Upload** to upload the Opspack.
5. Click **Import** to import the Opspack.

### Troubleshooting

#### Importing Opspacks has been disabled

![6 6 2 import opspack disabled error](https://docscdn.itrsgroup.com/faq/images/opsview/4922769742621-inline-1-6-6-2_import_opspack_disabled_error.png)

If you see the error `Importing Opspacks has been disabled. Please contact your System Administrator for assistance.` you need to enable Opspack imports through the UI.

#### Validation error

![6 6 2 import opspack validation error](https://docscdn.itrsgroup.com/faq/images/opsview/4922769742621-inline-2-6-6-2_import_opspack_validation_error.png)

If you see the error `You can only upload files ending in .opspack, .tar.gz or .tgz`, make sure you uploaded the right Opspack file and that it has one of the required file extensions: `.opspack`, `.tar.gz`, or `.tgz`.

## Import an Opspack using the command line

### Prerequisites

- You have a valid Opspack file with the file extension `.opspack`, `.tar.gz`, or `.tgz`.

### Process

1. Transfer the Opspack to the orchestrator, e.g.

```
scp opspack.tar.gz orchestrator:/tmp/opspacks
```

2. Log in to the orchestrator as `root`.
3. Import the Opspack using the `install_opspack` script:

```
/opt/opsview/coreutils/bin/install_opspack -f </path/to/opspack>
```

#### Import multiple Opspacks

If you are importing multiple Opspacks and they are all in the same directory, use the `orchestratorimportopspacks` script and a `for` loop like this:

```
for opspack in </tmp/opspacks/*.tar.gz>; do /opt/opsview/orchestrator/bin/orchestratorimportopspacks -f -o $opspack; done
```

Replace `</tmp/opspacks/*.tar.gz>` with the path to the Opspacks.


