How to pull telemetry data from DX NetOps Spectrum from the command line using curl
search cancel

How to pull telemetry data from DX NetOps Spectrum from the command line using curl

book

Article ID: 367521

calendar_today

Updated On: 03-25-2025

Products

Spectrum Network Observability

Issue/Introduction

The following is the curl command that can be used from the command line to pull the Telemetry data from Spectrum.

Environment

Version: Any
Component: SpectroSERVER database

Resolution

The following is a template for the curl command.

curl -o spectrum.txt -sku <USER>:<PASSWD> <HTTP/S>://<HOSTNAME/IP>:<PORT>/spectrum/restful/telemetry/usageTelemetry

Using the above template, replace:

<USER> with a valid Spectrum user
<PASSWD> with the password for the Spectrum user used above
<HTTP/S> with either http or https depending on the <PORT>
<HOSTNAME/IP> with the hostname or ip address of the OneClick system
<PORT> with the http or https port for the OneClick system

After running this command, it should create a file called "spectrum.txt" in the directory where the command was run. The following is an example of the output:

cat spectrum.txt
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><UsageTelemetry xmlns="http://www.ca.com/spectrum/restful/schema/response"><UsageTelemetry><ItemType>Standard Device</ItemType><MaxPortCount>200</MaxPortCount><ItemCount>5</ItemCount><Timestamp>1715621469</Timestamp></UsageTelemetry></UsageTelemetry>