Version 1 (modified by 15 years ago) ( diff ) | ,
---|
Examples Of Basic Commands
- Initialize the grid service:
Initializes the VM grid service. Checks for running VMs and initializes datapath on the machine
wget http://wm-asngw-02:5012/wimaxvm/initvms
- List all running slices in XML format:
Allows the administrator to have a detailed view of the running VMs. Shows VM statistics in XML format
wget http://wm-asngw-02:5012/wimaxvm/vmlist
- Start/Stop Functionality:
Starts/Stops VM instance. Configures VLANs on VM substrate
wget http://wm-asngw-02:5012/wimaxvm/start?vmname = vm1 wget http://wm-asngw-02:5012/wimaxvm/stop?vmname = vm1
- Add Mobile Functionality:
Registers a client with the slice. Currently adds default service flow settings for the client. Adds mapping to the datapath controller on ASN-GW.
wget http://wm-asngw-02:5012/wimaxvm/addclient?vmname = vm1\& clientmac = 84:22:10.14.2b.9a
Sample Script
- 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.
wget http://wm-asngw-02:5012/wimaxvm/start?vmname = vm1 wget http://wm-asngw-02:5012/wimaxvm/stop?vmname = vm2 sleep 10 while 1 wget http://wm-asngw-02:5012/wimaxvm/addclient?vmname = vm1\& clientmac = 84:22:10.14.2b.9a sleep 20 wget http://wm-asngw-02:5012/wimaxvm/addclient?vmname = vm2\& clientmac = 84:22:10.14.2b.9a sleep 20 end
Note:
See TracWiki
for help on using the wiki.