Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
Green power estimate API

The green power estimate API provides support for obtaining data related to the switch CPU.

Green power estimate OpEN API

This document provides a brief description of the green power estimate OpEN APIs. The APIs provide the following services:

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

Example C Application green_pwr_estimates_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.

green_pwr_estimates_example

green_pwr_estimates_example.c is a sample application that demonstrates the use of the Green power estimate OpEN APIs. It is started from the command line and has the following usage:

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

Power estimates CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)# show green-mode openapiGreenPwrEstGlobalCurPwrGet()
openapiGreenEthrPwrEstGlobalPwrSavingGet()
openapiGreenPwrEstGlobalCumSavingGet()