06-26-2017 06:51 AM - edited 03-01-2019 03:53 AM
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>
06-26-2017 07:59 AM
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
06-26-2017 08:02 AM
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"
07-10-2017 07:26 AM
Can you please describe how to reproduce this?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide