Changes between Initial Version and Version 1 of Internal/WiMAX/APIExamples


Ignore:
Timestamp:
May 18, 2010, 9:31:48 PM (14 years ago)
Author:
Gautam D. Bhanage
Comment:

Baseline draft of the sample scripts page.

Legend:

Unmodified
Added
Removed
Modified
  • Internal/WiMAX/APIExamples

    v1 v1  
     1== Examples Of Basic Commands ==
     2
     3* Initialize the grid service:
     4Initializes the VM grid service. Checks for running  VMs and initializes datapath on the machine
     5
     6{{{
     7wget http://wm-asngw-02:5012/wimaxvm/initvms
     8}}}
     9 
     10
     11* List all running slices in XML format:
     12Allows the administrator to have a detailed view of the running VMs. Shows VM statistics in XML format
     13
     14{{{
     15wget http://wm-asngw-02:5012/wimaxvm/vmlist
     16}}}
     17 
     18
     19* Start/Stop Functionality:
     20Starts/Stops VM instance. Configures VLANs on VM substrate
     21
     22{{{
     23wget http://wm-asngw-02:5012/wimaxvm/start?vmname = vm1
     24wget http://wm-asngw-02:5012/wimaxvm/stop?vmname = vm1
     25
     26}}}
     27
     28
     29* Add Mobile Functionality:
     30Registers a client with the slice. Currently adds default service flow settings for the client. Adds mapping to the datapath controller on ASN-GW.
     31
     32{{{
     33wget http://wm-asngw-02:5012/wimaxvm/addclient?vmname = vm1\& clientmac = 84:22:10.14.2b.9a
     34
     35}}}
     36
     37== Sample Script ==
     38
     39* A simple script to start the VM instances and switch the mobile client with MAC: "84:22:10.14.2b.9a" between two VMs: VM1, VM2  every 20 secs.
     40
     41{{{
     42wget http://wm-asngw-02:5012/wimaxvm/start?vmname = vm1
     43wget http://wm-asngw-02:5012/wimaxvm/stop?vmname = vm2
     44sleep 10
     45while 1
     46  wget http://wm-asngw-02:5012/wimaxvm/addclient?vmname = vm1\& clientmac = 84:22:10.14.2b.9a
     47  sleep 20
     48  wget http://wm-asngw-02:5012/wimaxvm/addclient?vmname = vm2\& clientmac = 84:22:10.14.2b.9a
     49  sleep 20
     50end
     51
     52}}}
     53