Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
Green ethernet API

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

Green ethernet OpEN API

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

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

Example C Application green_ethernet_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_ethernet_example

green_ethernet_example.c is a sample application that demonstrates the use of the green ethernet OpEN APIs. It is started from the command line and has the following usage:

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

Green ethernet CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)# show green-mode openapiGreenEthrIsValidIntfType()
openapiGreenEthrEnergyDetectAdminModeGet()
openapiGreenEthrEnergyDetectOprStatusStrGet()
openapiGreenEthrShrtRchAutoAdminModeGet()
openapiGreenEthrShrtRchForceAdminModeGet()
openapiGreenEthrShrtRchOprStatusStrGet()
openapiGreenEthrEeeAutoCapability()
openapiGreenEthrEeeNativeCapability()

(Config)#green-mode eee | openapiGreenEthrIsValidIntfType()
openapiGreenEthrEeeAdminModeGet()
openapiGreenEthrEeeAdminModeSet() (Config)#green-mode energy-detect | openapiGreenEthrGlobalEnergyDetectModeSet (Config)#green-mode short-reach | openapiGreenEthrGlobalShortReachModeSet