cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
318
Views
0
Helpful
3
Replies
Highlighted
Enthusiast

Send Check Sync Rest API to NSO return unknown

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
Highlighted
Beginner

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

Highlighted

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"

Highlighted

Can you please describe how to reproduce this?