cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6217
Views
10
Helpful
1
Comments
pbagga
Cisco Employee
Cisco Employee

1. Log into CLI of DNAC: 

ssh maglev@< DNAC appliance IP> -p 2222

2. Run this curl command to get token to get member id:

curl -X POST -u admin:<admin user password> -H -V https://<CLUSTER-IP>/api/system/v1/identitymgmt/token

    • Note: For admin password, please use a back slash in your password where a special character starts if there is any special character. Example password – admin:Test!23$ will be admin:Test\!23$)

Screen Shot 2019-09-13 at 2.01.48 PM.png

3. Run this command to get member id:

curl -X GET -H "X-Auth-Token:<PROVIDE THE TOKEN HERE>" -k http://telemetry-agent.maglev-system.svc.cluster.local:8011/api/telemetry-agent/v1/membership/info

    • Note: Include X_Auth-Token in the command above without quotes.

Screen Shot 2019-09-13 at 2.01.33 PM.png

4. You should get a response like this which contains the memberID:

    • {"version": "x.x.x", "response": {"member_id": "5b8eb1d2dcc4be000f1ef6af"}}
Comments
prabha1
Cisco Employee
Cisco Employee

is this API accessible to invoke from outside? I tried this API on one of the DNAC and it's not working. Do we need to enable any configuration on the DNAC (ex: telemetry?)

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking for a $25 gift card