User guide

Contents
OmniSwitch AOS Release 8 Switch Management Guide May 2014 ix
Authentication Trap ................................................................................................9-13
Trap Management ..................................................................................................9-13
Replaying Traps ...............................................................................................9-13
Absorbing Traps ..............................................................................................9-13
Sending Traps to WebView .............................................................................9-13
SNMP MIB Information ...............................................................................................9-14
MIB Tables .............................................................................................................9-14
MIB Table Description ....................................................................................9-14
Verifying the SNMP Configuration ..............................................................................9-15
Chapter 10 Web Services, CLI Scripting, and OpenFlow .....................................................10-1
In This Chapter ..............................................................................................................10-1
Web Services Specifications .........................................................................................10-2
Web Services Overview ................................................................................................10-2
Representational State Transfer (REST) ................................................................10-2
REST Characteristics .......................................................................................10-2
REST Verbs .....................................................................................................10-3
Web Service routing ........................................................................................10-3
Security ............................................................................................................10-3
AOS REST Implementation ............................................................................10-3
Output format ..................................................................................................10-4
Caching ............................................................................................................10-4
Web Services REST Examples .....................................................................................10-5
Query Structure ...............................................................................................10-5
JSON or XML .................................................................................................10-5
Response Elements ..........................................................................................10-5
Login Example ................................................................................................10-6
Logout Example ..............................................................................................10-7
Create Table Entry Example - VLAN .............................................................10-8
Create Table Entry Example - IP Interface .....................................................10-9
Modify Table Entry Example - VLAN .........................................................10-10
Modify Table Entry Example - Interface Speed ............................................10-11
Delete Table Entry Example .........................................................................10-12
Query Table Info Example ............................................................................10-13
CLI Example .................................................................................................10-14
Using Python ...............................................................................................................10-15
Library Use ...........................................................................................................10-15
PYTON APIs - Quick Reference .........................................................................10-17
CLI Scripting ...............................................................................................................10-20
Quoting and escaping ...........................................................................................10-20
Variables and functions ........................................................................................10-21
Variables ........................................................................................................10-21
Functions .......................................................................................................10-21
CLI Tools .............................................................................................................10-23
awk ................................................................................................................10-23
OpenFlow Specifications ............................................................................................10-25
OpenFlow Agent Overview ........................................................................................10-26