O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

We're going to use the original show-int.slax script from the first recipe, and modify it to add diagnostic information. So load that file and follow the directions to make modifications. The following are the steps for the recipe:

  1. Decide what type of user interaction is most appropriate for the case that you are working on. Consult the following table:
Use case Method
Immediate user feedback of runtime situation events <output> jcs:printf(“Something happened”);
Notification of information that might have use beyond immediate invocation jcs:syslog(“user.notice”, “Something happened”);
Developer feedback and diagnostic information jcs:progress(“Something happened”) and observe with detail knob
Detailed interactive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required