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

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

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

instru_nos_example

instru_nos_example.c is a sample application that demonstrates Instrumentation OpEN API. instru_nos_example is started from the command line and exercises all the Instrumentation OpEN APIs one by one.

Sample Output (LiNe/LinuxHost platform)

# ./instru_nos_example

ICOS version = 1.25.18.42 Success to get System MAC Address: <Mac address>=""> Success to get System Time: <seconds> seconds <nanoseconds> nanoseconds Success to get Chip Family Name:<family name>=""> Success to get Chip Max Ports: MAX Physical ports: <MAX physical="" ports>="">, and MAX Hi Gig Ports: <MAX hi="" gig="" ports>="">

INSTRU NOS CLI/API Cross Reference

CLI Command | OpEN API Reference ----------— | --------------—

(console)#
show network | openapiMacAddrGet (console)#
show version | openapiMacAddrGet (console)#
show hardware | openapiMacAddrGet (console)#
show system | openapiTimeGet