05-10-2017 01:40 AM - edited 03-01-2019 03:49 AM
Hi,
During a recent customer NSO PoC my customer raised two questions I need some help with:
Regards,
05-10-2017 01:40 AM
Hi,
I haven’t received a reply to my earlier questions. Any guidance will be greatly appreciated.
05-10-2017 01:41 AM
1)
I think not in a template, but with a bit of python code it would be easy. Note it depends a bit on the device. For example in IOS you can rely on all interfaces appearing in the config which makes this really easy, but that is not generally true of every device.
2)
I just read the NSO user manual, firstly you can configure what is reported on, so that gives one kind of handle. Secondly the report can be output as XML, I’ve not looked into the structure there but then you could possibly apply XSLT or XPATH or custom code to reformat/filter as required.
Would be good to understand what your customer finds unnecessary.
05-10-2017 01:41 AM
1)
I think not in a template, but with a bit of python code it would be easy. Note it depends a bit on the device. For example in IOS you can rely on all interfaces appearing in the config which makes this really easy, but that is not generally true of every device.
With the right XPATH expression (in the template OR on the NSO CLI command line), you actually can. But not everyone will consider it easier to come up with that expression vs. programming a loop in python or java.
05-10-2017 01:42 AM
Thank you for the email.
Adding [NAME] to the loop to see if he can answer your question.
@Hello [NAME],
Will you be able to answer [NAME] questions?
During a recent customer NSO PoC my customer raised two questions I need some help with:
05-10-2017 01:42 AM
I think this is possible. I will try to take a look this week.
05-10-2017 01:42 AM
2) I just read the NSO user manual, firstly you can configure what is reported on, so that gives one kind of handle. Secondly the report can be output as XML, I’ve not looked into the structure there but then you could possibly apply XSLT or XPATH or custom code to reformat/filter as required.
Would be good to understand what your customer finds unnecessary.
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