Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Switch CPU API

The Switch CPU API provides support for obtaining data related to the switch CPU.

Switch CPU OpEN API

This document provides a brief description of the Switch CPU OpEN APIs. The APIs provide the following services:

All 'Set' operations may affect the switch behavior and configuration.

Example C Application switch_cpu_example

Initialization

In the main function, the sample application initializes the OpEN API RPC service by calling openapiClientRegister() and waits for the RPC service in switchdrvr to start. A Client Handle is returned by openapiClientRegister() which is used while invoking the OpEN APIs. The application then exercises the associated OpEN APIs and logs informational and/or error messages on the console. The example application runs to its completion and exits.

switch_cpu_example

switch_cpu_example.c is a sample application that demonstrates the use of the Switch CPU OpEN APIs. It is started from the command line and has the following usage:

Usage: system_example <test#> <arg1> <arg2> ...

System CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)# show process cpu openapiCpuUtilMaxPeriodsGet()
openapiTotalCpuUtilArrayGet()