Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
IPSLA API

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

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

ipsla_example

ipsla_example.c is a sample application that demonstrates the use of OpEN's IPSLA APIs. ipsla_example is started from the command line and can be used to exercise the various APIs by specifying arguments on the command line.

Sample Output

IPSLA CLI/API Cross Reference

CLI Command OpEN API Reference
(Config)#
ip sla <id>
openapiIpSlaIpSlaIdCreate()
(Config)#
no ip sla <id>
openapiIpSlaIpSlaIdDelete()
(Config)#
[no] ip sla schedule <id>
openapiIpSlaIpSlaSchedule()
(Privileged exec Mode)#
show ip sla configuration [id]
openapiIpSlaIpSlaIdNodeCfgInfoGet()
(Privileged exec Mode)#
show ip sla configuration [id]
openapiIpSlaIpSlaIdNodeOperInfoGet()
(Privileged exec Mode)#
show ip sla configuration
openapiIpSlaIpSlaIdCfgNodeFirstGet()
(Privileged exec Mode)#
show ip sla configuration
openapiIpSlaIpSlaIdCfgNodeNextGet()
(Config)#
ip sla <id>
openapiIpSlaIpSlaIdOperStatusGet()
(Privileged exec Mode)#
show track ip sla <id>
openapiIpSlaTrackIdNodeCfgInfoGet()
(Privileged exec Mode)#
show track
openapiIpSlaTrackIdNodeOperInfoGet()
(Privileged exec Mode)#
show ip route [vrf <name>] track-table
openapiIpSlaTrackIdTrackingStateGet()

(Config)#
track <id> ip sla <id> [reachability|state] | openapiIpSlaTrackIdCreate() (Config)#
no track <id> ip sla <id> [reachability|state] | openapiIpSlaTrackIdDelete() (Privileged exec Mode)#
show track ip sla <id> | openapiIpSlaTrackIdCfgNodeFirstGet() (Privileged exec Mode)#
show track ip sla <id> | openapiIpSlaTrackIdCfgNodeNextGet() (Track config Mode)#
[no] delay {up <secs> [down <secs>] | down <secs> [up <secs>]} | openapiIpSlaSetTrackOjectsDelayUpTime() (Track config Mode)#
[no] delay {up <secs> [down <secs>] | down <secs> [up <secs>]} | openapiIpSlaSetTrackOjectsDelayDownTime() (IPSLA config Mode)#
icmp-echo <dest-ipaddr> [src-intf {<u/s/p> | vlan <id>}] | openapiIpSlaIpSlaProbesIcmpEchoTypeSet() (ICMP-Echo config Mode)#
[no] frequency <seconds> | openapiIpSlaSetIpSlaProbesFrequency() (ICMP-Echo config Mode)#
[no] timeout <milliseconds> | openapiIpSlaSetIpSlaProbesTimeout() (ICMP-Echo config Mode)#
[no] threshold <milliseconds> | openapiIpSlaSetIpSlaProbesThreshold() (ICMP-Echo config Mode)#
[no] vrf <vrf-name> | openapiIpSlaSetIpSlaProbesVrfName() (Privileged exec Mode)#
clear ip sla statistics | openapiIpSlaIpSlaStatisticsClear()