Syntax
oakcli show vm [vm_name | -h]
Parameters
Parameter | Description |
---|---|
|
(Optional) The name of the virtual machine for which details should be displayed. If you do not specify this parameter, then information for all the virtual machines is displayed. |
|
(Optional) Display help for using the command. |
Examples
Here are examples of how to use the oakcli show vm
command.
Displaying Details for All Virtual Machines
Display the virtual machine names, memory and vCPU allocations, status, virtual disks, and repository name for all virtual machines:
oakcli show vm
NAME MEMORY VCPU STATE REPOSITORY sample5_odarepo1 2048 2 OFFLINE odarepo1 sample6_odarepo1 2048 2 OFFLINE odarepo2 test1_odarepo1 2048 2 OFFLINE odarepo1 test2_odarepo2 2048 2 OFFLINE odarepo2 vm1_odarepo1 4096 4 ONLINE odarepo1 vm2_odarepo2 2048 2 OFFLINE odarepo2 win_vm1 1500 1 ONLINE odarepo1
Displaying Information for a Single Virtual Machine
Display information about the vm1_odarepo1
virtual machine:
oakcli show vm vm1_odarepo1 Resource: vm1_odarepo1 AutoStart : restore CPUPriority : 100 Disks : |file:/OVS/Repositories/odarepo1/Vi rtualMachines/vm1_odarepo1/System.i mg,xvda,w||file:/OVS/Repositories/o darepo1/VirtualMachines/vm1_odarepo 1/u01.img,xvdb,w| Domain : XEN_PVM ExpectedState : online FailOver : false IsSharedRepo : false Keyboard : en-us MaxMemory : 3000 MaxVcpu : 4 Memory : 4096 Mouse : OS_DEFAULT Name : vm1_odarepo1 Networks : |mac=00:21:F6:00:00:E4| NodeNum : 0 NodeNumStart : OS : OL_5 PrivateIP : None ProcessorCap : 100 RepoName : odarepo1 State : Online TemplateName : otml_sample1_odarepo1 Vcpu : 4 cpupool : twocpu vncport : 5901