cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1172
Views
0
Helpful
2
Replies

NSO Java API

prmalik
Cisco Employee
Cisco Employee

Hi Team,

I am learning Java NSO API and I have basic question about below scenario :

 

XXX@ncs# show running-config devices device VTS-XXX-DEV config vts-service:vts-service sites site | display xpath
/devices/device[name='VTS-XX-DEV']/config/vts-service:vts-service/sites/site[id='be416d94-a2c2-41a4-XXXX-ce41739413eb']/name Site1

 

If I have a VTS device (262) added to NSO, how Can I retrieve all site id by using device name or any other info? and count of total number of site id ? 

 

 

 

2 Accepted Solutions

Accepted Solutions

Jan Lindblad
Cisco Employee
Cisco Employee

Have a look at the NSO example examples.ncs/getting-started/developing-with-ncs/8-maapi . It contains java sample code for a variety of use cases, like the ones you are looking for.

 

View solution in original post

2 Replies 2

Jan Lindblad
Cisco Employee
Cisco Employee

Have a look at the NSO example examples.ncs/getting-started/developing-with-ncs/8-maapi . It contains java sample code for a variety of use cases, like the ones you are looking for.

 

Thanks Jan !!