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

The other metric that is particularly useful in assessing general system health is the CPU utilization percentages. Generally an operating system is able to account for the number of cycles spent by the CPU on user activities, operating system activities and interrupt time. These statistics are available to us in the RPC response to <get-route-engine-information>, and so it is possible for us to modify this recipe to:

  • Capture <cpu-user>, <cpu-background>, <cpu-system>, <cpu-interrupt>, <cpu-idle> elements from the RPC response,
  • Add these to the system-stats event emitted,
  • Create a system.html modification that produces a pie-chart showing the percentage of time spent within each state.

The steps are as follows:

  1. Within the ...

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