How to export the DX Netops Virtual Network Assurance (VNA) inventory using curl (REST)
search cancel

How to export the DX Netops Virtual Network Assurance (VNA) inventory using curl (REST)

book

Article ID: 272098

calendar_today

Updated On:

Products

DX NetOps

Issue/Introduction

When trying and view the  DX Netops Virtual Network Assurance (VNA) inventory using the VNA swagger (REST) UI, the page just hangs.

Can we get the inventory via the command line using curl?

Environment

Release : 21.2, 22.2

Cause

Once an inventory grows larger, the browser will hang trying to process the large output.

Resolution

You can export the inventory using cURL as in the following example:

curl  -kv  -X 'POST' -uadmin  'http://VNASERVER:8080/vna/rest/v1/inventory'   -H 'accept: application/json'   -d '' > /tmp/inv.json

Change the username (admin) port (8443 usually if using https) and protocol (https if using https) accordingly.