OS6860(E)_AOS_8.1.1.R01_Switch_Management_Guide
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Contents<br />
Authentication Trap ................................................................................................9-13<br />
Trap <strong>Management</strong> ..................................................................................................9-13<br />
Replaying Traps ...............................................................................................9-13<br />
Absorbing Traps ..............................................................................................9-13<br />
Sending Traps to WebView .............................................................................9-13<br />
SNMP MIB Information ...............................................................................................9-14<br />
MIB Tables .............................................................................................................9-14<br />
MIB Table Description ....................................................................................9-14<br />
Verifying the SNMP Configuration ..............................................................................9-15<br />
Chapter 10 Web Services, CLI Scripting, and OpenFlow .....................................................10-1<br />
In This Chapter ..............................................................................................................10-1<br />
Web Services Specifications .........................................................................................10-2<br />
Web Services Overview ................................................................................................10-2<br />
Representational State Transfer (REST) ................................................................10-2<br />
REST Characteristics .......................................................................................10-2<br />
REST Verbs .....................................................................................................10-3<br />
Web Service routing ........................................................................................10-3<br />
Security ............................................................................................................10-3<br />
<strong>AOS</strong> REST Implementation ............................................................................10-3<br />
Output format ..................................................................................................10-4<br />
Caching ............................................................................................................10-4<br />
Web Services REST Examples .....................................................................................10-5<br />
Query Structure ...............................................................................................10-5<br />
JSON or XML .................................................................................................10-5<br />
Response Elements ..........................................................................................10-5<br />
Login Example ................................................................................................10-6<br />
Logout Example ..............................................................................................10-7<br />
Create Table Entry Example - VLAN .............................................................10-8<br />
Create Table Entry Example - IP Interface .....................................................10-9<br />
Modify Table Entry Example - VLAN .........................................................10-10<br />
Modify Table Entry Example - Interface Speed ............................................10-11<br />
Delete Table Entry Example .........................................................................10-12<br />
Query Table Info Example ............................................................................10-13<br />
CLI Example .................................................................................................10-14<br />
Using Python ...............................................................................................................10-15<br />
Library Use ...........................................................................................................10-15<br />
PYTON APIs - Quick Reference .........................................................................10-17<br />
CLI Scripting ...............................................................................................................10-20<br />
Quoting and escaping ...........................................................................................10-20<br />
Variables and functions ........................................................................................10-21<br />
Variables ........................................................................................................10-21<br />
Functions .......................................................................................................10-21<br />
CLI Tools .............................................................................................................10-23<br />
awk ................................................................................................................10-23<br />
OpenFlow Specifications ............................................................................................10-25<br />
OpenFlow Agent Overview ........................................................................................10-26<br />
Omni<strong>Switch</strong> <strong>AOS</strong> Release 8 <strong>Switch</strong> <strong>Management</strong> <strong>Guide</strong> May 2014 ix