There are two ways to import Opspacks:
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
Process
- Log in to the UI as an Administrator and navigate to Configuration > Host Templates.
- Click Import Opspack in the top left of the page.
- Click the Browse button and select the Opspack you want to import.
- Click Upload to upload the Opspack.
- Click Import to import the Opspack.
Troubleshooting
Importing Opspacks has been disabled
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
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
- Transfer the Opspack to the orchestrator, e.g.
scp opspack.tar.gz orchestrator:/tmp/opspacks
-
Log in to the orchestrator as
root
. -
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 theorchestratorimportopspacks
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.
Comments
0 comments
Please sign in to leave a comment.