Esxi 4.1 Command Line Awesomeness: 1. Get A List of All Vms On The Hypervisor
Esxi 4.1 Command Line Awesomeness: 1. Get A List of All Vms On The Hypervisor
Esxi 4.1 Command Line Awesomeness: 1. Get A List of All Vms On The Hypervisor
Notice the vmid. That vmid is used in many commands that follow when you want to perform actions on individual VMs.
Notice that only vmnic0 and vmnic2 are up. This mostly has to do with the way I configured my blades with the Flex-10 Virtual connect. (A feature of HP Blades). If I am now to configure the network, its best that I do only vmnic0 and vmnic2 since theyre the only ones that have a link. For you Linux masters out there, theres no service network status nor restart that you can do. It just always seems to be on.
#make sure usbarbitrator is started /etc/init.d/usbarbitrator start # add to vmid 16 vim-cmd vmsvc/device.connusbdev 16 "path:1/0/0 autoclean:1"
Note that the VM should be powered off when you do this for best results.
This is cool in that youll see the percentage points pop up as you go along. The thing to remember is that youll have to send some carriage return escape sequences a la echo -e \r\n to line things up better.