Alternate Method to Add an Image to Director Inventory Using the Shell


If the image upload through the Director UI is unsuccessful, the image can be added to the Director Inventory using the shell.
Before proceeding, ensure that both the image package and its corresponding signature file are available on the Director in the appropriate directories.

Note: This procedure applies only for 22.1.4 images.

Step 1: Upload the Signature File

First, upload the signature file to the Director using the secure upload API. Run the command below on the Director shell:

admin@Primary-VD:~$ curl -k -X POST https://<Director-IP>:9182/vnms/secureupload -H 'Content-Type: multipart/form-data' -F 'metaFile=@/var/tmp/versa-flexvnf-20260702-043500-4e72b43-22.1.4-B.bin.sig' -u 'Administrator:passwd'

API Response:
Meta ID :97228ea0-870b-4e44-86f8-661754fd1610

Replace the following values before running the command:
•Add your Director IP in <Director-IP >
•Add your Director UI password in the place of “passwd” under -u 'Administrator:passwd”
•Update the signature file path

After the command is executed successfully, the API response will return a Meta ID. Save this Meta ID as it will be required in the next step.


Step 2: Add the Image Package to Director Inventory

From the Director CLI, run the command below and add the Meta ID obtained in Step 1.

Administrator@Primary-VD> request nms actions packages add product-type FlexVNF uri file:///var/versa/packages/device/versa-flexvnf-20260702-043500-4e72b43-22.1.4-B.bin name trialCLIUpload meta-uuid 97228ea0-870b-4e44-86f8-661754fd1610 description uploaded_from_cli

result {
task {
task-id 60
link {
rel GET
href vnms/tasks/task/60
}
}
}
[ok][2026-09-02 19:24:25]


Step 3: Verify the Upload

After the command is executed, a corresponding task should appear in the Director UI.
Monitor the task to confirm that the image upload completes successfully. Once completed, the image should be available in the Director Inventory.