Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
Green power save history API

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

Green power save history OpEN API

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

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

Example C Application green_pwr_sav_history_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_sav_history_example

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

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

Power save history CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)# show green-mode eee-lpi-history interface 0/3 openapiGreenEthrEeeLpiHistoryIntfSampleIntervalGeti()
openapiGreenEthrEeeLpiHistoryIntfMaxSamplesGet()
openapiGreenEthrEeeTotalLpiTimeGet()

(config)#green-mode eee-lpi-history max-samples | openapiGreenEthrEeeLpiHistoryIntfMaxSamplesSet() (config)#green-mode eee-lpi-history sampling-interval | openapiGreenEthrEeeLpiHistoryIntfSampleIntervalSet()