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

Provides configuration for stack members including unit management and stack firmware as well as obtaining configured and operational status.

Stacking OpEN API

This document provides a brief description of the Stacking OpEN APIs. It provides the following services:

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

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

stacking_example

stacking_example.c is a sample application that demonstrates the use of the Stacking OpEN APIs. stacking_example is started from the command line and has the following usage syntax:

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

It exercises all the Stacking OpEN APIs with appropriate arguments to manage the Stacking component in the ICOS main process (switchdrvr).

Stacking CLI/API Cross Reference

CLI Command OpEN API Reference
(Config)#
show slot
openapiUnitMgrStackMemberGetNext()
(Config)#
show stack-status <unit>
openapiUnitMgrUnitStatusGet()
(Config)#
show switch <unit>
openapiUnitMgrStandbyGet()
openapiUnitMgrModelIdentifierGet()
openapiUnitMgrDetectCodeVerFlashGet()
openapiUnitMgrDetectCodeVerRunningGet()
openapiUnitMgrMgmtPrefGet()
openapiUnitMgrUnitTypeGet()
openapiUnitMgrSupportedDescriptionGet()
openapiUnitMgrStackFirmwareSyncMemberStatusGet()
openapiUnitMgrStackFirmwareSyncStatusGet()
openapiUnitMgrStackFirmwareSyncMemberLastAttemptStatusGet()
openapiUnitMgrUnitUpTimeGet()
openapiUnitMgrPreconfigModelIdGet()
(Config)#
show version
openapiUnitMgrNumberGet()
openapiUnitMgrSerialNumberGet()
(Config)#
show system id
openapiUnitMgrServiceTagGet()
(Config)#
show slot <unit> <slot>
openapiSlotGet()
openapiUnitDbEntrySlotsGet()
openapiSlotIsFullGet
openapiSlotAdminModeGet()
openapiSlotPowerModeGet()
openapiCardTypeGet()
openapiCardSupportedCardModelIdGet()
openapiCardSupportedCardDescriptionGet()
openapiSlotSupportedPluggableGet()
openapiSlotSupportedPowerdownGet()
(Config)#
set slot disable <unit> <slot>
openapiSlotAdminModeSet()
(Config)#
set slot power <unit> <slot>
openapiSlotPowerModeSet()