cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1386
Views
0
Helpful
3
Replies

Send Check Sync Rest API to NSO return unknown

haofan
Level 4
Level 4

Sometime I send rest api to NSO, why return unkonw ?

I only want to check whether NSO is sync status, if it is out of sync, will sync-from.

bash-4.2# curl -i -u admin:admin -X POST http://127.0.0.1:8080/api/config/devices/device/172.25.15.244-core/_operations/check-sync

HTTP/1.1 200 OK

Server:

Date: Fri, 23 Jun 2017 09:50:40 GMT

Cache-Control: private, no-cache, must-revalidate, proxy-revalidate

Content-Length: 79

Content-Type: application/vnd.yang.operation+xml

Vary: Accept-Encoding

Pragma: no-cache

<output xmlns='http://tail-f.com/ns/ncs'>

  <result>unknown</result>

</output>

3 Replies 3

Chri_Erenti
Level 1
Level 1

Hi Hao,

normally, the "unknown" status is returned when the device configuration has been never retrieved

Have you ever execute the "sync-from" since the time you inserted the device in NSO?

Best Regards

Christian

Hi Christian,

     Thanks for replying me. Yes, I have ever run sync-from, after run sync-from, I have run some operations read or write operations by REST API, but somtime I got NSO status is "unknown"

Can you please describe how to reproduce this?

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?