06-18-2019 06:35 AM
Hi everyone,
I have 3 questions :
1 - SYSLOG : how can i use syslog to detect that a port of a router was switched from up to down (unplugged) and send this syslog to NSO ,this one launch a python script (python action)? can i use syslog-ng ?
2 - Monitoring : Is there any solution in NSO that allow monitoring and following on live an operation (launching a python action) ?SYSLOG
3 - Stopping : Is there any solution in NSO that allow stopping an action after launching it ?
Thanks in advance
06-24-2019 04:44 AM
06-24-2019 05:23 AM
Thanks siemhermans
Concerning the third question, I would like to know if we could stop a transaction ?
06-24-2019 05:42 AM
That depends on the stage your change is in. Refer to Jan's presentation regarding transaction phases. Also refer to the last slide. The short answer is 'No'. You can't turn back when you perform a commit action. Depending on whether the NED being used is transactional (I.e. Generic vs. NETCONF) the rollback of the aborted config will be more or less difficult to perform.
06-24-2019 06:46 AM
For the 2sd question I think that it was not clear, In fact I want to pilot an action, in other terms see what's going on after launching an action (this is possible via IHM or cli ? and how ?)
Thanks in advance
06-24-2019 08:05 AM
For CLI debugging your best bet would be to add the debug command I suppose.
admin@ncs(config-device-ios0)# commit dry-run | debug ? Possible completions: dependencies Display dependency debug info kicker Display kicker debug info service Display service debug info template Display template debug info xpath Display XPath debug info
For Python services being instantiated, monitor the logs directory in your NSO runtime. Each service package gets its own Python VM log. For a local-install that would be probably be in your 'ncs-run' directory if you followed the Getting Started guide.
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