|   | 1 | == Examples Of Basic Commands == | 
          
          
            |   | 2 |  | 
          
          
            |   | 3 | * Initialize the grid service: | 
          
          
            |   | 4 | Initializes the VM grid service. Checks for running  VMs and initializes datapath on the machine | 
          
          
            |   | 5 |  | 
          
          
            |   | 6 | {{{ | 
          
          
            |   | 7 | wget http://wm-asngw-02:5012/wimaxvm/initvms | 
          
          
            |   | 8 | }}} | 
          
          
            |   | 9 |   | 
          
          
            |   | 10 |  | 
          
          
            |   | 11 | * List all running slices in XML format: | 
          
          
            |   | 12 | Allows the administrator to have a detailed view of the running VMs. Shows VM statistics in XML format | 
          
          
            |   | 13 |  | 
          
          
            |   | 14 | {{{ | 
          
          
            |   | 15 | wget http://wm-asngw-02:5012/wimaxvm/vmlist | 
          
          
            |   | 16 | }}} | 
          
          
            |   | 17 |   | 
          
          
            |   | 18 |  | 
          
          
            |   | 19 | * Start/Stop Functionality: | 
          
          
            |   | 20 | Starts/Stops VM instance. Configures VLANs on VM substrate  | 
          
          
            |   | 21 |  | 
          
          
            |   | 22 | {{{ | 
          
          
            |   | 23 | wget http://wm-asngw-02:5012/wimaxvm/start?vmname = vm1  | 
          
          
            |   | 24 | wget http://wm-asngw-02:5012/wimaxvm/stop?vmname = vm1  | 
          
          
            |   | 25 |  | 
          
          
            |   | 26 | }}} | 
          
          
            |   | 27 |  | 
          
          
            |   | 28 |  | 
          
          
            |   | 29 | * Add Mobile Functionality: | 
          
          
            |   | 30 | Registers 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 | {{{ | 
          
          
            |   | 33 | wget 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 | {{{ | 
          
          
            |   | 42 | wget http://wm-asngw-02:5012/wimaxvm/start?vmname = vm1  | 
          
          
            |   | 43 | wget http://wm-asngw-02:5012/wimaxvm/stop?vmname = vm2  | 
          
          
            |   | 44 | sleep 10 | 
          
          
            |   | 45 | while 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 | 
          
          
            |   | 50 | end | 
          
          
            |   | 51 |  | 
          
          
            |   | 52 | }}} | 
          
          
            |   | 53 |  |