Revision 5ccd2020

View differences:

src/cli/onevm
343 343
* resume (Resumes the execution of a saved VM)
344 344
    onevm resume <vm_id>
345 345
    
346
* saveas (Set the specified vm's disk to be saved in a new image (image_name) 
346
* saveas (Set the specified vms disk to be saved in a new image (image_name) 
347 347
            when the vm shutdowns)
348 348
    onevm saveas <vm_id> <disk_id> <image_name>
349 349
    
......
785 785
                print_header(str_h1,"VIRTUAL MACHINE TEMPLATE",false)
786 786

  
787 787
                puts vm.template_str
788
                puts
789
                print_header(str_h1,"VIRTUAL MACHINE MONITORING",false)
790

  
791
                poll_attrs = {
792
                    "USED MEMORY" => "MEMORY",
793
                    "USED CPU" => "CPU",
794
                    "NET_TX" => "NET_TX",
795
                    "NET_RX" => "NET_RX"
796
                }
797

  
798
                poll_attrs.each do |k,v|
799
                    puts str % [k,vm[v]]
800
                end
788 801
            else
789 802
                puts vm.to_xml(true)
790 803
            end

Also available in: Unified diff