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

There's more

In our examples, we used the interface statistics from 10 Gigabit Ethernet interfaces on MX-960s running JUNOS 14.1 and 15.1F. In both these cases, the <get-interface-information> RPC responses can be seen to provide us with interface counters already differentiated over unit time. This greatly eases the burden for our application because we can rely on the JUNOS metering and calculations, and simply plot the reported number.

On some platforms, you may not always get a reported rate. Or the statistic that you're interested in monitoring might simply be an absolute gauge in the XML responses. If this is the case, and you require the graph to show the rate of change, then it's necessary to take a slightly more complicated tactic. ...

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