When we have time bound activities like smart license, when it come to NSO what would be best approach to check/validate the license status. In the NSO I heard about subscribers, kickers and nano services which one would be the best practice/approach for the "smart licensing". Can you give an example for nano services as well.
Else I need use time bound loop or infinite with sleep to check smart licensing. Assuming you have better way than this.
Yes and it's enabled in the device. So I need not to give pak file anymore I just enter the idtoken which verify with cisco and gives an update to the device. I generally using the following command to issue and check the status.
encs-host1# license smart register idtoken xxxxxxxxxxxxxxxxxxxxxxx
encs-host1# show license status
Smart Licensing is ENABLED
Ok, now we have concluded that you are talking to an ENCS device, which has native NETCONF/YANG support, which I would assume includes the operational/status data like this. Now perhaps the NSO experts (i.e. the real experts ☺ ) can chime in on your question – how can an NSO application detect changes to a status value?
You can potentially write an Action to issue these commands towards a list of devices. Then use the NSO scheduler to call it periodically.
Not sure how well it will scale though.
suspend Suspend all tasks in the scheduler.
task Examples: Run sync-from on all devices 2 AM on the 1st every month: name: sync schedule: 0 2 1
* * action-name: sync-from action-node: /devices Purge the completed queue-item list 4:30 AM
every Sunday: name: purge schedule: 30 4 * * 0 action-name: purge action-node: