How to Look Up SNMP v3 Profiles in Spectrum via REST API
search cancel

How to Look Up SNMP v3 Profiles in Spectrum via REST API

book

Article ID: 425180

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

When trying to use REST API to look up the SNMPv3 profiles, it only seems to provide create & delete functions, not GET/list:

 
Is there a way these can be retrieved for use in an API call such as REST?

Environment

DX NetOps Spectrum all currently supported releases

Resolution

Using the Spectrum VNM shell (vnmsh) on the SpectroSERVER, the following command line action will dump the profiles into the $SPECROOT/SS/VNM.out in text form, from which you can copy the details from "Local Profile Dump" section.

  1. On the command line of the SpectroSERVER;

    cd $SPECROOT/vnmsh

  2. Connect to the VNM shell by running:

    ./connect

  3. Then run the following command action:

    ./update action=0x10331 mh=<LANDSCAPE_HANDLE>

 

This will generate output similar to the following:

-----------------------------------------------------------------------------
-------------------Local Profile Dump-------------------------------------
-----------------------------------------------------------------------------
-->username = AuthPrivUser
-->Auth Password = xxxxxxxx
-->Priv Password = xxxxxxxx
-->Security Model = 3
-->Security Level = 3
-->Auth Protocol = 1
-->Priv Protocol = 1
-->Secure Domain = None
------------------------------------
-->username = NoAuthNoPrivUser
-->Auth Password = xxxxxxxx
-->Priv Password = xxxxxxxx
-->Security Model = 3
-->Security Level = 1
-->Secure Domain = None
------------------------------------
-->username = user1
-->Auth Password = xxxxxxxx
-->Priv Password = xxxxxxxx
-->Security Model = 3
-->Security Level = 3
-->Auth Protocol = 4
-->Priv Protocol = 4
-->Secure Domain = None
------------------------------------

NOTE: passwords will be obfuscated.