vSphere CLI vSphere CLI vMA 4.0 / 4.1 with examples vSphere CLI connection options .................................................. 1 Configure vi-fastpass on vMA 4.0 ............................................... 2 Configure vi-fastpass on vMA 4.1 ............................................... 3 vicfg-dumppart ..................................................................... 4 --activate -a ................................................................................................................. 4 --deactivate -d ............................................................................................................ 4 --find -f ....................................................................................................................... 5 --get-active -t .............................................................................................................. 6 --get-config -c.............................................................................................................. 6 --list -l ......................................................................................................................... 6 --set -s ........................................................................................................................ 6 --smart-activate -S ...................................................................................................... 7 vicfg-mpath ........................................................................ 8 --device -d................................................................................................................... 8 --list -l ......................................................................................................................... 8 --list-compact -L ........................................................................................................... 9 --list-map -m ............................................................................................................... 9 --list-paths -b ............................................................................................................ 10 --list-plugins -G ......................................................................................................... 10 --path -P ................................................................................................................... 10 --state -s ................................................................................................................... 11 vicfg-nas ......................................................................... 12 --add -a ..................................................................................................................... 12 --delete -d ................................................................................................................. 12 --list -l ....................................................................................................................... 12 --nasserver -o............................................................................................................ 12 --readonly -y .............................................................................................................. 12 --share -s................................................................................................................... 12 vicfg-scsidevs .................................................................... 13 --compact-list -c ........................................................................................................ 13 --device -d................................................................................................................. 13 --hba-device-list -A .................................................................................................... 13 --hbas -a ................................................................................................................... 13 --list -l ....................................................................................................................... 14 --query -q.................................................................................................................. 14 --uids -u .................................................................................................................... 15 vicfg-rescan ...................................................................... 16 vicfg-dns ......................................................................... 16 --dhcp -H................................................................................................................... 16 --dns -D ..................................................................................................................... 16 --domain -d ............................................................................................................... 16 --hostname -n ........................................................................................................... 17 --vnic -V .................................................................................................................... 17 vicfg-nics ......................................................................... 18 --list -l ....................................................................................................................... 18 --speed -s <speed> .................................................................................................. 18 --duplex -d <duplex> ............................................................................................... 18 --auto -a.................................................................................................................... 19 vicfg-ntp ......................................................................... 20 --add -a ...................................................................................................................... 20 --delete -d ................................................................................................................. 20 --list -l ....................................................................................................................... 20 --start -r ..................................................................................................................... 20 --stop -s .................................................................................................................... 21 vicfg-route ....................................................................... 22 --add -a....................................................................................................................... 22 --del -d ....................................................................................................................... 23 --family -f (default 'v4') ............................................................................................... 23 --list -l ......................................................................................................................... 23 vicfg-vmknic ...................................................................... 24 --add -a ..................................................................................................................... 24 --delete -d ................................................................................................................. 24 --disable-vmotion -u ................................................................................................. 25 --dvport-id -v ............................................................................................................ 25 --dvs-name -s ............................................................................................................ 25 --enable-ipv6 -6......................................................................................................... 25 --enable-vmotion -E ................................................................................................... 25 --ip -i ......................................................................................................................... 25 --list -l ....................................................................................................................... 26 --mtu -m ................................................................................................................... 26 --netmask -n ............................................................................................................. 26 --portgroup -p ........................................................................................................... 26 --tso -t ...................................................................................................................... 26 --unset-ip -U ............................................................................................................. 27 vicfg-vswitch ..................................................................... 28 --add -a ..................................................................................................................... 28 --add-dvp-uplink -P ................................................................................................... 28 --add-pg -A................................................................................................................ 28 --add-pg-uplink -M .................................................................................................... 29 --check -c .................................................................................................................. 31 --check-pg -C ............................................................................................................. 31 --del-dvp-uplink -Q .................................................................................................... 31 --del-pg -D................................................................................................................. 31 --del-pg-uplink -N ...................................................................................................... 32 --delete -d ................................................................................................................. 32 --dvp -V..................................................................................................................... 33 --get-cdp -b ............................................................................................................... 33 --link -L ..................................................................................................................... 33 --list -l ....................................................................................................................... 33 --mtu -m ................................................................................................................... 34 --pg -p ....................................................................................................................... 34 --set-cdp -B ............................................................................................................... 34 --unlink -U................................................................................................................. 34 --vlan -v ..................................................................................................................... 34 vicfg-cfgbackup .................................................................. 35 --force -f ................................................................................................................... 35 --load -l ..................................................................................................................... 35 --quiet -q .................................................................................................................. 35 --reset -r ................................................................................................................... 35 --save -s .................................................................................................................... 35 vicfg-snmp........................................................................ 36 --communities -c ....................................................................................................... 36 --disable -D ............................................................................................................... 36 --enable -E ................................................................................................................ 36 --port -p .................................................................................................................... 36 --reset -r ................................................................................................................... 36 --show -s ................................................................................................................... 36 --targets -t ................................................................................................................ 37 --test -T ..................................................................................................................... 37 vicfg-syslog ...................................................................... 38 --setport -p ............................................................................................................... 38 --setserver -s ............................................................................................................. 38 --show -i ................................................................................................................... 38 vihostupdate ...................................................................... 39 --bulletin -B ............................................................................................................... 39 --bundle -b ................................................................................................................ 39 --install -i .................................................................................................................. 39 --list -l ....................................................................................................................... 39 --metadata -m........................................................................................................... 39 --nosigcheck -c .......................................................................................................... 39 --query -q.................................................................................................................. 39 --remove -r ............................................................................................................... 39 --scan -s .................................................................................................................... 39 svmotion .......................................................................... 40 DESCRIPTION............................................................................................................... 40 Interactive Mode ......................................................................................................... 40 Noninteractive Mode .................................................................................................. 41 --datacenter <datacenter_name> ........................................................................................ 41 --disks <virtual_disk_datastore_path>:<new_datastore>... .................................................. 41 --vm <VM_config_ds_path>:<new_ds> ................................................................................ 41 EXAMPLES ................................................................................................................... 42 vicfg-adcfg ....................................................................... 43 --default -d ............................................................................................................... 43 --get -g ...................................................................................................................... 43 --get-kernel -j <kernelOption>................................................................................ 43 --list -l ....................................................................................................................... 43 --quiet -q .................................................................................................................. 57 --set -s ...................................................................................................................... 57 --set-kernel -k <value> <kernelOption> .................................................................... 57 --set-message -m ...................................................................................................... 58 vicfg-module ..................................................................... 59 --get-options -g ......................................................................................................... 59 --list -l ....................................................................................................................... 59 --query -q.................................................................................................................. 60 --set-options -s.......................................................................................................... 60 vicfg-user ........................................................................ 61 --addgroup -g ............................................................................................................ 61 --adduser -u .............................................................................................................. 61 --entity (required) -e ................................................................................................. 61 --group -d ................................................................................................................. 61 --groupid -D .............................................................................................................. 61 --login -l .................................................................................................................... 61 --newpassword -p ..................................................................................................... 61 --newuserid -i ........................................................................................................... 61 --newusername -n..................................................................................................... 61 --operation (required) -o ........................................................................................... 62 --promptpassword -P ................................................................................................ 65 --removegroup -G ..................................................................................................... 66 --removeuser -U........................................................................................................ 66 --role -r ..................................................................................................................... 66 --shell -s .................................................................................................................... 66 vicfg-volume ...................................................................... 67 --list -l ....................................................................................................................... 67 --persistent-mount -M .............................................................................................. 67 --refresh -R ............................................................................................................... 67 --resignature -r.......................................................................................................... 68 --umount -u ................................................................................................................ 68 vifs ................................................................................ 69 --copy -c .................................................................................................................... 69 --dc -Z ....................................................................................................................... 69 --dir -D ...................................................................................................................... 70 --force -f ................................................................................................................... 70 --get -g ...................................................................................................................... 70 --listdc -C .................................................................................................................. 70 --listds -S ................................................................................................................... 70 --mkdir -M ................................................................................................................ 71 --move -m ................................................................................................................. 72 --put -p ..................................................................................................................... 72 --rm -r ....................................................................................................................... 72 --rmdir -R .................................................................................................................. 72 vmkfstools ........................................................................ 73 --adapterType -a ....................................................................................................... 73 --blocksize -b............................................................................................................. 73 --clonevirtualdisk -i ................................................................................................... 73 --createfs -C ............................................................................................................... 74 --createrdm -r ............................................................................................................ 78 --createrdmpassthru -z .............................................................................................. 78 --createvirtualdisk -c ................................................................................................. 79 --deletevirtualdisk -U ................................................................................................. 79 --diskformat -d........................................................................................................... 79 --extendvirtualdisk -X................................................................................................ 80 --geometry -g ............................................................................................................ 81 --inflatedisk -j ............................................................................................................ 81 --queryfs -P ................................................................................................................ 82 --queryrdm -q ........................................................................................................... 82 --renamevirtualdisk -E ............................................................................................... 83 --setfsname -S ........................................................................................................... 83 --spanfs -Z ................................................................................................................. 83 --writezeros -w ......................................................................................................... 84 vicfg-iscsi ........................................................................ 85 --adapter -H .............................................................................................................. 85 --add -a ..................................................................................................................... 85 --alias -k .................................................................................................................... 86 --auth_password -w .................................................................................................. 86 --auth_username -u .................................................................................................. 86 --authentication -A.................................................................................................... 87 --detail -f................................................................................................................... 89 --disable -q ................................................................................................................ 92 --discovery -D............................................................................................................ 92 --enable -e ................................................................................................................ 92 --gateway -g............................................................................................................... 92 --ip -i ......................................................................................................................... 93 --iscsiname -I............................................................................................................. 93 --level -c .................................................................................................................... 93 --list -l ....................................................................................................................... 93 --lun -L ...................................................................................................................... 93 --method -m .............................................................................................................. 94 --mtu -M ................................................................................................................... 94 --mutual -b................................................................................................................ 94 --name -n .................................................................................................................. 95 --network -N ............................................................................................................. 95 --parameter -W ......................................................................................................... 95 --phba -P.................................................................................................................... 96 --pnp -p..................................................................................................................... 96 --remove -r ............................................................................................................... 96 --reset -o ................................................................................................................... 98 --reset_auth -z .......................................................................................................... 98 --set -j ....................................................................................................................... 99 --static -S .................................................................................................................. 99 --subnetmask -s .......................................................................................................100 --swiscsi -E ...............................................................................................................100 --target -T ................................................................................................................100 --target_id -t .............................................................................................................100 vmware-cmd ..................................................................... 102 Server Operations ......................................................................................................102 vmware-cmd –l ..................................................................................................................102 vmware-cmd -s register ......................................................................................................102 vmware-cmd -s unregister ..................................................................................................103 VM Operations ...........................................................................................................103 vmware-cmd <cfg> getstate ...............................................................................................103 vmware-cmd <cfg> start .....................................................................................................103 vmware-cmd <cfg> stop .....................................................................................................103 vmware-cmd <cfg> reset ....................................................................................................104 vmware-cmd <cfg> suspend ...............................................................................................105 vmware-cmd <cfg> setguestinfo .........................................................................................105 vmware-cmd <cfg> getguestinfo .........................................................................................105 vmware-cmd <cfg> getproductinfo .....................................................................................105 vmware-cmd <cfg> connectdevice ......................................................................................105 vmware-cmd <cfg> disconnectdevice..................................................................................105 vmware-cmd <cfg> getconfigfile .........................................................................................105 vmware-cmd <cfg> getuptime ............................................................................................105 vmware-cmd <cfg> answer .................................................................................................105 vmware-cmd <cfg> gettoolslastactive .................................................................................106 vmware-cmd <cfg> hassnapshot .........................................................................................106 vmware-cmd <cfg> createsnapshot ....................................................................................107 vmware-cmd <cfg> revertsnapshot .....................................................................................107 vmware-cmd <cfg> removesnapshots .................................................................................107 esxcli............................................................................. 108 esxcli corestorage .......................................................................................................108 esxcli corestorage claiming .................................................................................................108 esxcli corestorage claiming autoclaim .................................................................................... 108 esxcli corestorage claiming reclaim......................................................................................... 108 esxcli corestorage claiming unclaim ........................................................................................ 109 esxcli corestorage claimrule ...............................................................................................110 esxcli corestorage claimrule add ............................................................................................. 110 esxcli corestorage claimrule convert ....................................................................................... 114 esxcli corestorage claimrule delete ......................................................................................... 114 esxcli corestorage claimrule list............................................................................................... 116 esxcli corestorage claimrule load ............................................................................................ 116 esxcli corestorage claimrule move .......................................................................................... 116 esxcli corestorage claimrule run .............................................................................................. 117 esxcli corestorage device ....................................................................................................117 esxcli corestorage device list ................................................................................................... 117 esxcli corestorage plugin ....................................................................................................118 esxcli corestorage plugin list.................................................................................................... 118 esxcli network ............................................................................................................118 esxcli network claiming ......................................................................................................118 esxcli network claimrule.....................................................................................................118 esxcli network device .........................................................................................................119 esxcli network plugin ........................................................................................................119 esxcli nmp ..................................................................................................................119 esxcli nmp boot..................................................................................................................119 esxcli nmp boot restore ........................................................................................................... 119 esxcli nmp device ...............................................................................................................119 esxcli nmp device list ............................................................................................................... 119 esxcli nmp device setpolicy ...................................................................................................... 120 esxcli nmp fixed .................................................................................................................121 esxcli nmp fixed getpreferred .................................................................................................. 121 esxcli nmp fixed setpreferred................................................................................................... 121 esxcli nmp path..................................................................................................................121 esxcli nmp path list .................................................................................................................. 121 esxcli nmp psp ...................................................................................................................123 esxcli nmp psp getconfig ......................................................................................................... 123 esxcli nmp psp list .................................................................................................................... 123 esxcli nmp psp setconfig .......................................................................................................... 123 esxcli nmp roundrobin .......................................................................................................124 esxcli nmp roundrobin getconfig ............................................................................................. 124 esxcli nmp roundrobin setconfig.............................................................................................. 124 esxcli nmp satp ..................................................................................................................125 esxcli nmp satp addrule ........................................................................................................... 125 esxcli nmp satp deleterule ....................................................................................................... 125 esxcli nmp satp getconfig ........................................................................................................ 125 esxcli nmp satp list................................................................................................................... 126 esxcli nmp satp listrules ........................................................................................................... 126 esxcli nmp satp setconfig......................................................................................................... 130 esxcli nmp satp setdefaultpsp ................................................................................................. 130 esxcli swiscsi ..............................................................................................................130 esxcli swiscsi nic .................................................................................................................130 esxcli swiscsi nic add ................................................................................................................ 130 esxcli swiscsi nic list ................................................................................................................. 131 esxcli swiscsi nic remove .......................................................................................................... 132 esxcli swiscsi session ..........................................................................................................133 esxcli swiscsi session add ......................................................................................................... 133 esxcli swiscsi session list .......................................................................................................... 135 esxcli swiscsi session remove ................................................................................................... 137 esxcli swiscsi vmknic ..........................................................................................................137 esxcli swiscsi vmknic list .......................................................................................................... 137 esxcli swiscsi vmnic ............................................................................................................138 esxcli swiscsi vmnic list ............................................................................................................ 138 esxcli vaai ...................................................................................................................139 esxcli vaai device................................................................................................................139 esxcli vaai device list ................................................................................................................ 139 esxcli vms ...................................................................................................................139 esxcli vms vm .....................................................................................................................139 esxcli vms vm kill...................................................................................................................... 139 esxcli vms vm list ..................................................................................................................... 140 vicfg-authconfig (4.1) .......................................................... 141 --adpassword -w ......................................................................................................141 --adusername -U ......................................................................................................141 --authscheme -t .......................................................................................................141 --currentdomain -c ...................................................................................................141 --force -f ..................................................................................................................141 --getremoteauthstore -a ..........................................................................................141 --joindomain -j ..........................................................................................................141 --leavecurrentdomain -L ...........................................................................................141 --listauthstores -l......................................................................................................141 vicfg-hostops (4.1) ............................................................. 142 --action -a ................................................................................................................142 --cluster -c................................................................................................................142 --datacenter -d .........................................................................................................142 --force -f ..................................................................................................................142 --operation (required) -o ..........................................................................................142 vicfg-ipsec (4.1) ................................................................ 143 --action ......................................................................................................................143 --add-sa ......................................................................................................................143 --add-sp......................................................................................................................143 --dir ............................................................................................................................143 --dst-port....................................................................................................................143 --ealgo ........................................................................................................................143 --ekey .........................................................................................................................143 --flush-sa ....................................................................................................................143 --flush-sp ....................................................................................................................143 --ialgo.........................................................................................................................143 --ikey ..........................................................................................................................143 --list-sa -l..................................................................................................................143 --list-sp -L .................................................................................................................143 --remove-sa ................................................................................................................143 --remove-sp................................................................................................................144 --sa-dst .......................................................................................................................144 --sa-mode ...................................................................................................................144 --sa-name ...................................................................................................................144 --sa-src .......................................................................................................................144 --sp-dst.......................................................................................................................144 --sp-mode...................................................................................................................144 --sp-src .......................................................................................................................144 --spi............................................................................................................................144 --src-port ....................................................................................................................144 --ulproto.....................................................................................................................144 Bibliography ..................................................................... 145 1 vSphere CLI connection options Creating a configuration file which will be used to provide connection options while executing vSphere CLI commands against ESX host. Content of the file: VI_SERVER=192.168.9.201 VI_USERNAME=root VI_PASSWORD=password12345 VI_PROTOCOL=https VI_PORT=443 Executing a command using created configuration file: C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nics.pl --config 201 --list Name PCI Driver Link Speed Duplex MAC Address MTU Description vmnic0 02:01.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:75 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic1 02:02.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:7f 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic2 02:03.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:89 1500 Intel Corporation PRO/1000 MT Single Port Adapter 2 Configure vi-fastpass on vMA 4.0 Add servers to vMA: Initialize vi-fastpass: 3 Configure vi-fastpass on vMA 4.1 [vi-admin@vma41ws ~]$ sudo vifp addserver 192.168.9.201 root@192.168.9.201's password: [vi-admin@vma41ws ~]$ vifp listservers 192.168.9.201 ESXi [vi-admin@vma41ws ~]$ vifpinit 192.168.9.201 vifpinit is deprecated, use vifptarget instead. [vi-admin@vma41ws ~]$ vifptarget Error: Missing option. Usage: vifptarget <option> option is one of: --set | -s <server> --clear | -c --display | -d --help | -h <server> is a fastpass target added using vifp command [vi-admin@vma41ws ~]$ vifptarget --set 192.168.9.201 [vi-admin@vma41ws ~][192.168.9.201]$ vicfg-nics -l Name PCI Driver Link Speed Duplex MAC Address MTU Description vmnic0 02:01.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:75 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic1 02:02.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:7f 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic2 02:03.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:89 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic3 02:04.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:93 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic4 02:07.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:9d Intel Corporation PRO/1000 MT Single Port Adapter vmnic5 02:08.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:a7 Intel Corporation PRO/1000 MT Single Port Adapter 4 vicfg-dumppart --activate -a Activate the configured diagnostic partition. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --find Partition name mpx.vmhba1:C0:T0:L0:7 -> /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --list VM Kernel Name Console Name Is Active mpx.vmhba1:C0:T0:L0:7 /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 no C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --activate mpx.vmhba1:C0:T0:L0:7 Dump partition activated. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --list VM Kernel Name Console Name Is Active mpx.vmhba1:C0:T0:L0:7 /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 yes --deactivate -d Deactivate the current active diagnostic partition. WARNING: this will leave your system without any means of reporting errors until another partition is activated. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --deactivate Dump Partition Deactivated C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --get-active none 5 In case a dump partition is not set up it may be configured using vSphere Client. The option is available only when there is no active dump partition. --find -f Using the same method as the list option, find all the diagnostic partitions on this ESX Server. Based on the type of storage, print the partitions in order of their desirability to be used as a diagnostic partition. The order of priority for diagnostic partitions is Parallel adapter, block adapter, USB, Fibre Channel, Hardware iSCSI, Software iSCSI. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --find Partition name mpx.vmhba1:C0:T0:L0:7 -> /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 6 --get-active -t Get the active diagnostic partition for this system. This option returns the device identifier for the partition (naa.xxxxx:1) or 'none' when no partition is set. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --get-active mpx.vmhba1:C0:T0:L0:7 /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 --get-config -c Get the configured diagnostic partition for the system. This partition may or may not be the active partition. In a SAN situation this partition may have disappeared. This operation is currently not supported. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --get-config VM Kernel Name Console Name Is Active mpx.vmhba1:C0:T0:L0:7 /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 yes --list -l List all partitions on the system that have the appropriate partition type to act as an ESX Server diagnostic partition. WARNING: Listing will scan all LUNs on a system and may degrade system performance. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --list VM Kernel Name Console Name Is Active mpx.vmhba1:C0:T0:L0:7 /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 yes --set -s Set the diagnostic partition for this system and activate it, either naa.xxxxx:1 or 'none' to deactivate the active diagnostic partition. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --set none Dump Partition Deactivated C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --list VM Kernel Name Console Name Is Active mpx.vmhba1:C0:T0:L0:7 /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 no C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --set mpx.vmhba1:C0:T0:L0:7 Dump partition set. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dumppart.pl --config 201 --list VM Kernel Name Console Name Is Active mpx.vmhba1:C0:T0:L0:7 /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:7 yes 7 --smart-activate -S Activate the diagnostic partition if one is set and available. This operation is currently not supported. 8 vicfg-mpath --device -d Used to filter the list commands to display only a specific device. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list --device eui.51942814b35657a6 iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000002,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C1:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Adapter: vmhba33 Channel: 1 Target: 1 LUN: 0 Adapter Identifier: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Identifier: 00023d000002,fujinb,t,1 Plugin: NMP State: active Transport: iscsi Adapter Transport Details: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Transport Details: IQN=fujinb Alias= Session=00023d000002 PortalTag=1 iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000001,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C0:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Adapter: vmhba33 Channel: 0 Target: 1 LUN: 0 Adapter Identifier: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Identifier: 00023d000001,fujinb,t,1 Plugin: NMP State: active Transport: iscsi Adapter Transport Details: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Transport Details: IQN=fujinb Alias= Session=00023d000001 PortalTag=1 --list -l List all paths on the system with their detailed information. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list pscsi.vmhba1-pscsi.0:0-mpx.vmhba1:C0:T0:L0 Runtime Name: vmhba1:C0:T0:L0 Device: mpx.vmhba1:C0:T0:L0 Device Display Name: Local VMware, Disk (mpx.vmhba1:C0:T0:L0) Adapter: vmhba1 Channel: 0 Target: 0 LUN: 0 Adapter Identifier: pscsi.vmhba1 Target Identifier: pscsi.0:0 Plugin: NMP State: active Transport: parallel ide.vmhba32-ide.0:0-mpx.vmhba32:C0:T0:L0 Runtime Name: vmhba32:C0:T0:L0 9 Device: mpx.vmhba32:C0:T0:L0 Device Display Name: Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0) Adapter: vmhba32 Channel: 0 Target: 0 LUN: 0 Adapter Identifier: ide.vmhba32 Target Identifier: ide.0:0 Plugin: NMP State: active Transport: ide iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000002,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C1:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Adapter: vmhba33 Channel: 1 Target: 1 LUN: 0 Adapter Identifier: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Identifier: 00023d000002,fujinb,t,1 Plugin: NMP State: active Transport: iscsi Adapter Transport Details: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Transport Details: IQN=fujinb Alias= Session=00023d000002 PortalTag=1 iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000001,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C0:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Adapter: vmhba33 Channel: 0 Target: 1 LUN: 0 Adapter Identifier: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Identifier: 00023d000001,fujinb,t,1 Plugin: NMP State: active Transport: iscsi Adapter Transport Details: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Transport Details: IQN=fujinb Alias= Session=00023d000001 PortalTag=1 --list-compact -L List all paths with abbreviated information. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list-compact -device eui.51942814b35657a6 vmhba33:C1:T1:L0 state:active eui.51942814b35657a6 vmhba33 1 1 0 NMP active iqn.1998-01.com.vmware:esxi-21-30358a96 00023d000002,fujinb,t,1 vmhba33:C0:T1:L0 state:active eui.51942814b35657a6 vmhba33 0 1 0 NMP active iqn.1998-01.com.vmware:esxi-21-30358a96 00023d000001,fujinb,t,1 --list-map -m List all paths with adapter and device mappings. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list-map --device eui.51942814b35657a6 vmhba33:C1:T1:L0 vmhba33 iqn.1998-01.com.vmware:esxi-21-30358a96 00023d000002,fujinb,t,1 eui.51942814b35657a6 vmhba33:C0:T1:L0 vmhba33 iqn.1998-01.com.vmware:esxi-21-30358a96 00023d000001,fujinb,t,1 eui.51942814b35657a6 10 --list-paths -b List all devices with their corresponding paths. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list-paths --device eui.51942814b35657a6 eui.51942814b35657a6 : ROCKET iSCSI Disk (eui.51942814b35657a6) vmhba33:C1:T1:L0 LUN:0 state:active iscsi Adapter: iqn.1998-01.com.vmware:esxi-21-30358a96 Target: IQN=fujinb Alias= Session=00023d000002 PortalTag=1 vmhba33:C0:T1:L0 LUN:0 state:active iscsi Adapter: iqn.1998-01.com.vmware:esxi-21-30358a96 Target: IQN=fujinb Alias= Session=00023d000001 PortalTag=1 --list-plugins -G List all multipathing plugins loaded into the system. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list-plugins MASK_PATH NMP --path -P Used to specify a specific path for operations. The path name may be either the long path UID or the shorter runtime name of the path. This can be used to filter any of the list commands to a specific path if applicable. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --path vmhba33:C0:T1:L0 --state off Setting vmhba33:C0:T1:L0 state to off C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list-paths --device eui.51942814b35657a6 eui.51942814b35657a6 : ROCKET iSCSI Disk (eui.51942814b35657a6) vmhba33:C1:T1:L0 LUN:0 state:active iscsi Adapter: iqn.1998-01.com.vmware:esxi-21-30358a96 Targ et: IQN=fujinb Alias= Session=00023d000002 PortalTag=1 vmhba33:C0:T1:L0 LUN:0 state:off iscsi Adapter: iqn.1998-01.com.vmware:esxi-21-30358a96 Target: IQN=fujinb Alias= Session=00023d000001 PortalTag=1 11 --state -s Set the state for a specific LUN path to either "active" or "off". Requires path UID or path runtime name in --path. 12 vicfg-nas --add -a Add a new NAS filesystem to /vmfs/volumes. Requires --nasserver and --share options. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nas.pl --config 201 --add ISO --nasserver 192.168.9.222 --share /media/dwl/public/ISO_Library --readonly Connecting to NAS volume: ISO ISO created and connected. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nas.pl --config 201 --list NFS is /media/dwl/public/NFS from 192.168.9.222 mounted ISO is /media/dwl/public/ISO_Library from 192.168.9.222 mounted --delete -d Unmount and delete a filesystem C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nas.pl --config 201 --delete ISO NAS volume ISO deleted. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nas.pl --config 201 --list NFS is /media/dwl/public/NFS from 192.168.9.222 mounted --list -l List the currently mounted NAS file systems C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nas.pl --config 201 --list ISO is /media/dwl/public/ISO_Library from 192.168.9.222 mounted NFS is /media/dwl/public/NFS from 192.168.9.222 mounted --nasserver -o The host name or ip address for a NAS mount --readonly -y Add the new NAS filesystem with readonly access --share -s The name of the NAS share on the remote system 13 vicfg-scsidevs --compact-list -c List all logical devices each on a single line, with limited information. Supported on ESX 4.0 and ESXi 4.0. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-scsidevs.pl --config 201 --compact-list Device UID Device Type Console Device mpx.vmhba32:C0:T0:L0 cdrom Size Plugin Display Name /vmfs/devices/cdrom/mpx.vmhba32:C0:T0:L0 0MB NMP Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0) mpx.vmhba1:C0:T0:L0 disk /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0 9216MB NMP Local VMware, Disk (mpx.vmhba1:C0:T0:L0) eui.51942814b35657a6 disk /vmfs/devices/disks/eui.51942814b35657a6 4000MB NMP ROCKET iSCSI Disk (eui.51942814b35657a6) --device -d Used to filter the --list, --compact-list and --uids command to limit output to a specific device. Supported on ESX 4.0 and ESXi 4.0. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-scsidevs.pl --config 201 --compact-list -device eui.51942814b35657a6 Device UID Device Type Console Device eui.51942814b35657a6 disk Size Plugin Display Name /vmfs/devices/disks/eui.51942814b35657a6 4000MB NMP ROCKET iSCSI Disk (eui.51942814b35657a6) --hba-device-list -A Print a mapping between HBAs and the devices it provides paths to. Supported on ESX 4.0 and ESXi 4.0. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-scsidevs.pl --config 201 --hba-device-list vmhba1 mpx.vmhba1:C0:T0:L0 vmhba32 mpx.vmhba32:C0:T0:L0 vmhba33 eui.51942814b35657a6 vmhba33 eui.51942814b35657a6 --hbas -a Print HBA devices with identifying information. Supported on ESX 4.0 and ESXi 4.0. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-scsidevs.pl --config 201 --hbas Adapter_ID Driver UID PCI Vendor & Model vmhba0 ata_piix unknown.vmhba0 vmhba1 mptspi vmhba32 ata_piix ide.vmhba32 vmhba33 iscsi_vmk iqn.1998-01.com.vmware:esxi-21-30358a96 () pscsi.vmhba1 (0:7.1) Virtual Machine Chipset (0:16.0) LSI Logic Parallel SCSI Controller (0:7.1) Virtual Machine Chipset iSCSI Software Adapter 14 --list -l List all logical devices known on this system with detailed information. Supported on ESX 4.0 and ESXi 4.0. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-scsidevs.pl --config 201 --list mpx.vmhba32:C0:T0:L0 Device Type: cdrom Size: 0 MB Display Name: Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0) Plugin: NMP Console Device: /vmfs/devices/cdrom/mpx.vmhba32:C0:T0:L0 Devfs Path: /vmfs/devices/cdrom/mpx.vmhba32:C0:T0:L0 Vendor: NECVMWar Model: VMware IDE CDR10 Revis: 1.00 SCSI Level: 5 Is Pseudo: Status: Is RDM Capable: Is Removable: Other Names: vml.0005000000766d68626133323a303a30 VAAI Status: unknown mpx.vmhba1:C0:T0:L0 Device Type: disk Size: 9216 MB Display Name: Local VMware, Disk (mpx.vmhba1:C0:T0:L0) Plugin: NMP Console Device: /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0 Devfs Path: /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0 Vendor: VMware, Model: VMware Virtual S Revis: 1.0 SCSI Level: 2 Is Pseudo: Status: Is RDM Capable: Is Removable: Other Names: vml.0000000000766d686261313a303a30 VAAI Status: unknown eui.51942814b35657a6 Device Type: disk Size: 4000 MB Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Plugin: NMP Console Device: /vmfs/devices/disks/eui.51942814b35657a6 Devfs Path: /vmfs/devices/disks/eui.51942814b35657a6 Vendor: ROCKET Model: IMAGEFILE Revis: 0001 SCSI Level: 4 Is Pseudo: Status: Is RDM Capable: Is Removable: Other Names: vml.010000000035313934323831344233353635374136494d41474546 VAAI Status: unknown --query -q Print mappings in 2.5 compatibility mode to mimic vmkpcidivy -q vmhba_devs. Supported on ESX 2.5, ESX 3.0, ESX 3.5, ESX 3i only. 15 --uids -u List all device unique identifiers with their primary name. Supported on ESX 4.0 and ESXi 4.0. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-scsidevs.pl --config 201 --uids Primary UID Other UID mpx.vmhba32:C0:T0:L0 vml.0005000000766d68626133323a303a30 mpx.vmhba1:C0:T0:L0 vml.0000000000766d686261313a303a30 eui.51942814b35657a6 vml.010000000035313934323831344233353635374136494d41474546 16 vicfg-rescan C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33 Scan operation succeeded. vicfg-dns C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dns.pl --config 201 DNS Configuration Host Name esxi-21 Domain Name home.hc DHCP false DNS Servers 192.168.9.231 192.168.9.22 --dhcp -H The option (yes | no) to allow or disallow the use of DHCP. --dns -D The DNS server to be set (IPv6 address valid for vSphere 4.0 and later). C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dns.pl --config 201 --dns 192.168.9.231,192.168.9.22 Updated Host DNS network configuration successfully. --domain -d The domain name to be set. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dns.pl --config 201 --domain somedom.com Updated Host DNS network configuration successfully. 17 --hostname -n The hostname to be set. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dns.pl --config 201 --hostname somehost Updated Host DNS network configuration successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-dns.pl --config 201 DNS Configuration Host Name somehost Domain Name somedom.com DHCP false DNS Servers 192.168.9.231 192.168.9.222 --vnic -V The virtual nic adapter to use to override the system DNS (required for --dhcp yes) 18 vicfg-nics --list -l List the NICs in the system and, lists for each NIC, the PCI bus, driver, speed, duplex information, MAC address and a description. It also shows whether the link is up. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nics.pl --config 201 --list Name PCI Driver Link Speed Duplex MAC Address MTU Description vmnic0 02:01.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:75 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic1 02:02.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:7f 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic2 02:03.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:89 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic3 02:04.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:93 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic4 02:07.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:9d Intel Corporation PRO/1000 MT Single Port Adapter vmnic5 02:08.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:a7 Intel Corporation PRO/1000 MT Single Port Adapter --speed -s <speed> Set the speed at which a given card should run. It must be one of 10, 100, 1000, or 10000. --duplex -d <duplex> Set the duplex value which a given card should run. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nics.pl --config 201 --duplex half --speed 100 vmnic5 Updated the vmnic5 to speed 100 and half mode. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nics.pl --config 201 --list Name PCI Driver Link Speed Duplex MAC Address MTU Description vmnic0 02:01.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:75 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic1 02:02.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:7f 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic2 02:03.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:89 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic3 02:04.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:93 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic4 02:07.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:9d Intel Corporation PRO/1000 MT Single Port Adapter vmnic5 02:08.0 e1000 Up 100Mbps Half 00:0c:29:82:9b:a7 Intel Corporation PRO/1000 MT Single Port Adapter 19 --auto -a Set the given NIC to auto-negotiate its speed and duplex settings. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nics.pl --config 201 --auto vmnic5 Updated the vmnic5 to auto settings. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-nics.pl --config 201 --list Name PCI Driver vmnic0 02:01.0 e1000 Link Speed Duplex MAC Address MTU Description Up 1000Mbps Full 00:0c:29:82:9b:75 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic1 02:02.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:7f 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic2 02:03.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:89 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic3 02:04.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:93 1500 Intel Corporation PRO/1000 MT Single Port Adapter vmnic4 02:07.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:9d Intel Corporation PRO/1000 MT Single Port Adapter vmnic5 02:08.0 e1000 Up 1000Mbps Full 00:0c:29:82:9b:a7 Intel Corporation PRO/1000 MT Single Port Adapter 20 vicfg-ntp --add -a The name or IP address of the NTP server to add (IPv6 address valid for vSphere 4.0 and later) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --add 64.99.80.30 Configuring 64.99.80.30 as NTP server. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --list Configured NTP servers: 64.99.80.30 --delete -d The name or IP address of the NTP server to remove (IPv6 address valid for vSphere 4.0 and later) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --delete 64.99.80.30 Removing 64.99.80.30 as NTP server. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --list No NTP servers configured. --list -l Displays all NTP servers used by the host C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --list No NTP servers configured. --start -r Starts the NTP service on the host C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --start Unable to start NTP service: The operation is not allowed in the current state. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --stop Stopped NTP service on host. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --start Started NTP service on host. 21 --stop -s Stops the NTP service on the host C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl --config 201 --stop Stopped NTP service on host. 22 vicfg-route C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201 VMkernel IPv4 default gateway is 192.168.9.9 --add -a Add route to the VMkernel (valid for vSphere 4.0 and later), requires <network> (described below) <network> can be specified in 3 ways: * As a single argument in <IP>/<Mask> format * Or as a <IP> <Netmask> pair. * Or as 'default' C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201 --add default 192.168.9.231 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201 --add 121.121.121.0/24 192.168.9.21 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201 --list VMkernel Routes: Network default 121.121.121.0 192.168.9.0 Netmask 0.0.0.0 Gateway 192.168.9.231 255.255.255.0 255.255.255.0 Interface vmk0 192.168.9.21 Local Subnet vmk0 vmk0 23 --del -d Delete route from the VMkernel (valid for vSphere 4.0 and later), requires <network> (described below) <network> can be specified in 3 ways: * As a single argument in <IP>/<Mask> format * Or as a <IP> <Netmask> pair. * Or as 'default' C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201 --del 121.121.121.0/24 192.168.9.21 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201 --del default 192.168.9.231 WARNING! Removing the default route for system! Removing the default route may result in lost network connectivity Are you sure you wish to proceed? (y/n) y C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201 --list VMkernel Routes: Network Netmask 192.168.9.0 Gateway 255.255.255.0 Interface Local Subnet vmk0 --family -f (default 'v4') Address family to work on ('v4' or 'v6'). Default to 'v4' (valid for vSphere 4.0 and late. --list -l List configured routes for the VMkernel C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201 --list VMkernel Routes: Network default 192.168.9.0 Netmask 0.0.0.0 Gateway 192.168.9.9 255.255.255.0 Interface vmk0 Local Subnet vmk0 24 vicfg-vmknic --add -a Add a VMkernel NIC to the system. Requires ip, netmask, portgroup. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --add vsTest C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --link vmnic3 vsTest Updated uplinks: vmnic3 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --add-pg pgVMKTest vsTest C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --add --ip 100.100.100.100 --netmask 255.255.0.0 pgVMKTest Added the VMkernel NIC successfully C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --list Interface Port Group/DVPort IP Family IP Address Netmask MAC Address vmk0 Management IPv4 192.168.9.201 255.255.255.0 00:50:56:71:bd:7a 1500 STATIC MTU Type VMotion vmk1 VMk-SWiSCSI-PG-1 IPv4 192.168.9.202 255.255.255.0 00:50:56:77:00:94 1500 STATIC Disabled vmk2 VMk-SWiSCSI-PG-2 IPv4 192.168.9.203 255.255.255.0 00:50:56:7f:d2:ea 1500 STATIC Disabled vmk3 pgVMKTest IPv4 100.100.100.100 255.255.0.0 00:50:56:7b:6b:a2 1500 STATIC Enabled Disabled --delete -d Delete the VMkernel NIC on the given portgroup. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --delete pgVMKTest Removed the VMkernel NIC successfully C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --list Interface Port Group/DVPort IP Family IP Address Netmask MAC Address MTU Type VMotion vmk0 Management IPv4 192.168.9.201 255.255.255.0 00:50:56:71:bd:7a 1500 STATIC vmk1 VMk-SWiSCSI-PG-1 IPv4 192.168.9.202 255.255.255.0 00:50:56:77:00:94 1500 STATIC Disabled vmk2 VMk-SWiSCSI-PG-2 IPv4 192.168.9.203 255.255.255.0 00:50:56:7f:d2:ea 1500 STATIC Disabled Disabled 25 --disable-vmotion -u Disable VMotion for the VMkernel NIC on a specified portgroup. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --disable-vmotion pgVMKTest Disable VMotion for VMkernel NIC successfully on port group pgVMKTest. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --list Interface Port Group/DVPort IP Family IP Address Netmask MAC Address vmk0 Management IPv4 192.168.9.201 255.255.255.0 00:50:56:71:bd:7a 1500 STATIC MTU Type VMotion vmk1 VMk-SWiSCSI-PG-1 IPv4 192.168.9.202 255.255.255.0 00:50:56:77:00:94 1500 STATIC Disabled vmk2 VMk-SWiSCSI-PG-2 IPv4 192.168.9.203 255.255.255.0 00:50:56:7f:d2:ea 1500 STATIC Disabled vmk3 pgVMKTest IPv4 100.100.100.100 255.255.0.0 00:50:56:7b:6b:a2 1500 STATIC Disabled Disabled --dvport-id -v Setting DVPort ID of the connection point (valid for vSphere 4.0 and later). Requires --dvs-name parameter. --dvs-name -s Setting DVSwitch name of the connection point (valid for vSphere 4.0 and later). Requires --dvport-id parameter. --enable-ipv6 -6 Enable (true) or disable (false) IPv6 for next boot (valid for vSphere 4.0 and later). --enable-vmotion -E Enable VMotion for the VMkernel NIC on a specified portgroup. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --enable-vmotion pgVMKTest Enable VMotion for VMkernel NIC successfully on port group pgVMKTest. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --list Interface Port Group/DVPort IP Family IP Address vmk0 Management IPv4 192.168.9.201 255.255.255.0 00:50:56:71:bd:7a 1500 STATIC Disabled vmk1 VMk-SWiSCSI-PG-1 IPv4 192.168.9.202 255.255.255.0 00:50:56:77:00:94 1500 STATIC Disabled 255.255.255.0 00:50:56:7f:d2:ea 1500 STATIC vmk2 VMk-SWiSCSI-PG-2 IPv4 192.168.9.203 vmk3 pgVMKTest IPv4 100.100.100.100 Netmask MAC Address MTU The IP address for this VMkernel NIC where IP address can be: DHCP VMotion 255.255.0.0 00:50:56:7b:6b:a2 1500 STATIC --ip -i <X.X.X.X> Type - to use static IPv4 address specified - to enable IPv4 DHCP for address Disabled Enabled 26 <X:X:X::/X> - to use static IPv6 address (valid for vSphere 4.0 and later) DHCPV6 - to enable IPv6 DHCP for address (valid for vSphere 4.0 and later) AUTOCONF - to enable IPv6 Router advertised address (valid for vSphere 4.0 and later) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --list Interface Port Group/DVPort IP Family IP Address Netmask MAC Address MTU Type VMotion vmk0 Management IPv4 192.168.9.201 255.255.255.0 00:50:56:71:bd:7a 1500 STATIC vmk1 VMk-SWiSCSI-PG-1 IPv4 192.168.9.202 255.255.255.0 00:50:56:77:00:94 1500 STATIC Disabled Disabled vmk2 VMk-SWiSCSI-PG-2 IPv4 192.168.9.203 255.255.255.0 00:50:56:7f:d2:ea 1500 STATIC Disabled vmk3 pgVMKTest IPv4 100.100.100.100 255.255.0.0 00:50:56:7b:6b:a2 1500 STATIC Disabled C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --ip 99.99.99.99 -netmask 255.255.0.0 pgVMKTest Set IP address successfully C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --list Interface Port Group/DVPort IP Family IP Address Netmask MAC Address vmk0 Management IPv4 192.168.9.201 255.255.255.0 00:50:56:71:bd:7a 1500 STATIC MTU Type VMotion vmk1 VMk-SWiSCSI-PG-1 IPv4 192.168.9.202 255.255.255.0 00:50:56:77:00:94 1500 STATIC Disabled vmk2 VMk-SWiSCSI-PG-2 IPv4 192.168.9.203 255.255.255.0 00:50:56:7f:d2:ea 1500 STATIC Disabled vmk3 pgVMKTest IPv4 99.99.99.99 255.255.0.0 00:50:56:7b:6b:a2 1500 STATIC Disabled Disabled --list -l List VMkernel NICs on the system. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vmknic.pl --config 201 --list Interface Port Group/DVPort IP Family IP Address Netmask MAC Address MTU Type VMotion vmk0 Management IPv4 192.168.9.201 255.255.255.0 00:50:56:71:bd:7a 1500 STATIC Enabled vmk1 VMk-SWiSCSI-PG-1 IPv4 192.168.9.202 255.255.255.0 00:50:56:77:00:94 1500 STATIC Disabled vmk2 VMk-SWiSCSI-PG-2 IPv4 192.168.9.203 255.255.255.0 00:50:56:7f:d2:ea 1500 STATIC Disabled --mtu -m MTU for the interface being created (valid for vSphere 4.0 and later). --netmask -n The IP netmask for this VMkernel NIC --portgroup -p Setting portgroup as connection point. --tso -t Disable TSO for the vmknic being created (valid for vSphere 4.0 only). 27 --unset-ip -U The IP address for this VMkernel NIC where IP address can be (valid for vSphere 4.0 and later): <X:X:X::/X> - to remove the specified IPv6 address DHCPV6 AUTOCONF - to disable IPv6 DHCP address - to disable IPv6 Router advertised address 28 vicfg-vswitch --add -a Add a new virtual switch C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --add vsTest C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --list ... Switch Name vsTest Num Ports 128 Used Ports 1 PortGroup Name Configured Ports MTU 128 Uplinks 1500 VLAN ID Used Ports Uplinks ... --add-dvp-uplink -P Add an uplink adapter (pnic) to a DVPort (valid for vSphere 4.0 and later) --add-pg -A Add a portgroup to a virtual switch C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --add-pg pgTest vsTest C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --list ... Switch Name vsTest Num Ports 128 PortGroup Name pgTest ... Used Ports 1 128 Configured Ports MTU 1500 VLAN ID Used Ports 0 0 Uplinks Uplinks 29 --add-pg-uplink -M Add an uplink adapter (pnic) to a portgroup (valid for vSphere 4.0 and later) 30 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --list ... Switch Name vsTest Num Ports 128 Used Ports 3 PortGroup Name Configured Ports MTU 128 Uplinks 1500 vmnic3,vmnic2 VLAN ID Used Ports Uplinks pgTest 111 0 vmnic3,vmnic2 pgTest2 0 0 vmnic3,vmnic2 ... C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --add-pg-uplink vmnic2 --pg pgTest vsTest Added uplink adapter successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --list ... Switch Name vsTest Num Ports 128 Used Ports 3 PortGroup Name Configured Ports MTU 128 1500 vmnic3,vmnic2 VLAN ID Used Ports Uplinks pgTest 111 0 vmnic2 pgTest2 0 0 vmnic3,vmnic2 ... Uplinks 31 --check -c Check to see if virtual switch exists C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --check vsTest 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --check vsTestttt 0 --check-pg -C Check to see if a portgroup exists C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --check-pg pgTest 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --check-pg pgTesttttt 0 --del-dvp-uplink -Q Delete an uplink adapter from a DVPort (valid for vSphere 4.0 and later) --del-pg -D Delete the portgroup from the virtual switch C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --check-pg pgTest 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --del-pg pgTest vsTest C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --check-pg pgTest 0 32 --del-pg-uplink -N Delete an uplink adapter from a portgroup (valid for vSphere 4.0 and later) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --del-pg-uplink vmnic2 --pg pgTest vsTest Deleted uplink adapter successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --list ... Switch Name vsTest Num Ports 128 Used Ports 3 PortGroup Name 128 Configured Ports MTU VLAN ID Used Ports pgTest 111 0 pgTest2 0 0 Uplinks 1500 vmnic3,vmnic2 Uplinks vmnic3,vmnic2 ... --delete -d Delete the virtual switch C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --delete vsTest C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --check vsTest 0 33 --dvp -V The name of the DVPort (valid for vSphere 4.0 and later) --get-cdp -b Print the current CDP setting for this virtual switch (valid for vSphere 4.0 and later) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --get-cdp vSSManagement both --link -L Sets a pnic as an uplink for the virtual switch C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --link vmnic3 vsTest Updated uplinks: vmnic3 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --list ... Switch Name vsTest Num Ports 128 Used Ports 2 PortGroup Name pgTest Configured Ports MTU 128 VLAN ID Used Ports 0 0 Uplinks 1500 vmnic3 Uplinks vmnic3 ... --list -l List vswitches and port groups C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --list Switch Name Num Ports Used Ports vSS-Management 128 4 PortGroup Name VM-0 0 0 Management 1 1 Num Ports VM-1 Used Ports 0 0 0 Num Ports vSS-SWiSCSI-2 128 VMk-SWiSCSI-PG-2 vmnic1 Used Ports Configured Ports MTU 128 0 0 Uplinks vmnic1 1500 vmnic2 VLAN ID Used Ports 0 Uplinks 1500 vmnic1 1 3 PortGroup Name VM-2 Configured Ports MTU 128 VLAN ID Used Ports VMk-SWiSCSI-PG-1 Switch Name vmnic0 3 PortGroup Name Uplinks vmnic0 0 vSS-SWiSCSI-1 128 Uplinks 1500 vmnic0 VLAN ID Used Ports 0 VMkernel Switch Name Configured Ports MTU 128 Uplinks vmnic2 1 vmnic2 Uplinks 34 DVS Name Num Ports Used Ports Configured Ports Uplinks dvS-1 256 DVPort ID 3 In Use 256 vmnic4,vmnic5 Client 140 1 vmnic4 141 1 vmnic5 10 0 --mtu -m Set MTU for the virtual switch --pg -p The name of the portgroup --set-cdp -B Set the CDP status for a given virtual switch (valid for vSphere 4.0 and later). To set pass "down", "listen", "advertise", or "both" C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --get-cdp vSSManagement both C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --set-cdp listen vSSManagement C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --get-cdp vSSManagement listen --unlink -U Removes a pnic from the uplinks for the virtual switch --vlan -v Set vlan id for portgroup specified by –p C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --vlan 111 -pg pgTest vsTest C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --list ... Switch Name vsTest Num Ports 128 PortGroup Name pgTest ... Used Ports 2 Configured Ports MTU 128 1500 vmnic3 VLAN ID Used Ports 111 0 vmnic3 Uplinks Uplinks 35 vicfg-cfgbackup --force -f Force the restore of the configuration. --load -l Restore configuration onto the host C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --config 201 --load "C:\esxbckp" The restore operation will reboot the host. Type 'yes' to continue: no operation skipped. --quiet -q Do not prompt for user confirmation. --reset -r Resets host, restore to factory settings. --save -s Backup the host configuration. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --config 201 --save "C:\esxbckp" Saving firmware configuration to C:\esxbckp ... 36 vicfg-snmp --communities -c Set communities separated by comma comm1[,...] (this overwrites previous settings) --disable -D Stop SNMP service --enable -E Start SNMP service C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --config 201 --enable Enabling agent... Complete. --port -p Sets the port of the snmp agent. The default is udp/162 --reset -r Clear communities and targets --show -s Displays snmp agent configuration. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --config 201 --show Current SNMP agent settings: Enabled : 0 UDP port : 161 Communities : Notification targets : 37 --targets -t Set destination of notifications(traps) hostname[@port][/community][,...] (this overwrites previous settings) (IPv6 address valid for vSphere 4.0 and later) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --config 201 --targets 192.168.9.21 Changing notification(trap) targets list to: 192.168.9.21... Error: target "192.168.9.21" must specify destination/community and optionally a port number. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --config 201 --targets 192.168.9.21/public Changing notification(trap) targets list to: 192.168.9.21/public... Complete. --test -T Send out a test notification to validate configuration. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --config 201 --test Sending test nofication(trap) to all configured targets... Complete. Check with each target to see if trap was received . 38 vicfg-syslog --setport -p Sets the port of the syslog server (only supported for ESXi). Can be used with -s. --setserver -s Sets the host name of the syslog server (only supported for ESXi). Can be used with -p. (IPv6 address valid for vSphere 4.0 and later) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-syslog.pl --config 201 --setserver 192.168.9.21 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-syslog.pl --config 201 --show Current remote syslog server settings: Server name : (192.168.9.21) Server port : 514 --show -i Displays syslog server configuration. Should be supplied alone. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-syslog.pl --config 201 --show No remote syslog server configured. 39 vihostupdate --bulletin -B Parameter to specify the selective bulletin(s) to install. Use comma to specify multiple bulletins (eg. bulletin1,bulletin2). All bulletins will be installed if this option is not specified. --bundle -b Parameter to specify the location of the offline bundle. For install operation, multiple offline bundles can be specified using comma separator with no space (eg. bundle1,bundle2). --install -i Install the host with selective bulletins from the bundle, the depot or local offline bundle. --list -l List the bulletins in the bundle or in the depot. --metadata -m Parameter to specify the location of the depot metadata.zip --nosigcheck -c Ignore integrity checking during install operation (unsupported). --query -q Query the bulletins that are already installed in the host. --remove -r Remove selective bulletins from the host. --scan -s Scan the host against the bundle or the depot for applicable bulletins. 40 svmotion DESCRIPTION The svmotion command moves a virtual machine's configuration file, and optionally, its disks, while the virtual machine is running. The *Basic System Administration* manual discusses how to use svmotion. You can use svmotion to initiate migrations for virtual machines running on either ESX or ESXi hosts. When you run svmotion, "--server" must point to a vCenter Server system. The "--vm" option specifies the virtual machine and its destination. By default, svmotion relocates all virtual disks to the same datastore as the virtual machine. Use the "--disks" option to relocate individual virtual disks to different datastores. You cannot relocate a virtual disk without relocating the virtual machine configuration file. Interactive Mode To use the command in interactive mode, type "svmotion --interactive". The command prompts you for the information necessary to complete the storage migration. Use quotes around special characters on Windows systems. When you specify "--interactive", all other options are ignored. C:\Program Files\VMware\VMware vSphere CLI\bin>svmotion.pl --interactive Entering interactive mode. All other options and environment variables will be ignored. Enter the VirtualCenter service url you wish to connect to (e.g. https://myvc.mycorp.com/sdk, or jus t myvc.mycorp.com): 192.168.9.231 Enter your username: administrator Enter your password: Attempting to connect to https://192.168.9.231/sdk. Connected to server. Enter the name of the datacenter: DC Enter the datastore path of the virtual machine (e.g. [datastore1] myvm/myvm.vmx): [NFS] VM1/VM1.vmx Enter the name of the destination datastore: iSCSI-NW You can also move disks independently of the virtual machine. If you want the disks to stay with th e virtual machine, then skip this step.. Would you like to individually place the disks (yes/no)? no Performing Storage VMotion. 0% |---------------------------------------------------------------------------------------------------| 100% #################################################################################################### Storage VMotion completed successfully. Disconnecting. 41 Noninteractive Mode In noninteractive mode, the svmotion command uses the following syntax: svmotion [<connection_options] --datacenter=<datacenter_name> --vm <VM config_ds_path>:<new_ds> [--disks <virtual_disk_ds_path>:<new_ds>, <vdisk_ds_path>:<new_ds>] Square brackets indicate optional elements, not datastores. --datacenter <datacenter_name> Datacenter that contains the virtual machine to be migrated. Surround the name in quotes if it contains white spaces or special characters. --disks <virtual_disk_datastore_path>:<new_datastore>... Locations of individual disks. The format is datastore path of the disk, colon, name of the destination datastore. If the path contains spaces or special characters, you must quote it. You can specify multiple datastore and destination pairs, separated by commas. If you do not specify this option, all virtual disks associated with a virtual machine are relocated to the same datastore as the virtual machine configuration file. Specify this option to locate individual virtual disks to different datastores. To keep a virtual disk on its current datastore, use the "--disks" option for that disk, with its current datastore as the <new_datastore>. --vm <VM_config_ds_path>:<new_ds> Specifies which virtual machine to move and to which datastore. <VM_config_ds_path> is the path to the virtual machine configuration file. If the path contains spaces or other special characters, you must quote it. <new datastore> is the name of the new datastore for the virtual machine configuration file or disk. C:\Program Files\VMware\VMware vSphere CLI\bin>svmotion.pl --config 231 --datacenter=DC --vm "[iSCSI-NW] VM1/VM1.vmx:NFS" 42 EXAMPLES Relocate a virtual machine's storage (including disks) to new_datastore: svmotion --url=https://myvc.mycorp.com/sdk --username=me --password=secret --datacenter=DC1 --vm='[old_datastore] myvm/myvm.vmx: new_datastore' Relocate a virtual machine's storage to new_datastore, but leave the two disks (myvm/myvm_1.vmdk and myvm/myvm_2.vmdk) in old_datastore: svmotion --datacenter='My DC' --vm='[old_datastore] myvm/myvm.vmx: new_datastore' --disks='[old_datastore] myvm/myvm_1.vmdk: old_datastore, [old_datastore] myvm/myvm_2.vmdk: old_datastore' 43 vicfg-adcfg --default -d Set the value of a specific configuration item to the default value defined by the VMkernel. --get -g Get the value of a specific configuration item given its identifying path, and print the value to stdout. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-advcfg.pl --config 201 --get /Annotations/WelcomeMessage Value of Annotations.WelcomeMessage is wilkommen --get-kernel -j <kernelOption> Get the value of a VMkernel boot parameter. --list -l List all VMkernel advanced config options. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-advcfg.pl --config 201 --list Annotations.WelcomeMessage : BufferCache.SoftMaxDirty : Flush immediately if this many buffers are dirty (percent) BufferCache.HardMaxDirty : Block writers if this many buffers are dirty (percent) BufferCache.FlushInterval : Flush periodically at this interval (msec) COW.COWMaxHeapSizeMB : Maximum size (in MB) to which the COW heap is allowed to grow Config.Defaults.cpuidMask.mode.0.eax : Controls the use of Config.Defaults.cpuidMask.val.0.eax; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.0.ebx : Controls the use of Config.Defaults.cpuidMask.val.0.ebx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.0.ecx : Controls the use of Config.Defaults.cpuidMask.val.0.ecx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.0.edx : Controls the use of Config.Defaults.cpuidMask.val.0.edx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.1.eax : Controls the use of Config.Defaults.cpuidMask.val.1.eax; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.1.ebx : Controls the use of Config.Defaults.cpuidMask.val.1.ebx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.1.ecx : Controls the use of Config.Defaults.cpuidMask.val.1.ecx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.1.edx : Controls the use of Config.Defaults.cpuidMask.val.1.edx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000000.eax : Controls the use of Config.Defaults.cpuidMask.val.80000000.eax; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000000.ebx : Controls the use of Config.Defaults.cpuidMask.val.80000000.ebx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000000.ecx : Controls the use of Config.Defaults.cpuidMask.val.80000000.ecx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000000.edx : Controls the use of Config.Defaults.cpuidMask.val.80000000.edx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000001.eax : Controls the use of Config.Defaults.cpuidMask.val.80000001.eax; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000001.ebx : Controls the use of Config.Defaults.cpuidMask.val.80000001.ebx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000001.ecx : Controls the use of Config.Defaults.cpuidMask.val.80000001.ecx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000001.edx : Controls the use of Config.Defaults.cpuidMask.val.80000001.edx; legal values "mask", "clobber", or "disable". 44 Config.Defaults.cpuidMask.mode.80000008.eax : Controls the use of Config.Defaults.cpuidMask.val.80000008.eax; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000008.ebx : Controls the use of Config.Defaults.cpuidMask.val.80000008.ebx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000008.ecx : Controls the use of Config.Defaults.cpuidMask.val.80000008.ecx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.80000008.edx : Controls the use of Config.Defaults.cpuidMask.val.80000008.edx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.8000000A.eax : Controls the use of Config.Defaults.cpuidMask.val.8000000A.eax; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.8000000A.ebx : Controls the use of Config.Defaults.cpuidMask.val.8000000A.ebx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.8000000A.ecx : Controls the use of Config.Defaults.cpuidMask.val.8000000A.ecx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.mode.8000000A.edx : Controls the use of Config.Defaults.cpuidMask.val.8000000A.edx; legal values "mask", "clobber", or "disable". Config.Defaults.cpuidMask.val.0.eax : CPUID override that may be applied to level 0 register eax; controlled by Config.Defaults.cpuidMask.mode.0.eax. Config.Defaults.cpuidMask.val.0.ebx : CPUID override that may be applied to level 0 register ebx; controlled by Config.Defaults.cpuidMask.mode.0.ebx. Config.Defaults.cpuidMask.val.0.ecx : CPUID override that may be applied to level 0 register ecx; controlled by Config.Defaults.cpuidMask.mode.0.ecx. Config.Defaults.cpuidMask.val.0.edx : CPUID override that may be applied to level 0 register edx; controlled by Config.Defaults.cpuidMask.mode.0.edx. Config.Defaults.cpuidMask.val.1.eax : CPUID override that may be applied to level 1 register eax; controlled by Config.Defaults.cpuidMask.mode.1.eax. Config.Defaults.cpuidMask.val.1.ebx : CPUID override that may be applied to level 1 register ebx; controlled by Config.Defaults.cpuidMask.mode.1.ebx. Config.Defaults.cpuidMask.val.1.ecx : CPUID override that may be applied to level 1 register ecx; controlled by Config.Defaults.cpuidMask.mode.1.ecx. Config.Defaults.cpuidMask.val.1.edx : CPUID override that may be applied to level 1 register edx; controlled by Config.Defaults.cpuidMask.mode.1.edx. Config.Defaults.cpuidMask.val.80000000.eax : CPUID override that may be applied to level 80000000 register eax; controlled by Config.Defaults.cpuidMask.mode.80000000.eax. Config.Defaults.cpuidMask.val.80000000.ebx : CPUID override that may be applied to level 80000000 register ebx; controlled by Config.Defaults.cpuidMask.mode.80000000.ebx. Config.Defaults.cpuidMask.val.80000000.ecx : CPUID override that may be applied to level 80000000 register ecx; controlled by Config.Defaults.cpuidMask.mode.80000000.ecx. Config.Defaults.cpuidMask.val.80000000.edx : CPUID override that may be applied to level 80000000 register edx; controlled by Config.Defaults.cpuidMask.mode.80000000.edx. Config.Defaults.cpuidMask.val.80000001.eax : CPUID override that may be applied to level 80000001 register eax; controlled by Config.Defaults.cpuidMask.mode.80000001.eax. Config.Defaults.cpuidMask.val.80000001.ebx : CPUID override that may be applied to level 80000001 register ebx; controlled by Config.Defaults.cpuidMask.mode.80000001.ebx. Config.Defaults.cpuidMask.val.80000001.ecx : CPUID override that may be applied to level 80000001 register ecx; controlled by Config.Defaults.cpuidMask.mode.80000001.ecx. Config.Defaults.cpuidMask.val.80000001.edx : CPUID override that may be applied to level 80000001 register edx; controlled by Config.Defaults.cpuidMask.mode.80000001.edx. Config.Defaults.cpuidMask.val.80000008.eax : CPUID override that may be applied to level 80000008 register eax; controlled by Config.Defaults.cpuidMask.mode.80000008.eax. Config.Defaults.cpuidMask.val.80000008.ebx : CPUID override that may be applied to level 80000008 register ebx; controlled by Config.Defaults.cpuidMask.mode.80000008.ebx. Config.Defaults.cpuidMask.val.80000008.ecx : CPUID override that may be applied to level 80000008 register ecx; controlled by Config.Defaults.cpuidMask.mode.80000008.ecx. Config.Defaults.cpuidMask.val.80000008.edx : CPUID override that may be applied to level 80000008 register edx; controlled by Config.Defaults.cpuidMask.mode.80000008.edx. Config.Defaults.cpuidMask.val.8000000A.eax : CPUID override that may be applied to level 8000000A register eax; controlled by Config.Defaults.cpuidMask.mode.8000000A.eax. Config.Defaults.cpuidMask.val.8000000A.ebx : CPUID override that may be applied to level 8000000A register ebx; controlled by Config.Defaults.cpuidMask.mode.8000000A.ebx. Config.Defaults.cpuidMask.val.8000000A.ecx : CPUID override that may be applied to level 8000000A register ecx; controlled by Config.Defaults.cpuidMask.mode.8000000A.ecx. Config.Defaults.cpuidMask.val.8000000A.edx : CPUID override that may be applied to level 8000000A register edx; controlled by Config.Defaults.cpuidMask.mode.8000000A.edx. Config.Defaults.security.host.ruissl : Require SSL to be used when communicating with the host over port 902. Config.GlobalSettings.guest.commands.sharedPolicyRefCount : Reference count to enable guest operations. Config.HostAgent.plugins.vimsvc.authValidateInterval : Number of minutes between each validation of all known users and groups - set to zero to disable validation. Config.HostAgent.plugins.vimsvc.userSearch.maxResults : Maximum number of users and groups to display in the Add Permissions dialog - set to zero to disable the limit. 45 Config.HostAgent.plugins.vimsvc.userSearch.maxTimeSeconds : Number of seconds to wait for a search for users and groups to return results - set to zero to disable the timeout. Cpu.HostRebalancePeriod : average milliseconds between opportunities for a pcpu to migrate vcpus from within the whole system, 0 to disable Cpu.PackageRebalancePeriod : average milliseconds between opportunities for a pcpu to migrate vcpus from within a package, 0 to disable Cpu.L3RebalancePeriod : average milliseconds between opportunities for a pcpu to migrate vcpus from within the shared L3 cache, 0 to disable Cpu.L2RebalancePeriod : average milliseconds between opportunities for a pcpu to migrate vcpus from within the shared L2 cache, 0 to disable Cpu.HTRebalancePeriod : average milliseconds between opportunities for a pcpu to migrate vcpus from within a core Cpu.FairnessRebalancePcpus : max number of PCPUs to be considered when doing fairness rebalance, 0 to disable Cpu.WakeupMigrateIdlePcpus : max number of PCPUs to be considered when doing wakeup idle rebalance, 0 to disable Cpu.WakeupMigrateCorunPcpus : max number of PCPUs to be considered when doing wakeup corun rebalance, 0 to disable Cpu.PcpuMigrateIdlePcpus : max number of PCPUs to be considered when doing pcpu idle rebalance, 0 to disable Cpu.MoveCurrentRunnerPcpus : max number of PCPUs to be considered when searching for runner move opportunity, 0 to disable Cpu.CreditAgePeriod : period in milliseconds Cpu.ActionRateThreshold : threshold for inter-vcpu action rate above which vcpus are considered to have action affinity (in num/sec) Cpu.ActionLoadThreshold : load threshold below which vcpu affinity migration is performed, 0 to disable Cpu.BoundLagQuanta : number of global quanta before bound lag Cpu.HaltingIdleMsecPenalty : ms per vcpu to add to partner's vtime for halting idle world (HT only), 0 to disable (may violate resource settings) Cpu.HaltingIdleMsecPenaltyMax : max ms to add to partner's vtime for halting idle world (HT only) Cpu.Quantum : quantum in milliseconds Cpu.UseMwait : use MWAIT vs. HLT in the idle loop; 0: use HLT, 1: use MWAIT if possible, 2: choose by cpu type Cpu.CoschedCrossCall : 0: disable cosched on crosscall; 1: enable cosched on crosscall Cpu.CoschedPreempt : 0: handoff on cosched request; 1: preempt on cosched request Cpu.CoschedHandoffLLC : 0: handoff by switching pcpu; 1: handoff to LLC if possible Cpu.CoschedPollUsec : interval between coscheduling skew checks, in usec Cpu.CoschedCostartThreshold : costart threshold in usec, costart threshold should be less than costopThreshold Cpu.CoschedCostopThreshold : maximum skew between vcpus in usec, 0 to disable Cpu.CoschedHandoffSkip : only skip handoff if ready time is smaller than this threshold, in usec, 0 to allow skip always Cpu.IdleHTRebalancePeriod : usec between chances to do HT rebalance when idle (0 to disable, 100000 max) Cpu.IdleTopologyRebalancePeriod : msec between chances to do topology rebalance when idle (0 to disable) Cpu.IntraCoreMigrate : When to allow intra-core migrations [0:when inter-core migration allowed, 1:always] Cpu.VMAdmitCheckPerVcpuMin : Check per-vcpu cpu reservation does not exceed the speed of a single physical cpu. [0:disabled, 1: enabled] Cpu.MultiCoreEnhancements : Bitmask of multicore enhancements with bits 0: Topology load balance; 1: Long term balance; 2: Runner-moves.(0 disables all) Cpu.DisableMicrocodeUpdate : Disable microcode update. DataMover.HardwareAcceleratedMove : Enable hardware accelerated VMFS data movement (requires compliant hardware) DataMover.HardwareAcceleratedInit : Enable hardware accelerated VMFS data initialization (requires compliant hardware) DirentryCache.MaxDentryPerObj : Maximum directory entries cached per directory Disk.SharesNormal : shares for normal/default disk priority Disk.SharesHigh : shares for high disk priority Disk.SharesLow : shares for low disk priority Disk.BandwidthCap : cap on disk bandwidth (KB/s) usage Disk.ThroughputCap : cap on disk throughput (IO/s) usage Disk.SectorMaxDiff : Distance in sectors at which disk BW sched affinity stops Disk.SchedQuantum : Number of consecutive requests from one World Disk.SchedNumReqOutstanding : Number of outstanding commands to a target with competing worlds Disk.SchedQControlSeqReqs : Number of consecutive requests from a VM required to raise the outstanding commands to max Disk.SchedQControlVMSwitches : Number of switches between commands issued by different VMs required to reduce outstanding commands to SchedNumReqOutstanding Disk.MaxLUN : Maximum LUN id (N+1) that is scanned on a target Disk.SupportSparseLUN : Support for sparse LUNs if set to one Disk.UseReportLUN : Use the REPORT LUN command to speed up scanning for devices Disk.UseDeviceReset : Use device reset (instead of bus reset) to reset a SCSI device Disk.UseLunReset : Use LUN reset (instead of device/bus reset) to reset a SCSI device Disk.RetryUnitAttention : Retry all SCSI commands that return a unit attention error Disk.PathEvalTime : The number of seconds between FC path evaluations 46 Disk.EnableNaviReg : Enable automatic NaviAgent registration with EMC CLARiiON and Invista Disk.DelayOnBusy : Delay in milliseconds for completion of commands with a BUSY status Disk.ResetLatency : Delay in milliseconds between reset thread wake-ups Disk.MaxResetLatency : Delay in milliseconds before logging warnings and spawning new reset worlds if a reset is overdue or taking too long Disk.ResetPeriod : Delay in seconds between bus resets retries Disk.ResetMaxRetries : Max number of bus reset retries (0=infinite) Disk.ResetThreadMin : Min number of reset handler threads Disk.ResetThreadMax : Max number of reset handler threads Disk.ResetThreadExpires : Life in seconds of an inactive reset handle thread Disk.ResetOverdueLogPeriod : Delay in seconds between logs of overdue reset Disk.PreventVMFSOverwrite : Prevent overwriting VMFS partitions Disk.DumpMaxRetries : Max number of I/O retries during disk dump Disk.DumpPollMaxRetries : Max number of device poll retries during disk dump Disk.DumpPollDelay : Number of microseconds to wait between polls during a disk dump. Disk.DiskMaxIOSize : Max Disk READ/WRITE I/O size before splitting (in KB) Disk.QFullSampleSize : IO samples to monitor for detecting non-transient queue full condition. Should be non zero to enable queue depth throttling. Disk.QFullThreshold : BUSY or QFULL threshold, upon which LUN queue depth will be throttled. Should be <= QFullSampleSize if throttling is enabled. Disk.DiskRetryPeriod : Retry period in milliseconds for a command with retry status Disk.DiskReservationThreshold : Time window within which refcounted reservations on a device are permitted (in msec) Disk.DiskPseudoUniqueID : enables synthesis of persistent pseudo-unique UUIDs for local devices that don.t support EVPD Inquiry FSS.FSSLightWeightProbe : Enable light-weight efficient probe of ESX supported datastores FT.NoWaitOnSocket : Don't wait on socket FT.FlushSleep : Sleep time in milliseconds when nothing to flush FT.LogBufferStallSleep : Sleep time in milliseconds when log buffer is full on the primary FT.AckIntervalMin : Minimum time in microseconds between acks FT.AckIntervalMax : Maximum time in microseconds between acks FT.HeartbeatCount : Number of failed heartbeats before declare dead. FT.HostTimeout : Time in milliseconds before declare FT host dead FT.UseHostMonitor : Use the host monitor to ping the other host FT.BackupExtraTimeout : Extra milliseconds before backup declares primary dead FT.LogTimeout : Time in milliseconds to wait on log socket FT.ExtraLogTimeout : Time in milliseconds for temporary increase in timeout FT.PrimaryConnectTimeout : Time in milliseconds to wait when connecting to the primary FT.BackupConnectTimeout : Time in milliseconds to wait for the backup to connect FT.GlobalFlushWorld : Use a global async flush world FT.FlushReservationMin : The minimum amount of CPU to reserve for the async flush world FT.FlushReservationMax : The maximum amount of CPU to reserve for the async flush world FT.MinWriteSize : Minimum amount of data to write to flush socket FT.FlushWorldlet : Flush the buffer from a worldlet FT.FillWorldlet : Fill the buffer from a worldlet FT.FillAffinity : Set the fill world/worldlet affinity to the tcp worldlet FT.XmitSyncQueueLen : Length of the Tx synchronization queue FT.MaxFlushInterval : Maximum amount of microseconds to wait before writing to flush socket FT.ChargeVMXForFlush : Charge the VMX world for log flushing instead of the global flush world FT.GoodExecLatency : Latency considered good execution latency(ms) FT.BadExecLatency : Latency considered bad execution latency(ms) FT.slowdownPctMax : Maximum primary vm CPU slowdown pct FT.slowdownTimeMax : Maximum primary vm CPU slowdown duration in seconds FT.adjUpPct : CPU speedup adjustment pct parameter FT.adjDownPct : CPU slowdown adjustment pct parameter FT.adjDownInt : CPU adjust down interval in seconds FT.adjUpInt : CPU adjust up interval in seconds FT.execLatExtra : Extra execution latency allowed in msec FT.maxLowerBound : CPU minimum alloc.max allowed in pct 47 FT.ExecLatencyKill : Time to wait for good latency before killing a slow backup(ms) FT.TCPNoDelayPrimary : Set TCP_NODELAY on the socket on the primary FT.TCPNoDelayBackup : Set TCP_NODELAY on the socket on the backup FT.TCPSndBufSize : TCP send buffer size for the primary FT.TCPRcvBufSize : TCP receive buffer size for the backup FT.TrafficPriority : PCP tag for FT traffic FT.BindToVmknic : Bind the FT socket to a specific vmknic FT.TCPPersistTimer : TCP persist timer time in milliseconds FT.IORetryTimes : Maximum disk I/O reissuing times on I/O error FT.IORetryInterval : Sleep interval (msec) between I/O reissuing on I/O error FT.IORetryExtraInterval : Sleep extra interval (msec) between I/O reissuing on I/O error FT.CheckForProgress : Check for progress on the backup and/or primary FT.PanicNoProgressMS : Milliseconds before panic if progress isn't made FT.CoreDumpNoProgressMS : Milliseconds before live coredump vmm and vmx if progress isn't made FT.CheckFCPathState : Check storage path state FT.ShortFlushDebugMS : Short millisecond interval for debugging flushing delays FT.LongFlushDebugMS : Long millisecond interval for debugging flushing delays FT.Vmknic : Vmknic for FT vmkernel VNIC Irq.RoutingPolicy : policy for interrupt routing, 1 for idle-routing, 2 for greedy routing, 0 to disable moving IRQs Irq.BestVcpuRouting : 1: try to route the virtual interrupt to the best vcpu; 0 to disable Irq.IRQRebalancePeriod : time in ms between attempts to rebalance interrupts Irq.IRQMaxLoadPct : maximum percentage of a cpu's resources that should be devoted to interrupts Irq.IRQBHConflictWeight : relative weight for irq/BH conflict Irq.IRQVcpuConflictWeight : relative weight for irq/vcpu conflict Irq.IRQActionAffinityWeight : relative weight for action-vcpu affinity LPage.LPageDefragEnable : Enable large page defragmentation LPage.LPageMarkLowNodes : Enable marking of nodes with low large pages free LPage.LPageDefragRateVM : Maximum number of lpage defrag attempts per second per VM LPage.LPageDefragRateTotal : Maximum number of lpage defrag attempts per second LPage.LPageAlwaysTryForNPT : Enable always try to alloc large page for NPT LPage.MaxSharedPages : Maximum number of shared pages in a 2MB region that may be broken to back the region with a large page LPage.MaxSwappedPagesInitVal : Initial value for maximum number of swapped pages in a 2MB region that may be read to back the region with a large page LPage.MapTimeWarnThresholdMS : Warn if large page mapping takes longer than the threshold (msecs) Mem.UseLowMemFirst : Preferred use of low memory if no type is specified Mem.UseStressLowMemory : Use low memory once in a while to satisfy ANY-memory requests. This increases the pressure on low memory. Mem.Prefault : prefault aggressiveness, 0 to disable, 100 for high Mem.PrefaultSRBufSize : Memory access stream recognition buffer size Mem.BalancePeriod : period in seconds, 0 to disable Mem.SamplePeriod : period in seconds, 0 to disable Mem.SampleMapLargeThreshold : Number of failures allowed before mapping a sampled 2M region as large Mem.IdleTax : idle memory tax rate Mem.IdleTaxType : idle tax type. 0=flat, 1=variable Mem.SampleActivePctMin : lower bound for sampled active memory Mem.SampleDirtiedPctMin : lower bound for sampled active dirtied memory Mem.ShareScanGHz : max page scan rate in MB/sec per GHz of host CPU, 0 to disable Mem.ShareScanTime : desired time in minutes to scan entire VM Mem.ShareRateMax : per-VM upper limit on pshare scan/check rate in pages/sec. (0 to disable) Mem.ShareVmkEnable : Enable scan for VMkernel-based page sharing Mem.ShareUpdatePeriod : Interval, in seconds, for updating pshare scan rate. Mem.CtlMaxPercent : vmmemctl limit as percentage of VM max size Mem.AllocHighThreshold : Threshold (in MB) at which we start allocating memory above 4GB Mem.AllocGuestLargePage : Enable large page backing of guest memory Mem.AllocUsePSharePool : Use pshare pool to allocate memory for shared pages 48 Mem.AllocUseGuestPool : Use large page pool to allocate memory for guest pages Mem.AdmitHeapMin : free heap space required to power on VM, in KB Mem.ShareCOSBufSize : Specify number of MPNs to be used by COW P2M buffer Mem.TestOnAlloc : Check newly allocated pages for memory errors Mem.ShareEstimatePeriod : Sleep interval for pshare-est daemon world Mem.ShareEstimateProbe : Maximum per-VM page probes for pshare estimation Mem.ShareEstimateSamples : Minimum required per-VM page samples for pshare estimation Mem.kernelResvPad : Extra padding (in MB) for MemSched's tracking of kernel memory usage Mem.LogLowMemoryStateUsage : Log memory usage of memclients during low memory state Mem.LogLowMemoryStateBT : Log back-trace of contexts that allocate MPNs during low memory state Mem.SwapDecayPct : Percentage of swap target to be proactively transferred to balloon target Mem.SwapRepostThreshold : Number of allowed page allocations before a pending swap request is reposted Mem.ConsumedPct : Percentage of consumed used as a pad in base{Min,Max} computation Mem.BonusAllocPct : Percentage of group allocation to be distributed to children as bonus Mem.ReallocChunkType : Reallocation chunk type (0=fixed, 1=variable) Mem.ReallocBaseChunkSize : Base chunk size for reallocation (in MB) Mem.ReallocBaseMaxPct : Percentage of group base max to be considered per reallocation iteration Mem.SwapRetryTimeout : Time in seconds to retry swap IO, 0 for no retry Mem.SwapFilePersist : The swap file is not deleted when the VM powers off, 1 to enable Mem.SwapInBatchPages : Number of pages swapped in per batch during opportunistic prefaulting Mem.SwapAsyncWritePages : Maximum allowed pending asynchronous swapout requests per VM Mem.HostLocalSwapDirEnabled : Enable use of host-local swap directory Mem.CptRetryTimeout : Time in milliseconds to retry checkpoint IO, 0 for system default Mem.BalloonCheckTime : Interval for checking if balloon driver is active (in seconds of guest progress) Mem.UnresponsiveVmCheckTime : Interval, in seconds, for checking if a VM is not responding to swap actions Mem.LPageUpdatePeriod : Interval, in seconds, for updating large page mapping thresholds Mem.TrackUsageAllocAllowance : Memory alloc allowance (in 4K pages) while usage is tracked via heartbeat or swap action post Mem.TrackUsageSwapAllowance : Memory swap allowance (in 4K pages) while usage is tracked via heartbeat or swap action post Mem.TrackUsageLPageAllowance : Memory large page alloc allowance (in 2M pages) while usage is tracked via heartbeat action post Mem.TrackUsageHeartbeatPeriod : Sleep interval in seconds for busmem heartbeat Mem.TrackUsageHeartbeatEnable : Enable/disable MPN usage tracking via heartbeat monitor action (0 for disable) Mem.VMOverheadGrowthLimit : Default limit (in MB) on VM overhead memory growth Mem.VMXMinMB : Memory reservation for VMX (in MB) Mem.VMXVisorSharedMB : Memory reservation saved by sharing VMX text with VisorFS Mem.MemZipEnable : Enable the memory compression cache Mem.MemZipMaxPct : Sets the maximum size for the compression cache as a percentage of configured VM memory size Mem.MemZipMaxAllocPct : Sets the maximum size for the compression cache as a percentage of allocated VM memory size Mem.MemZipLowMemMaxSwapOut : Maximum number of pages to swap out from the compression cache when in the low mem state Mem.MemZipBalloonXferPct : Amount of the balloon target to transfer to the swap target when memory is in the high and soft states. Mem.MemZipMaxRejectionPct : The maximum percent of memory that is rejected from the compression cache before we disable the balloon transfer. Mem.MemSwapSkipPct : Threshold of guest pages reclaimed by pshare or memzip above which to skip swap Mem.HostLocalSwapDir : Host-local directory for VM swap files Migrate.Enabled : Enable hot migration support Migrate.TryToUseDefaultHeap : Attempt use the default migration heap when beginning new migrations Migrate.VASpaceReserveCount : Number of migrations to reserve virtual address space for at module load time Migrate.VASpaceReserveSize : Megabytes of virtual address space to reserve per migration at module load time Migrate.PreCopySwitchoverTimeGoal : Goal time in milliseconds to send changed pages after pre-copy completes Migrate.PreCopyMinProgressMB : Minimum reduction in modified memory after a pre-copy iteration Migrate.PreCopyMinProgressPerc : Minimum allowed transmit to dirty page ratio per pre-copy iteration Migrate.PreCopyUseTransmitDirtyRatio : Use the transmit to dirty ratio to determine pre-copy forward progress Migrate.PreCopyPagesPerSend : Maximum number of pages to send per precopy transmit Migrate.VMotionStreamHelpers : Number of helpers to allocate for VMotion streams Migrate.VMotionStreamDisable : Pretend to not support streams Migrate.VMotionResolveSwapType : Attempt to resolve swap type during VMotion initialization 49 Migrate.CptCacheMaxSizeMB : Maximum checkpoint cache size in MB Migrate.DiskOpsEnabled : Enables VMotion disk-backed operation Migrate.DiskOpsStreamChunks : Stream Chunks to allocate on disk Migrate.DiskOpsChunkSize : Size of each stream chunk in bytes (will be rounded up to multiple of block size) Migrate.DiskOpsMaxRetries : Maximum number of times to retry a diskOp IO upon encountering a reservation conflict Migrate.PageInPivotFwd : Steps forward from pivot n pages before switching to backwards movement Migrate.PageInPivotBack : Steps backwards from pivot n pages before switching to forwards movement Migrate.PageInPivotEnabled : Enabled pagein remote fault pivot-based page transmission ordering Migrate.RemotePageFaultPages : Number of pages to request for each remote page fault Migrate.TcpTsoDeferTx : Use TCP tso defer optimization for transmit Migrate.LowBandwidthSysAlertThreshold : Threshold in KB/s for VMotion bandwidth below which a SysAlert is triggered Migrate.NetTimeout : Timeout for migration network operations Migrate.TSMaster : Pseudo-synchronize clocks for migration to/from this machine Migrate.DisableResumeDuringPageIn : Disable observation of resume during page-in flag, always completing page-in before VM resume Migrate.SndBufSize : TCP send buffer size for the source Migrate.RcvBufSize : TCP receive buffer size for the destination Migrate.TrafficPriority : PCP tag for migration traffic Migrate.BindToVmknic : Bind the vmotion socket to a specific vmknic Migrate.MonActionWaitSysAlertThresholdMS : Threshold in milliseconds for the monitor to process a pre-copy action after which a SysAlert is triggered Migrate.LowMemWaitSysAlertThresholdMS : Threshold in milliseconds for the dest host to leave the low-memory state above which a SysAlert is triggered Migrate.GetPageSysAlertThresholdMS : Threshold in milliseconds for the source host to prepare a page for transmission above which a SysAlert is triggered Migrate.DebugChecksumMismatch : Debug checksum mismatch. Migrate.PanicOnChecksumMismatch : 1 for world panic, 2 for vmkernel panic Migrate.RdpiTransitionTimeMs : Milliseconds to wait for page-in completion before resuming, if rdpi is enabled Migrate.NetResPoolsSched : Net resource pools scheduling should be requested on the vmotion vmknic portset Migrate.MigrateCpuMinPct1G : Desired shared CPU reservation (in %) for 1G VMotions Migrate.MigrateCpuMinPct10G : Desired shared CPU reservation (in %) for 10G VMotions Migrate.MigrateCpuSharesRegular : CPU shares for a regular VMotion Migrate.MigrateCpuSharesHighPriority : CPU shares for a high priority VMotion Migrate.Vmknic : vmknic for vmotion vmkernel VNIC Misc.LogToFile : Send vmkernel log messages to /var/log/vmkernel Misc.LogToSerial : Send vmkernel log messages to the serial port Misc.DebugLogToSerial : Send vmkernel LOG messages to the serial port Misc.enableTboot : Enable use of tboot (trusted-boot) to boot ESXi. (Non-functional for ESX) Misc.LogWldPrefix : Including running world on every log statement Misc.MinimalPanic : Don't attempt to coredump after PSODing Misc.BlueScreenTimeout : timeout in seconds, 0 is no timeout Misc.HeartbeatTimeout : Timeout in seconds, for sending NMI to the locked CPU Misc.HeartbeatInterval : Interval in msec to check CPU lockups Misc.HeartbeatPanicTimeout : Interval in seconds after which to panic if no heartbeats received Misc.HeartbeatAnyPcpuPanic : Should we panic on any cpu lockups? (default we panic only for COS) Misc.HeapPanicDestroyNonEmpty : Panic when a non-empty heap gets destroyed Misc.MCEMonitorInterval : Interval[1 - 0x7fffffff ms] to check Machine Check Errors Misc.DebugBuddyEnable : Enable buddy debugging, 0 to disable Misc.EnableHighDMA : Enable DMA above 4GB Misc.TimerMinHardPeriod : Minimum hard timer interrupt period in microseconds Misc.TimerMaxHardPeriod : Maximum hard timer interrupt period in microseconds Misc.TimerTolerance : Default timer lateness tolerance in microseconds Misc.SerialBaudRate : Baud rate Misc.WatchdogBacktrace : Backtrace on every nth watchdog Misc.BHTimeout : Timeout for bottom-half handlers in milliseconds Misc.BhTimeBound : Time bound on BH checking in us (microseconds). Misc.IntTimeout : Timeout for interrupt handlers in milliseconds 50 Misc.HordeEnabled : Enables horde mode Misc.ScreenSaverDelay : Delay in minutes before screensaver kicks in Misc.WorldletActivationUS : Number of microseconds a worldlet may execute prior to being asked to yield. Misc.WorldletActivationsLimit : Number of worldlet activations permissible in each interruption (0==unlimited). Misc.WorldletMigrateIdle : max number of worldlets pulled from remote queues when a PCPU becomes idle, 0 to disable Misc.WorldletLoadThreshold : Worldlet load/score level below which a placement is deemed desireable Misc.WorldletHaltSample : number of timer ticks between updates to PCPU/worldlet load level Misc.WorldletLocalityBonus : load score bonus for keeping a worldlet on it's last PCPU/LLC Misc.WorldletLoosePenalty : load penalty for leaving LOOSE affinity topology level Misc.WorldletIRQPenalty : constant load penalty for worldlets driven by interrupts Misc.WorldletHTSharing : Amount of CPU resources assumed to be shared by threads for worldlets. Misc.WorldletPlacementPolicy : 0= use super simple place-on-idle policy. 1 = use load-based placement, 2= greedy placement Misc.WorldletGreedySampleRun : number of runs between greedy samples, controls greedy sampling rate Misc.WorldletGreedySampleMCycles : million cycles between greedy samples, controls greedy sampling rate Misc.WorldletRemoteActivateOverhead : remote activate overhead, in cycles Misc.WorldletWorldOverheadLLC : overhead if worldlet is on the same cache as its affinity world, in cycles Misc.WorldletWorldOverheadRemote : overhead if worldlet is on different cache as its affinity world, in percentage Misc.WorldletPreemptOverhead : overhead if worldlet preempts a running no-idle world, in percentage Misc.WorldletMigOverheadLLC : intra-cache worldlet migration overhead, default = 4/1024=0.39% Misc.WorldletMigOverheadRemote : inter-cache worldlet migration overhead, default = 16/1024=1.56% Misc.GuestLibAllowHostInfo : Allow guest to read host-level metrics Misc.UserSocketUnixMaxBufferSize : Max buffer size for UW unix domain sockets (bytes) Misc.UserDuctDynBufferSize : Max buffer size for UW duct (bytes) Misc.NMILint1IntAction : Change how a hardware generated NMI should be handled(1=enter debugger, 2=panic 3=forward to Service Console) Misc.PkeiEnabled : Enable PKE loader interface Misc.PkeiStatsOnly : Do only stats keeping in mod and domain calls Misc.SIOControlLoglevel : Storage I/O Control Log Level Misc.LogPort : Name of serial port to use for logging (COM1, COM2, vmwire, fw) Misc.GDBPort : Name of serial port to use for GDB debugging (COM1, COM2, vmwire, fw) Misc.ProcVerbose : option unused Misc.PreferredHostName : Preferred Host name Misc.SIOControlOptions : Storage I/O Control Options Misc.HostAgentUpdateLevel : The update level of Host Agent. NFS.DiskFileLockUpdateFreq : Time (in seconds) between updates to a disk lock file [8-3600] NFS.LockUpdateTimeout : Time (in seconds) before we abort an outstanding lock update NFS.LockRenewMaxFailureNumber : Number of update failures before a disk file lock is declared stale NFS.HeartbeatFrequency : Time in seconds between heartbeats NFS.HeartbeatTimeout : Time in seconds before we abort an outstanding heartbeat NFS.HeartbeatDelta : Time in seconds since the last successful update before we send a heartbeat NFS.HeartbeatMaxFailures : Number of sequential failures before we mark a volume as down NFS.MaxVolumes : Maximum number of mounted NFS volumes. TCP/IP heap must be increased accordingly (Requires reboot) NFS.SendBufferSize : Default size of socket's send buffer in KB NFS.ReceiveBufferSize : Default Size of socket's receive buffer in KB NFS.VolumeRemountFrequency : Time in seconds before attempting to remount a volume NFS.SyncRetries : Number of retries before synchronous IO fails (10 seconds per retry) NFS.LogNfsStat3 : Log nfsstat3 code NFS.WorldletAffinity : Worldlet CPU affinity Net.MaxPortRxQueueLen : Max length of the rx queue for virtual ports whose clients support queueing Net.MaxNetifRxQueueLen : Max length of the rx queue for the physical NICs Net.MaxNetifTxQueueLen : Max length of the tx queue for the physical NICs Net.UplinkKillAsyncTimeout : Timeout (ms) waiting for async when world is killed. Net.UplinkAbortDisconnectTimeout : Timeout (ms) waiting for pending calls to finish when disconnecting. Net.UplinkTxQueuesDispEnabled : Port traffic dispatched on multiple tx queues enabled ? Net.GuestTxCopyBreak : transmits smaller than this will be copied rather than mapped 51 Net.VmxnetTxCopySize : vmxnet tx <= than this will be fully copied with no need for completion. Net.VmxnetCopyTxRunLimit : non-Win vmxnet2/3 tx will have at most so many fully copied tx's in a row (65536 and larger means never). Net.VmxnetWinCopyTxRunLimit : Win vmxnet2/3 tx will have at most so many fully copied tx's in a row (65536 and larger means never). Net.VmxnetWinUDPTxFullCopy : whether Windows vmxnet UDP tx is fullCopy. Net.VmxnetWinIntrHints : whether intr hints are used for Windows vmxnet. Net.UseProc : whether or not to populate /proc/vmware/net [0 = disabled, 1 = enabled] Net.UseLegacyProc : whether or not to populate legacy entries in /proc/vmware/net [0 = disabled, 1 = enabled] Net.NotifySwitch : Broadcasts an arp request on net handle enable [0 = disabled, 1 = enabled] Net.NetTxDontClusterSize : transmits smaller than this will not be subject to clustering/coalescing. Net.NetPktAllocTries : Number of tries for allocating pkt within the page. Net.CoalesceTxTimeout : set the coalesce timeout in micro-seconds Net.CoalesceDefaultOn : whether dynamic coalescing is on by default.[0 = disabled by default, 1 = enabled by default] Net.CoalesceLowTxRate : No tx coalescing calibration when the number of pkts tx per timeout is lower than this number. Net.CoalesceLowRxRate : No rx coalescing calibration when the number of pkts rx per timeout is lower than this number. Net.CoalesceHandlerPcpu : Pcpu that coalesce timeout handler runs on. Net.CoalesceTxAlwaysPoll : Whether always poll Tx at coalesce timeout handler. Net.CoalesceMatchedQs : Whether to use matched TxRxQ-pairs mode when applicable. Net.CoalesceMultiRxQCalib : When not in matched TxRxQ-pairs mode, whether to uses separate RxQ Calib. Net.CoalesceTxQDepthCap : Cap of Tx coalescing size. Net.CoalesceRxQDepthCap : Cap of Rx coalescing size. Net.vNicTxPollBound : max # normalPkts per poll. Net.vNicNumDeferredReset : max # normalPkts per poll. Net.vmxnetBHNetPoll : Whether to poll for Tx in BH NetPoll. Net.vmxnetThroughputWeight : How far to favor throughput in vmxnet behavior. Net.CoalesceNoVmmVmkTx : Whether to try disable all vmm->vmk tx transitions. Net.CoalesceFavorNoVmmVmkTx : Favor disabling all vmm->vmk tx transitions; boost its score by factor of this/64. Net.CoalesceMrqLt : Whether to set a RxQ's coalesce to zero based on per-RxQ Low Traffic. Net.CoalesceMrqTriggerReCalib : Whether to let individual RxQ's perf change trigger re-calib. Net.CoalesceMrqMetricRxOnly : Whether to force individual RxQ's perf metric to be rx pkt cnt only. Net.CoalesceMrqMetricAllowTxOnly : Whether to allow's individual RxQ's perf metric to be tx pkt cnt only; if not, it will be tx + rx, or rx only. Net.CoalesceMrqRatioMetric : Whether Tx perf score is attributed to RxQ according to rxPktCnt ratio. Net.CoalesceRxLtStopCalib : Whether Rx Low Traffic stops Rx calibration. Net.CoalesceMrqOverallStop : Whether to use overall performance to stop RxQ Calib . Net.CoalesceFlexMrq : Whether to dynamically switch on/off multiRxQCalib. Net.EtherswitchHashSize : number of ports on the switch x 2^N is the size of the hash table for looking up MACs Net.NoLocalCSum : if set, don't bother checksumming local tx/rx frames Net.configOption[CONFIG_NET_INPUT_FLUSH_MAX_ITER] : when input is serialized, this bounds the number of times a thread flushes the deferred list. Net.configOption[CONFIG_NET_INPUT_FLUSH_MAX_PKTS] : when input is serialized, this bounds the number of pkts a thread flushes from the deferred list. Net.configOption[CONFIG_NET_TRACK_TX_RACE] : if enabled(1), collect statistics on potential tx race between concurrent threads. Net.configOption[CONFIG_NET_PORT_DSTATS] : if enabled(1), collect detailed statistics on port. Net.PortDisableTimeout : max timeout delay to wait for ports to complete I/O before disabling. Net.TcpipHeapSize : Initial size of the tcpip module heap in megabytes. (REQUIRES REBOOT!) Net.TcpipHeapMax : Max megabytes the tcpip module heap can grow to. (REQUIRES REBOOT!) Net.TcpipRxDirectDispatchQuota : Max # of pkts dispatched into the tcpip stack in the Port_Output() context Net.TcpipRxDispatchQuota : Max # of pkts dispatched into the tcpip stack by an execution context Net.TcpipTxDispatchQuota : Max # of pkts dispatched from the tcpip stack by an execution context Net.TcpipRxVmknicWorldletAffinityType : Use exact affinity for tcpip input worldlet (Takes hold at port creation time) Net.MaxPageInQueueLen : maximum number of paging requests to queue for guest DMA. Net.MaxBeaconsAtOnce : maximum number of beacons to send in one beacon cycle. Net.MaxBeaconVlans : maximum number of VLANs to probe with beacons. Net.AdvertisementDuration : duration of RARP advertisements Net.TcpipNoBcopyRx : Avoid bcopy in tcp rx Net.TcpipCopySmallTx : Copy and tx complete small packets for tcp tx 52 Net.TcpipLRONoDelayAck : Delayed ack timer not armed for LRO Net.TcpipDefLROEnabled : LRO enabled for tcpip2 Net.TcpipDefLROStatsEnabled : LRO stats enabled for tcpip2 Net.TcpipDefLROMaxLength : LRO default max length for tcpip2 Net.LinkStatePollTimeout : Link State poll timer period in milliseconds. Net.E1000TxZeroCopy : Use tx zero copy for non-tso packets for e1000. Net.E1000TxTsoZeroCopy : Use tx zero copy for tso packets for e1000. Net.E1000IntrCoalesce : Whether to enable interrupt coalescing for e1000 vNIC. Net.MinEtherLen : Minimum size ethernet frame to transmit Net.MaxPktRxListQueue : Maximum packet we can queue in rxList Net.NetBHRxWorkBound : Maximum rx pkts processed in one NetBH invocation Net.NetBHRxInputBound : Maximum rx pkts sent up an uplink at one go Net.NetBHRxStormThreshold : Declare Rx Storm after this number of consecutive rx pkt drops during queuing in NetBH rxList. Net.ReversePathFwdCheck : Block the multicast/broadcast packets that come back from physical switches in a teamed environment Net.ReversePathFwdCheckPromisc : Block duplicate packet in a teamed environment when the virtual switch is set to Promiscuous mode. Net.MaxTxCompDelay : Maximum time in milliseconds transmit completions are delayed Net.Vmxnet2PinRxBuf : Pin RX buffers for vmxnet2 clients (windows guest only) Net.NetVmxnet3Worldlet : Whether to enable worldlet for vmxnet3. Net.NetVmxnet2Worldlet : Whether to enable worldlet for vmxnet2. Net.NetE1000Worldlet : Whether to enable worldlet for e1000. Net.Vmxnet3RSSHashCache : Whether to enable RSS hash cache for vmxnet3. Net.NetTxWorldlet : Worldlet for asynchronous Tx for net devices. 0 for no worldlet. 1 for 1WDT/NIC. 2 for 1WDT/VM Net.NetForceTxWorldlet : Force Tx Worldlet for Systems with less than 4 cores per LLC Net.NetTxCompletionWorldlet : Whether to enable tx completion in worldlet. Net.AllowPT : Whether to enable UPT/CDPT Net.VmxnetSwLROSL : Whether to use ShortLived for vmxnet SW LRO Net.Vmxnet3SwLRO : Whether to perform SW LRO on pkts going to a LPD capable vmxnet3 Net.Vmxnet3HwLRO : Whether to enable HW LRO on pkts going to a LPD capable vmxnet3 Net.Vmxnet2SwLRO : Whether to perform SW LRO on pkts going to a LPD capable vmxnet2 Net.Vmxnet2HwLRO : Whether to perform HW LRO on pkts going to a LPD capable vmxnet2 Net.VmxnetPromDisableLro : Whether to disable SW LRO when vNIC goes into promiscuous mode. Net.VmxnetLROThreshold : After this # packets, evaluate whether to continue SW LRO Net.VmxnetLROBackoffPeriod : After adaptive LRO decided not to do LRO, how many intervals to wait before trying again. Net.VmxnetLROUseRatioNumer : If SW LRO reduce pkt count to be smaller than ratio, continue to do LRO. Numerator of ratio. Net.VmxnetLROUseRatioDenom : If SW LRO reduce pkt count to be smaller than ratio, continue to do LRO. Denominator of ratio. Net.VmxnetLROMaxLength : LRO default max length for tcpip2 Net.TsoDumpPkt : detailed dump of every <n> pkts Net.MemcpyNT : Non temporal packet copy, 0:enable, 1:disable, 2:unspecified Net.IGMPVersion : IGMP Version (2 or 3) Net.IGMPQueries : Number of IGMP Queries to send during after VMotion/Teaming failover Net.NetRmDistMacFilter : Activate/Deactivate the MAC filter on distributed NetRM Net.NetRmDistSamplingRate : Sampling rate on distributed NetRM Net.GuestIPHack : Enable guest arp inspection IOChain to get IP Net.NetNetqRxQueueNoFeat : Overwrite the rx queues features advertised by uplinks Net.NetSchedLinkSpeedLow : Link speed considered low by the scheduler Net.NetSchedLinkSpeedHigh : Link speed considered high by the scheduler Net.NetSchedInFlightMaxPktsLow : Number of packets fed to the nic for nics with a low (< 500Mbps) linkspeed Net.NetSchedInFlightMaxBytesLow : Number of bytes fed to the nic for nics with a low (< 500Mbps) linkspeed Net.NetSchedInFlightMaxPktsHigh : Number of packets fed to the nic for nics with a high (10Gbps) linkspeed Net.NetSchedInFlightMaxBytesHigh : Number of bytes fed to the nic for nics with a high (10Gbps) linkspeed Net.NetSchedInFlightMaxPktsDefault : Number of packets fed to the nic for nics with a normal (1Gbps) linkspeed Net.NetSchedInFlightMaxBytesDefault : Number of bytes fed to the nic for nics with a normal (1Gbps) linkspeed Net.NetSchedInFlightMaxPktsInsane : Number of packets fed to the nic for nics that don't support tx completion coalescing Net.NetSchedInFlightMaxBytesInsane : Number of bytes fed to the nic for nics that don't support tx completion coalescing 53 Net.NetSchedCoalesceTxUsecs : Maximum number of microseconds the device can delay tx completions Net.NetSchedDefaultResPoolSharesPct : Percent share given to unclassified traffic Net.VmklnxLROEnabled : LRO enabled in vmklinux Net.VmklnxLROMaxAggr : LRO max aggr in vmklinux Net.UseHwIPv6Csum : When non-zero, use pNIC HW IPv6 csum offload if available Net.UseHwCsumForIPv6Csum : When non-zero, use pNIC HW_CSUM, if available, as IPv6 csum offload Net.UseHwTSO6 : When non-zero, use pNIC HW IPv6 TSO offload if available Net.UseHwTSO : When non-zero, use pNIC HW TSO offload if available Net.NcpLlcSap : beacon/color NCP messages created with this SAP (DSAP/SSAP) Net.FollowHardwareMac : If set to 1, the management interface MAC address will update whenever the hardware MAC address changes. Net.NetInStressTest : If set to 1, suppress certain logs to avoid log spew. Net.NetOverlayHostKey : hostkey for vmkernel overlay Net.LRODefThreshold : After this # packets, evaluate whether to continue SW LRO Net.LRODefBackoffPeriod : After adaptive LRO decided not to do LRO, how many intervals to wait before trying again. Net.LRODefUseRatioNumer : If SW LRO reduce pkt count to be smaller than ratio, continue to do LRO. Numerator of ratio. Net.LRODefUseRatioDenom : If SW LRO reduce pkt count to be smaller than ratio, continue to do LRO. Denominator of ratio. Net.LRODefMaxLength : LRO default max length Net.NetPagePoolResvPerGB : Number of pages to reserve for the packet page pool per gigabyte. Net.NetPagePoolResvCap : Maximum number of pages to reserve for the packet page pool. Net.NetPagePoolLimitPerGB : Maximum number of pages for the packet page pool per gigabyte. Net.NetPagePoolLimitCap : Maximum number of pages period for the packet page pool. Net.IGMPRouterIP : Router IP Address for IGMP (generally not necessary to set this) Net.DVFilterBindIpAddress : DVFilter internal communication endpoint Net.NetdumpVmkIP : VMkernel IP during network core dump Net.NetdumpVmkNic : VMkernel NIC to use for network core dump Net.NetdumpVmkPG : VMkernel port group to use for network core dump Net.NetdumpServerIP : IP address of remote network core dump server Net.NetdumpServerGateway : IP address of gateway to access remote network core dump server Net.IOControlPnicOptOut : List of comma separated pnics to opt out of network I/O control Numa.RebalancePeriod : frequency of NUMA node rebalancing, in milliseconds Numa.SwapInterval : frequency of NUMA node swap rebalancing, in units of NUMA rebalance period Numa.SwapConsiderPeriod : time between reconsidering a client for swap, in units of NUMA rebalance period Numa.SwapMigrateOnly : frequency of NUMA VM migration only considerations, in units of NUMA rebalance period, 0 to disable pure migrations Numa.MigImbalanceThreshold : minimum percent load imbalance between nodes to trigger migration Numa.MigThreshold : minimum percent load balance improvement to allow single migration/swap Numa.MigThrashThreshold : maximum post-migration load imbalance, as percentage of pre-migration imbalance, to prevent thrashing Numa.SwapLoadEnable : 1 to enable VM swaps across nodes to balance CPU load, 0 to disable Numa.SwapLocalityEnable : 1 to enable VM swaps across nodes to improve memory locality, 0 to disable Numa.RebalanceEnable : 1 to enable NUMA rebalancer, 0 to disable it Numa.RebalanceCoresTotal : minimum number of total host cores required to enable NUMA rebalancer Numa.RebalanceCoresNode : minimum number of cores per node required to enable NUMA rebalancer Numa.MonMigEnable : 1 to allow NUMASched monitor migrations, 0 to disallow Numa.AutoMemAffinity : 1 to set mem affinity automatically based on cpu affinity, 0 to disable Numa.PageMigEnable : 1 to permit NUMASched to manipulate page migration, 0 to disallow it Numa.PostMigUseActiveMetric : 1 to use alternative migActive metric for post-migration imbalance prediction, 0 to use default migEntitlement metric Numa.LTermFairnessInterval : duration of long term fairness interval in terms of NUMA rebalance period, 0 indicates that long term fairness is disabled Numa.LTermMigThreshold : imbalance in long term owed, in percentage, required to trigger migration for long term fairness Numa.MigPreventLTermThresh : long term owed for a VM, in percentage, above which NUMA migration and swaps are disabled for that VM Numa.AutoSplitVM : Split a VM automatically into multiple NUMA clients; 0 to disable. Numa.LocalityWeightMem : Benefit of improving memory locality by 1 pct. Numa.LocalityWeightActionAffinity : Benefit of improving action affinity by 1. Numa.PreferHT : Prefer using HyperThreads on the same NUMA node over full cores on multiple nodes; 0 to disable. Power.UsePStates : In Custom policy, use ACPI P-states to save power when processor is busy Power.UseCStates : In Custom policy, use ACPI C-states when processor is idle 54 Power.UseStallCtr : In Custom policy, use stall cycles performance counter Power.MaxCpuLoad : In Custom policy, CPU utilization threshold below which CPU frequency can be dynamically adjusted Power.TimerHz : In Custom policy, Dynamic power management timer sampling rate Power.CStateMaxLatency : In Custom policy, avoid a C-state whose latency is larger than this value (us) Power.CStateResidencyCoef : In Custom policy, avoid a C-state whose latency * CStateResidencyCoef > predicted residence time Power.CStatePredictionCoef : In Custom policy, predict non-timer wakeup with error probability p, where CStatePredictionCoef = -ln(1 - p) * (1 << 20) Power.PerfBias : In Custom policy, Performance Energy Bias Hint (Intel-only) Power.PerfBiasEnable : Use Performance Energy Bias Hint Power.ChargeVMs : Keep track of energy consumed by VMs (experimental) Power.ChargeMemoryPct : Percentage of idle power consumed by memory RdmFilter.HbaIsShared : Allow local disks to be RDM candidates for Virtual Machines ScratchConfig.ConfiguredScratchLocation : The directory configured to be used for scratch space. Changes will take effect on next reboot. ScratchConfig.ConfiguredSwapState : Whether userworld swap is configured to be enabled. Changes will take effect on next reboot. ScratchConfig.CurrentScratchLocation : The directory currently being used for scratch space. ScratchConfig.CurrentSwapState : Whether userworld swap is currently enabled. Scsi.PassthroughLocking : Disable locking for scsi passthrough devices Scsi.LogCmdErrors : Log SCSI Device command errors. Scsi.LogMPCmdErrors : Log SCSI Multi-path plugin command errors. Scsi.MaxReserveTime : Maximum time (in msecs) a system-initiated reservation is normally held (debug only) Scsi.MaxReserveTotalTime : Maximum time (in msecs) a system-initiated reservation normally takes from issue to release (debug only) Scsi.MaxReserveBacktrace : Log a backtrace if caller exceeds SCSI_MAX_RESERVE_TIME or SCSI_MAX_RESERVE_TOTALTIME (debug only) Scsi.ReserveBacktrace : Log a backtrace for all Reserve/Release pairs (debug only) Scsi.SCSITimeout_ScanTime : time (in ms) to sleep between checking for timed-out async IO Scsi.SCSITimeout_ReabortTime : delay (in ms) after an abort due to timeout before the abort is re-issued Scsi.ScanOnDriverLoad : Scan new SCSI buses on device driver load Scsi.TimeoutTMThreadMin : Min number of timeout task-mgmt handler threads Scsi.TimeoutTMThreadMax : Max number of timeout task-mgmt handler threads Scsi.TimeoutTMThreadExpires : Life in seconds of timeout task mgmt handler thread Scsi.TimeoutTMThreadRetry : Delay in milliseconds before retrying taskmgmt which failed or for which the IO did not complete Scsi.TimeoutTMThreadLatency : Delay in ms before waking up new task mgmt thread Scsi.ScsiRestartStalledQueueLatency : Delay in ms before restarting a stalled queue Scsi.CompareLUNNumber : Consider LUN number when determining LUN identity. Scsi.UseAdaptiveRetries : Use adaptive retries for transient errors. Scsi.ChangeQErrSetting : Change the QErr value of devices to 0x0. Scsi.CRTimeoutDuringBoot : Reservation conflict timeout during boot Syslog.Local.DatastorePath : Datastore path of file to which local syslogd data is written. E.g. [datastoreName] /logfiles/hostName.log Syslog.Remote.Hostname : Hostname to which syslog data will be forwarded. Disabled on null. Syslog.Remote.Port : Port to which syslog data will be forwarded. User.ReaddirRetries : Maximum number of retries when reading entries from directories User.CDROMSenseTimeout : Physical CDROM sense timeout (seconds) User.PTEDisableNX : Disables the use of NX bit in user pagetable entries UserVars.ProductLockerLocation : Path to VMware Tools and VI client repository UserVars.ActiveDirectoryPreferredDomainControllers : Preferred Domain Controllers for Active Directory UserVars.TSMTimeOut : Timeout for TSM shell and remote access, in seconds UserVars.CIMEnabled : Enable or Disable the CIM service UserVars.CIMemulexProviderEnabled : Enable or Disable the CIM emulex Provider UserVars.CIMlsiProviderEnabled : Enable or Disable the CIM lsi Provider UserVars.CIMqlogicProviderEnabled : Enable or Disable the CIM qlogic Provider UserVars.CIMvmw_hdrProviderEnabled : Enable or Disable the CIM vmw_hdr Provider UserVars.CIMvmw_kmoduleProviderEnabled : Enable or Disable the CIM vmw_kmodule Provider UserVars.CIMvmw_lsiProviderEnabled : Enable or Disable the CIM vmw_lsi Provider UserVars.CIMvmw_swmgtProviderEnabled : Enable or Disable the CIM vmw_swmgt Provider VMFS3.OpenWithoutJournal : Open file system when out of space for journal allocation, allowing reads and no meta-data updates VMFS3.MaxHeapSizeMB : Maximum size (in MB) to which the VMFS heap is allowed to grow 55 VMFS3.HardwareAcceleratedLocking : Enable hardware accelerated VMFS locking (requires compliant hardware) VMkernel.Boot.ACPI : Initialize ACPI CA. VMkernel.Boot.NUMACodeRepEnabled : Enable NUMA code replication VMkernel.Boot.acpiDbgLevel : ACPI debug level VMkernel.Boot.allowInterleavedNUMAnodes : Allow NUMA nodes to be interleaved. VMkernel.Boot.assumeCommonBusClock : Assume all NUMA nodes run off a common, synchronous bus clock (normally autodetected). VMkernel.Boot.assumePerNodeBusClock : Assume each NUMA node has a separate bus clock (normally autodetected). VMkernel.Boot.buddyPhysicalMemoryDebugStruct : Buddy physical mem debug info switch. VMkernel.Boot.busSpeedMayVary : Allow different bus clock speeds, even within a single NUMA node or SMP system. VMkernel.Boot.busSpeedMayVaryPerNode : Allow substantially different bus clock speeds in different NUMA nodes. VMkernel.Boot.checkCPUIDLimit : Refuse to run on CPUID limited cpus. VMkernel.Boot.checkDMAR : Sanity check DMAR entries VMkernel.Boot.clockMultiplierMayVary : Allow different CPU clock multipliers, even within a single NUMA node or SMP system. VMkernel.Boot.clockMultiplierMayVaryPerNode : Allow different CPU clock multipliers in different NUMA nodes. VMkernel.Boot.com1_baud : Baud rate for COM1. VMkernel.Boot.com1_irq : COM1 IRQ (default 4) VMkernel.Boot.com1_port : COM1 I/O address (0 -> disabled, default 0x3f8) VMkernel.Boot.com2_baud : Baud rate for COM2. VMkernel.Boot.com2_irq : COM2 IRQ (default 3) VMkernel.Boot.com2_port : COM2 I/O address (0 -> disabled, default 0x2f8) VMkernel.Boot.coresPerPkg : Number of cores per package that vmkernel should use VMkernel.Boot.correctBSPMTRRMasks : Correct BSP Variable MTRR masks to match the processor physical address bit support VMkernel.Boot.custom : Enable custom extensions. VMkernel.Boot.debugBreak : Break into debugger during vmkernel initialization. VMkernel.Boot.debugLogToSerial : 0=Serial debug logging off, 1=Serial debug logging on, 2=Defer to config option DebugLogToSerial. VMkernel.Boot.disableC1E : Disable C1E VMkernel.Boot.disableCFOH : Disable Cache Flush on Halt VMkernel.Boot.disableTurbo : Disable Turbo Mode VMkernel.Boot.dumpDiag : Dump diagnostics information. VMkernel.Boot.enablePCIErrors : Enable PCI-E Error Reporting VMkernel.Boot.executePOST : Run POST tests. VMkernel.Boot.fakeNUMAnodes : Fake # NUMA nodes on UMA systems. VMkernel.Boot.fastHzEstimate : Use ACPI PM timer for frequency estimation at boot. VMkernel.Boot.forceCRS : Always use IRQ from _CRS VMkernel.Boot.fsCheck : Run filesystem checks on system partitions. VMkernel.Boot.gdbPort : gdb port; com1, com2, vmwire or firewire to enable VMkernel.Boot.generalCriticalMemory : Pages to reserve as general critical memory VMkernel.Boot.hyperthreading : Enable hyperthreading if available. VMkernel.Boot.interleaveFakeNUMAnodes : Fake nodes will be created as interleaved nodes. VMkernel.Boot.iovDisableIR : Disable Interrrupt Routing in the IOMMU VMkernel.Boot.ipmiEnabled : Enable IPMI VMkernel.Boot.logOnScreen : Display vmkernel log on screen. VMkernel.Boot.logPort : log port; com1, com2, vmwire or firewire to enable VMkernel.Boot.logicalApicId : Use logical not physical APIC IDs. VMkernel.Boot.maxPCPUS : Number of PCPUs vmkernel should use. VMkernel.Boot.maxRegisteredVMs : Max number of VMs which can be registered on a host. 0 == determine at runtime VMkernel.Boot.maxVCPUs : Number of VCPUs VMKernel should support. 0 == determine at runtime VMkernel.Boot.maxWorlds : Max number of worlds VMKernel should support. 0 == determine at runtime VMkernel.Boot.mcaClearBanksOnMCE : Always clear MCA Banks, even for uncorrected exceptions VMkernel.Boot.mcaEnableAllErrorSources : Enable all error sources in MCA control registers VMkernel.Boot.mcaEnableScrubber : Enable hw scrubbing of DRAM and caches VMkernel.Boot.mcaFindDIMMFromAddr : Find DIMM from Addr in MCA banks VMkernel.Boot.measureNUMALatency : enable/disable NUMA latency testing VMkernel.Boot.memCheckEveryWord : Check every single word when checking mem. 56 VMkernel.Boot.memLowReservedMB : Amount of low memory (< 4 GB) which gets reserved. 0 == determine at runtime VMkernel.Boot.memmapMaxPhysicalMemMB : Highest MPN used. E.g. if set to 2048 MB and the system has 2 GB or more memory the highest MPN used is 0x7ffff. This option might trigger PSODs on NUMA systems. VMkernel.Boot.memmapStressHighBitMPNs : Test > 64GB physical RAM support by ignoring 4GB - 64GB range VMkernel.Boot.netDVSSyncEnabled : Enable/Disable DVSSync support. VMkernel.Boot.netESX2LegacyMode : ESX2 Legacy networking config compatability. VMkernel.Boot.netMaxPCPUPktCacheSize : Maximum number of pkt buffers queued in each PCPU slab cache. VMkernel.Boot.netNetqueueEnabled : Enable/Disable NetQueue support. VMkernel.Boot.netNumGPBuffers : Number of general purpose buffers to allocate up front. VMkernel.Boot.netNumPortsets : Maximum number of portsets. VMkernel.Boot.netPanicBadDevOpen : panic if device has a bad open handler. VMkernel.Boot.netPktBufUseSlab : Whether to allocate PktBufDescriptor from the pkt slab allocator. VMkernel.Boot.netPktHeapHighMemMaxSize : Maximum size in MB of the high-memory pkt buffer heap (advisory only). VMkernel.Boot.netPktHeapHighMemMinSize : Minimum size in MB of the high-memory pkt buffer heap (advisory only). VMkernel.Boot.netPktHeapMaxSize : Maximum size in MB of the pkt buffer heap (advisory only). VMkernel.Boot.netPktHeapMinSize : Minimum size in MB of the pkt buffer heap (advisory only). VMkernel.Boot.netPktHeapUseHighMem : Whether to allocate high memory packet heap. VMkernel.Boot.netPktNumSlabSizes : Number of different slab sizes for the allocator. VMkernel.Boot.nmiAction : 0=Undefined behavior on hardware NMI, 1=Enter debugger on hardware NMI 2=Panic on hardware NMI, 3=Pass NMI to Service Console. VMkernel.Boot.noIOMMU : Disable IOMMU support forcibly VMkernel.Boot.oem : Enable OEM extensions. VMkernel.Boot.overrideDuplicateImageDetection : Override duplicate ESXi image detection VMkernel.Boot.pageSharing : Enable page sharing. VMkernel.Boot.powerManagement : Enable CPU power management at boot VMkernel.Boot.realNMI : Use real NMI for LINT1. VMkernel.Boot.serialUntrusted : Disable serial port if UART misbehaves. VMkernel.Boot.sharePerNode : Share each page once per NUMA node. VMkernel.Boot.storageHeapMaxSize : Maximum size in bytes of the main storage heap VMkernel.Boot.storageHeapMinSize : Minimum size in bytes of the main storage heap VMkernel.Boot.storageMaxDevices : Maximum number of supported SCSI devices VMkernel.Boot.storageMaxPaths : Maximum number of supported SCSI paths VMkernel.Boot.storageMaxVMsPerDevice : Maximum number of VMs expected to use a given device VMkernel.Boot.timerEnableACPI : Enable ACPI PM timer as system reference timer. VMkernel.Boot.timerEnableHPET : Enable HPET as system reference timer. VMkernel.Boot.timerEnableMPMC : Enable Cyclone MPMC timer as system reference timer. VMkernel.Boot.timerEnableTSC : Enable TSC as system reference timer. VMkernel.Boot.timerForceTSC : Always use TSC as system reference timer. VMkernel.Boot.tty1Port : TTY1 port; com1, com2 ... to enable VMkernel.Boot.tty2Port : TTY2 port; com1, com2 ... to enable VMkernel.Boot.updateBusIRQ : Allow adding/removing busIRQ information VMkernel.Boot.usbBoot : Require USB boot if bootFS. VMkernel.Boot.useMemNodes : enable/disable memory nodes VMkernel.Boot.useNHCC : Use non-halted core cycles instead of TSC for accounting in CPU scheduler VMkernel.Boot.useNUMAInfo : enable/disable NUMA-ness VMkernel.Boot.uwSwap : Enable Userworld Swap. VMkernel.Boot.vmkKeyboard : Enable vmkernel keyboard driver. VMkernel.Boot.vmkLoadEntry : Static kernel entry point (offset) VMkernel.Boot.vmkLoadSeed : Random seed for kernel entry point VMkernel.Boot.vmkTerminals : Enable switching to vmkernel terminals. VMkernel.Boot.vmkacEnable : 0=Disabled, 1=Enforcing, 2=Do not enforce, just warn VProbes.DaemonStrongBind : Use the SO_BINDTODEVICE flag within VProbes daemon in the COS environment VProbes.DaemonEnable : Enable the VProbes daemon to bind to the relevant interface and listen for clients. VProbes.DaemonInterface : Bind interface for VProbes daemon 57 --quiet -q Perform any of the other options but suppress output to stdout. --set -s Set the value of a specific configuration item given its identifying path and the value to set. This may fail silently, if the value given is constrained by other options or VMkernel settings. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-advcfg.pl --config 201 --set wilkommen /Annotations/WelcomeMessage Value of Annotations.WelcomeMessage is wilkommen --set-kernel -k <value> <kernelOption> Set a VMkernel boot parameter. 58 --set-message -m Set DCUI welcome message (valid for vSphere 4.0 and later). C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-advcfg.pl --config 201 --set-message DCUImessage Value of Annotations.WelcomeMessage is DCUImessage 59 vicfg-module --get-options -g Get the option string configured to be passed to the module when it is loaded. --list -l List the set of modules on the host (valid for vSphere 4.0 and later). C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-module.pl --config 201 --list Name ID vmkernel 0 procfs Loaded Yes 1 Yes vmkapiv1_0_0_0_vmkernel_shim2 vmklinux 3 random 4 usb Yes 5 Yes ehci-hcd 6 Yes usb-uhci 7 Yes hid 8 Yes dm 9 Yes nmp 10 Yes vmw_satp_local 11 vmw_satp_default_aa vmw_psp_lib Yes 12 13 vmw_psp_fixed Yes 15 vmw_psp_mru Yes Yes 14 vmw_psp_rr Yes 16 vmw_psp_fixed_ap Yes 17 Yes vmw_satp_alua 18 Yes vmw_satp_cx 19 Yes libata 20 usb-storage vfat Yes 21 22 Yes Yes mask_path_plugin vaai_filter 23 24 vmw_vaaip_emc Yes Yes 25 Yes vmkapiv1_0_0_0_nmp_shim 26 vtddmar vmci iscsi_trans hub netsched Yes Yes 27 28 29 30 31 Yes Yes Yes Yes Yes e1000 32 Yes iscsi_linux 33 Yes ata_piix 34 Yes mptspi 35 Yes lvmdriver 36 Yes deltadisk 37 Yes multiextent 38 Yes dvsdev 39 Yes Yes 60 etherswitch shaper 40 41 Yes Yes cdp 42 tcpip3 43 Yes Yes dvfilter 44 Yes vmkapiv1_0_0_0_dvfilter_shim45 vmkibft 46 iscsi_vmk Yes 47 Yes vmfs3 48 Yes nfsclient 49 Yes vmkstatelogger migrate cbt 50 51 52 Yes Yes Yes Yes --query -q Query enabled modules options (valid for vSphere 4.0 and later). --set-options -s Set the option string to be passed to the module when it is loaded. 61 vicfg-user --addgroup -g "The list of groups (comma seperated) to add the target user to." --adduser -u "The list of the users (comma seperated) to be added to the target group." --entity (required) -e "Entity to perform the operation in (user | group)." --group -d "Group name of the group." --groupid -D "Group id of the group." --login -l "Login id of the user." --newpassword -p "The password for the target user." --newuserid -i "The UUID (optional) for the target user." --newusername -n "The user name (optional) for the target user." 62 --operation (required) -o "Operation to perform (add | modify | delete | list)." C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity group – operation add --group TestGroup --role read-only Created group TestGroup successfully. Assigned the role read-only C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity user – operation add --addgroup TestGroup --login testuser --newpassword testpassword Created user testuser successfully. Assigned to the group TestGroup C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity user – operation modify --newusername "Test User" --login testuser --newpassword modifiedpassword -removegroup TestGroup Updated user testuser successfully. Unassigned from the group TestGroup 63 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity user – operation delete --login testuser Removed the user testuser successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity group – operation delete --group testGroup Error: Specified groupName does not exist. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity group – operation delete --group TestGroup Deleted TestGroup successfully. 64 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity group -operation list Group Information: Principal -: root Full Name -: GID -: 0 Users in group root: Principal -: root Full Name -: Administrator -----------------Group Information: Principal -: tty Full Name -: GID -: 5 -----------------Group Information: Principal -: nobody Full Name -: GID -: 99 -----------------Group Information: Principal -: nfsnobody Full Name -: GID -: 65534 -----------------Group Information: Principal -: users Full Name -: GID -: 100 Users in group users: Principal -: vpxuser Full Name -: VMware VirtualCenter administration account Principal -: vi-admin00 Full Name -: ESXID=52b121fa-2fa8-e112-c204-181ca7fcc3c2;VIMAID=564D8F39-287F-321B-B987-DCE1F4632B85; Principal -: vi-user00 Full Name -: ESXID=52b121fa-2fa8-e112-c204-181ca7fcc3c2;VIMAID=564D8F39-287F-321B-B987-DCE1F4632B85; -----------------Group Information: Principal -: vimuser Full Name -: GID -: 20 -----------------Group Information: Principal -: daemon Full Name -: GID -: 2 ------------------ 65 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity user – operation list USERS ----------------Principal -: root Full Name -: Administrator UID -: 0 Shell Access -:1 ----------------Principal -: nobody Full Name -: Nobody UID -: 99 Shell Access -:0 ----------------Principal -: nfsnobody Full Name -: Anonymous NFS User UID -: 65534 Shell Access -:0 ----------------Principal -: dcui Full Name -: DCUI User UID -: 100 Shell Access -:0 ----------------Principal -: daemon Full Name -: daemon UID -: 2 Shell Access -:0 ----------------Principal -: vimuser Full Name -: vimuser UID -: 12 Shell Access -:0 ----------------Principal -: vpxuser Full Name -: VMware VirtualCenter administration account UID -: 500 Shell Access -:0 ----------------Principal -: vi-admin00 Full Name -: ESXID=52b121fa-2fa8-e112-c204-181ca7fcc3c2;VIMAID=564D8F39-287F-321B-B987-DCE1F4632B85; UID -: 501 Shell Access -:0 ----------------Principal -: vi-user00 Full Name -: ESXID=52b121fa-2fa8-e112-c204-181ca7fcc3c2;VIMAID=564D8F39-287F-321B-B987-DCE1F4632B85; UID -: 502 Shell Access -:0 ----------------- --promptpassword -P "Required to guide script to prompt for password change." 66 --removegroup -G "The list of groups (comma seperated) to remove the target user from." --removeuser -U "The list of the users (comma seperated) to be removed from the target group." --role -r "The role for the target user / group (admin | read-only | no-access)." --shell -s "Grant shell access to the target user or not (yes | no)." C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-user.pl --config 201 --entity user – operation modify --login testuser --shell yes Error: Shell access is not allowed in ESXi. 67 vicfg-volume --list -l List all volumes which have been detected as snapshots/replicas. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33 Scan operation succeeded. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --refresh C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --list VMFS3 UUID/label: 4c64bd4c-e9d5d11c-1bb0-000c29829b75/ds-1 Can mount: No (the original volume is still online) Can resignature: Yes Extent name: t10.F405E46494C45400D4C6569603E4D24603A753D286074556:1 range: 0 - 1791 (MB) Both original and snaphot are exposed as targets, but none of them is mounted: C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33 Scan operation succeeded. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --list VMFS3 UUID/label: 4c64bd4c-e9d5d11c-1bb0-000c29829b75/ds-1 Can mount: No (duplicate extents found) Can resignature: No (duplicate extents found) Extent name: t10.F405E46494C45400B68497C48633D296475365D295F4C413:1 range: 0 - 1791 (MB) Extent name: t10.F405E46494C45400D4C6569603E4D24603A753D286074556:1 range: 0 - 1791 (MB) --persistent-mount -M Mount a snapshot/replica volume persistently, if its original copy is not online. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33 Scan operation succeeded. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --list VMFS3 UUID/label: 4c64bd4c-e9d5d11c-1bb0-000c29829b75/ds-1 Can mount: Yes Can resignature: Yes Extent name: t10.F405E46494C45400D4C6569603E4D24603A753D286074556:1 range: 0 - 1791 (MB) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --persistent-mount ds-1 Persistently mounting volume ds-1 --refresh -R Refresh the storage system. 68 --resignature -r Resignature a snapshot/replica volume. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33 Scan operation succeeded. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --list VMFS3 UUID/label: 4c64bd4c-e9d5d11c-1bb0-000c29829b75/ds-1 Can mount: No (the original volume is still online) Can resignature: Yes Extent name: t10.F405E46494C45400D4C6569603E4D24603A753D286074556:1 range: 0 - 1791 (MB) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --resignature ds-1 Resignaturing volume ds-1 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --list C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --listds Content Listing --------------FUNB ISO NFS datastore1 ds-1 snap-18b22e14-ds-1 --umount -u Umount a snapshot/replica volume. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --umount ds-1 Umounting volume /vmfs/volumes/ds-1 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-volume.pl --config 201 --list VMFS3 UUID/label: 4c64bd4c-e9d5d11c-1bb0-000c29829b75/ds-1 Can mount: Yes Can resignature: Yes Extent name: t10.F405E46494C45400D4C6569603E4D24603A753D286074556:1 range: 0 - 1791 (MB) 69 vifs --copy -c Copy a file or a directory to another location. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --copy "[DSOF] thin2.vmdk" "[DSOF] test1_dir/thin.vmdk" Copied file from [DSOF] thin2.vmdk to [DSOF] test1_dir/thin.vmdk successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir "[DSOF] test1_dir" Content Listing --------------thin.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --copy "[DSOF] test1_dir" "[DSOF] test1_dir2" Copied file from [DSOF] test1_dir to [DSOF] test1_dir2 successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk rdm-rdm.vmdk rdm.vmdk rdmpassthru-rdmp.vmdk rdmpassthru.vmdk test1_dir/ test1_dir2/ thin2-flat.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir "[DSOF] test1_dir2" Content Listing --------------thin.vmdk --dc -Z The datacenter context. Not required in single-host operations 70 --dir -D List the contents of a datastore or host directory C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir "[DSOF] test1_dir" Content Listing --------------thin.vmdk --force -f Allows overwriting of destination file for a copy or move. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --copy "[DSOF] thin2.vmdk" "[DSOF] test1_dir/thin.vmdk" Unable to copy [DSOF] thin2.vmdk to [DSOF] test1_dir/thin.vmdk: Cannot complete the operation because the file or folder /vmfs/volumes/4c649579-7e4532dc-8014-000c29829b75/test1_dir/thin.vmdk already exists C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --copy "[DSOF] thin2.vmdk" "[DSOF] test1_dir/thin.vmdk" --force Copied file from [DSOF] thin2.vmdk to [DSOF] test1_dir/thin.vmdk successfully. --get -g Downloads a file on the host to a local path C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --get "[DSOF] thin2.vmdk" "C:\thin.vmdk" Downloaded file to C:\thin.vmdk successfully. --listdc -C List the paths to all datacenters available in the server C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --listdc ha-datacenter (datacenter on standalone host…) --listds -S List datastores available C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --listds Content Listing --------------FUNB ISO NFS datastore1 71 DSOF is visible in vSphere Client and PowerCLI, its content can be listed, but does not show up above… not working with datasores on multiple extents…? C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk rdm-rdm.vmdk rdm.vmdk [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-Datastore Name ---- FreeSpaceMB ----------- DSOF CapacityMB ---------- 1022 1280 NFS 64109 238471 ISO 64109 238471 FUNB 3539 3840 datastore1 3784 4096 --mkdir -M Creates a directory. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --mkdir "[DSOF] test1_dir" Created directory '[DSOF] test1_dir' successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk rdm-rdm.vmdk rdm.vmdk rdmpassthru-rdmp.vmdk rdmpassthru.vmdk test1_dir/ thin2-flat.vmdk thin2.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk 72 --move -m Move a file or a directory to another location. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --move "[DSOF] thin2.vmdk" "[DSOF] test1_dir/thinmoved.vmdk" Moved file from [DSOF] thin2.vmdk to [DSOF] test1_dir/thinmoved.vmdk successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir "[DSOF] test1_dir" Content Listing --------------thin.vmdk thinmoved.vmdk --put -p Uploads a local file to the directory on the host C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --put "C:\thin.vmdk" "[DSOF] thin2.vmdk" Uploaded file C:\thin.vmdk to thin2.vmdk successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --put "C:\thin.vmdk" "[DSOF] thin2.vmdk" Uploaded file C:\thin.vmdk to thin2.vmdk successfully. (no overwrite warning…) --rm -r Deletes a file or a directory. (no warning – see below) --rmdir -R Deletes a directory. Fails if directory is not empty C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --rmdir "[DSOF] test1_dir2" Remove directory '[DSOF] test1_dir2'? (y/n) : y Error: Cannot delete '[DSOF] test1_dir2' since it is not empty. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --rmdir "[DSOF] test1_dir2" -force Error: Cannot delete '[DSOF] test1_dir2' since it is not empty. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --rm "[DSOF] test1_dir2" Remove 'test1_dir2'? (y/n) : y Deleted file '[DSOF] test1_dir2' successfully. 73 vmkfstools --adapterType -a The adapter type of a disk to be created. Accepts buslogic, lsilogic or ide. --blocksize -b The block size of the VMFS file system to create. When omitted, the creation defaults to using 1MB for the blocksize. --clonevirtualdisk -i Create a copy of a virtual disk or raw disk. The copy will be in the specified disk format. Takes source disk as argument. C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --clonevirtualdisk /vmfs/volumes/DSOF/zeroedthick.vmdk /vmfs/volumes/DSOF/thin2.vmdk --diskformat thin C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk thin2-flat.vmdk thin2.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk 74 --createfs -C Creates a VMFS file system, requires -S, and optionally –b A partition must exist… and be created at console… login as: root root@192.168.9.201's password: You have activated Tech Support Mode. The time and date of this activation have been sent to the system logs. VMware offers supported, powerful system administration tools. Please see www.vmware.com/go/sysadmintools for details. Tech Support Mode may be disabled by an administrative user. Please consult the ESXi Configuration Guide for additional important information. ~ # fdisk -l Disk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633: 1006 MB, 1006632960 bytes 64 heads, 32 sectors/track, 960 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633 doesn't contain a valid partition table Disk /dev/disks/eui.51942814b35657a6: 4194 MB, 4194304000 bytes 255 heads, 63 sectors/track, 509 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End /dev/disks/eui.51942814b35657a6p1 1 Blocks Id System 509 4088478+ fb VMFS Disk /dev/disks/mpx.vmhba1:C0:T0:L0: 9663 MB, 9663676416 bytes 64 heads, 32 sectors/track, 9216 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start /dev/disks/mpx.vmhba1:C0:T0:L0p1 End Blocks Id System 5 900 917504 5 Extended /dev/disks/mpx.vmhba1:C0:T0:L0p2 901 4995 4193280 6 FAT16 /dev/disks/mpx.vmhba1:C0:T0:L0p3 4996 9216 4322304 fb VMFS /dev/disks/mpx.vmhba1:C0:T0:L0p4 * 1 /dev/disks/mpx.vmhba1:C0:T0:L0p5 5 4 4080 4 FAT16 <32M /dev/disks/mpx.vmhba1:C0:T0:L0p6 255 504 255984 6 FAT16 /dev/disks/mpx.vmhba1:C0:T0:L0p7 505 614 112624 fc VMKcore /dev/disks/mpx.vmhba1:C0:T0:L0p8 615 900 292848 6 FAT16 254 255984 6 FAT16 Partition table entries are not in disk order ~ # fdisk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633 Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that the previous content 75 won't be recoverable. Warning: invalid flag 0x00,0x00 of partition table 4 will be corrected by w(rite) Command (m for help): m Command Action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): p Disk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633: 1006 MB, 1006632960 bytes 64 heads, 32 sectors/track, 960 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-960, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-960, default 960): Using default value 960 Command (m for help): p Disk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633: 1006 MB, 1006632960 bytes 64 heads, 32 sectors/track, 960 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633p1 Command (m for help): w 1 960 983024 83 Linux 76 The partition table has been altered! Calling ioctl() to re-read partition table ~ # fdisk -l Disk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633: 1006 MB, 1006632960 bytes 64 heads, 32 sectors/track, 960 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633p1 1 960 983024 83 Linux Disk /dev/disks/eui.51942814b35657a6: 4194 MB, 4194304000 bytes 255 heads, 63 sectors/track, 509 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End /dev/disks/eui.51942814b35657a6p1 1 Blocks Id System 509 4088478+ fb VMFS Disk /dev/disks/mpx.vmhba1:C0:T0:L0: 9663 MB, 9663676416 bytes 64 heads, 32 sectors/track, 9216 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start /dev/disks/mpx.vmhba1:C0:T0:L0p1 End Blocks Id System 5 900 917504 5 Extended /dev/disks/mpx.vmhba1:C0:T0:L0p2 901 4995 4193280 6 FAT16 /dev/disks/mpx.vmhba1:C0:T0:L0p3 4996 9216 4322304 fb VMFS /dev/disks/mpx.vmhba1:C0:T0:L0p4 * 1 /dev/disks/mpx.vmhba1:C0:T0:L0p5 5 4 4080 4 FAT16 <32M /dev/disks/mpx.vmhba1:C0:T0:L0p6 255 504 255984 6 FAT16 /dev/disks/mpx.vmhba1:C0:T0:L0p7 505 614 112624 fc VMKcore /dev/disks/mpx.vmhba1:C0:T0:L0p8 615 900 292848 6 FAT16 254 255984 6 FAT16 Partition table entries are not in disk order C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --createfs vmfs3 -blocksize 1M --setfsname DSOF t10.F405E46494C45400237333F67754D273154746D28793C633:1 Creating vmfs3 file system on t10.F405E46494C45400237333F67754D273154746D28793C633:1 with blockSize 1048576 and volume label DSOF Unable to create vmfs: An error occurred during host configuration. ~ # vmkfstools --createfs vmfs3 --setfsname OF --blocksize 1m t10.F405E46494C45400237333F67754D273154746D28793C633 Device path name "t10.F405E46494C45400237333F67754D273154746D28793C633" is not a valid absolute or relative path Failed to resolve device name path t10.F405E46494C45400237333F67754D273154746D28793C633 Usage: vmkfstools -C vmfs3 /vmfs/devices/disks/vml... or, vmkfstools -C vmfs3 /vmfs/devices/disks/naa... or, vmkfstools -C vmfs3 /vmfs/devices/disks/mpx.vmhbaA:T:L:P Error: No such file or directory ~ # vmkfstools --createfs vmfs3 --setfsname OF --blocksize 1m /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633 77 Checking if remote hosts are using this device as a valid file system. This may take a few seconds... Creating vmfs3 file system on "t10.F405E46494C45400237333F67754D273154746D28793C633" with blockSize 1048576 and volume label "OF". /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633: Permission denied. (Have you set the partition type to 0xfb?) Error: Permission denied ~ # fdisk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633 Command (m for help): m Command Action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): p Disk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633: 1006 MB, 1006632960 bytes 64 heads, 32 sectors/track, 960 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633p1 1 960 983024 83 Linux Command (m for help): t Selected partition 1 Hex code (type L to list codes): fb Changed system type of partition 1 to fb (VMFS) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --createfs vmfs3 -blocksize 1M --setfsname DSOF t10.F405E46494C45400237333F67754D273154746D28793C633:1 Creating vmfs3 file system on t10.F405E46494C45400237333F67754D273154746D28793C633:1 with blockSize 1048576 and volume label DSOF Successfully created new volume:4c649579-7e4532dc-8014-000c29829b75 78 --createrdm -r Creates raw disk mapping, takes the disk device path. Map a raw disk to a file on a VMFS file system. Once the mapping is established, it can be used to access the raw disk like a normal VMFS virtual disk. The 'file length' of the mapping is the same as the size of the raw disk that it points to. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --createrdm /vmfs/devices/disks/t10.F405E46494C4540076B476F484A7D2E6760786D2A797A447/vmfs/volumes /DSOF/rdm.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk rdm-rdm.vmdk rdm.vmdk thin2-flat.vmdk thin2.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk --createrdmpassthru -z Creates passthrough raw disk mapping, takes the disk device path. Once the mapping is established, it can be used to access the raw disk like a normal VMFS virtual disk. The 'file length' of the mapping is the same as the size of the raw disk that it points to. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --createrdmpassthru /vmfs/devices/disks/t10.F405E46494C4540076B476F484A7D2E6760786D2A797A447 /vmfs/volumes/DSOF/rdmpassthru.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk rdm-rdm.vmdk rdm.vmdk rdmpassthru-rdmp.vmdk rdmpassthru.vmdk thin2-flat.vmdk thin2.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk 79 --createvirtualdisk -c Creates a virtual disk takes size argument (of the form #gGmMkK). It can be used with -a|-adapterType, -d|--diskformat. If -a is not specified, 'busLogic' will be used. If -d is not specified, 'zeroedthick' will be used. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --createvirtualdisk 100M --diskformat thin /vmfs/volumes/DSOF/thin.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --createvirtualdisk 100M --diskformat zeroedthick /vmfs/volumes/DSOF/zeroedthick.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --createvirtualdisk 100M --diskformat eagerzeroedthick /vmfs/volumes/DSOF/eagerzeroedthick.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk thin-flat.vmdk thin.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk --deletevirtualdisk -U Delete files associated with the specified virtual disk. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --deletevirtualdisk /vmfs/volumes/DSOF/inflated.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk --diskformat -d Specify the target disk format. Applies to -c, -i, -X. Accepts zeroedthick|eagerzeroedthick|thin for -c. Accepts zeroedthick|eagerzeroedthick|thin|rdm:dev|rdmp:dev|2gbsparse for -i. Accepts eagerzeroedthick for -X. 80 --extendvirtualdisk -X Takes size argument (of the form #gGmMkK). Extend the specified VMFS virtual disk to the specified length. This command is useful for extending the size of a virtual disk allocated to a virtual machine after the virtual machine has been created. However, this command requires that the guest operating system has some capability for recognizing the new size of the virtual disk and taking advantage of this new size (e.g. by updating the file system on the virtual disk to take advantage of the extra space). Since ESX 4.0 and ESXi 4.0, --diskformat can be used to specify grow the disk in eagerzeroedthick format. If the diskformat is not specified, the extended disk region of a zeroedthick disk will be zeroedthick; the extended disk region of a eagerzeroedthick disk will be eagerzeroedthick; a thin-provisioned disk will be extended as a thin-provisioned disk. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --extendvirtualdisk 200M /vmfs/volumes/DSOF/inflated.vmdk 81 --geometry -g Get the geometry information (cylinders, heads, sectors) of a virtual disk. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --geometry /vmfs/volumes/DSOF/rdm.vmdk Geometry information C/H/S is 256/64/32 --inflatedisk -j Convert a `thin` virtual disk to `eagerzeroedthick` with the additional guarantee that any data on `thin` disk is preserved and any blocks that were not allocated get allocated and zeroed out. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --inflatedisk /vmfs/volumes/DSOF/thin.vmdk Process start 0% |---------------------------------------------------------------------------------------------------| 100% ################################################################################################ #### End process 82 --queryfs -P Prints information about a vmfs file system. Displays VMFS version number, the partitions constituting the vmfs file system, the capacity and availabe space. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --queryfs /vmfs/volumes/DSOF VMFS-3.46 file system spanning 1 partitions. Capacity : 805306368, 744488960 avail File system label : DSOF UUID : 4c649579-7e4532dc-8014-000c29829b75 path : /vmfs/volumes/4c649579-7e4532dc-8014-000c29829b75 Partitions spanned: t10.F405E46494C45400237333F67754D273154746D28793C633:1 --queryrdm -q List the attributes of a raw disk mapping. When used with a 'rdm:' or 'raw:' specification, it prints out the vmhba name of the raw disk corresponding to the mapping referenced by the _device_. It also prints out identification information for the raw disk (if any). This option is currently not yet supported. 83 --renamevirtualdisk -E Rename files associated with a specified virtual disk to the specified name. Takes source disk as argument. C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --renamevirtualdisk /vmfs/volumes/DSOF/thin.vmdk /vmfs/volumes/DSOF/inflated.vmdk C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [DSOF] Content Listing --------------eagerzeroedthick-flat.vmdk eagerzeroedthick.vmdk inflated-flat.vmdk inflated.vmdk zeroedthick-flat.vmdk zeroedthick.vmdk --setfsname -S The name of the VMFS file system to create. --spanfs -Z Extends this partition onto the head partition. ~ # fdisk -l Disk /dev/disks/t10.F405E46494C454008357D4274743D26545D414D296530324: 771 MB, 771751936 bytes 64 heads, 32 sectors/track, 736 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/disks/t10.F405E46494C454008357D4274743D26545D414D296530324p1 1 736 753648 fb VMFS Disk /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633: 1006 MB, 1006632960 bytes 64 heads, 32 sectors/track, 960 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/disks/t10.F405E46494C45400237333F67754D273154746D28793C633p1 Disk /dev/disks/eui.51942814b35657a6: 4194 MB, 4194304000 bytes 255 heads, 63 sectors/track, 509 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start /dev/disks/eui.51942814b35657a6p1 End 1 Blocks Id System 509 4088478+ fb VMFS Disk /dev/disks/mpx.vmhba1:C0:T0:L0: 9663 MB, 9663676416 bytes 64 heads, 32 sectors/track, 9216 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System 1 960 983024 fb VMFS 84 /dev/disks/mpx.vmhba1:C0:T0:L0p1 5 900 917504 5 Extended /dev/disks/mpx.vmhba1:C0:T0:L0p2 901 4995 4193280 6 FAT16 /dev/disks/mpx.vmhba1:C0:T0:L0p3 4996 9216 4322304 fb VMFS /dev/disks/mpx.vmhba1:C0:T0:L0p4 * 1 /dev/disks/mpx.vmhba1:C0:T0:L0p5 5 4 4080 4 FAT16 <32M /dev/disks/mpx.vmhba1:C0:T0:L0p6 255 504 255984 6 FAT16 /dev/disks/mpx.vmhba1:C0:T0:L0p7 505 614 112624 fc VMKcore /dev/disks/mpx.vmhba1:C0:T0:L0p8 615 900 292848 6 FAT16 254 255984 6 FAT16 Partition table entries are not in disk order C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --queryfs /vmfs/volumes/DSOF VMFS-3.46 file system spanning 1 partitions. Capacity : 805306368, 534773760 avail File system label : DSOF UUID : 4c649579-7e4532dc-8014-000c29829b75 path : /vmfs/volumes/4c649579-7e4532dc-8014-000c29829b75 Partitions spanned: t10.F405E46494C45400237333F67754D273154746D28793C633:1 C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --spanfs /vmfs/devices/disks/t10.F405E46494C454008357D4274743D26545D414D296530324:1 /vmfs/devices/disks/t10.F405E46494C45400237333F67754D273154746D28793C633:1 C:\Program Files\VMware\VMware vSphere CLI\bin>vmkfstools.pl --config 201 --queryfs /vmfs/volumes/DSOF VMFS-3.46 file system spanning 2 partitions. Capacity : 1342177280, 1071644672 avail File system label : DSOF UUID : 4c649579-7e4532dc-8014-000c29829b75 path : /vmfs/volumes/4c649579-7e4532dc-8014-000c29829b75 Partitions spanned: t10.F405E46494C45400237333F67754D273154746D28793C633:1 t10.F405E46494C454008357D4274743D26545D414D296530324:1 --writezeros -w Initialize the virtual disk with zeros. Any existing data on virtual disk is lost. 85 vicfg-iscsi --adapter -H List iSCSI adapter(s). C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --adapter --list vmhba33 iSCSI Software Adapter --add -a Add operation. Used with --discovery or --static option. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --discovery --list vmhba33 =========Discovery Properties for Adapter vmhba33========= iSnsDiscoverySettable iSnsDiscoveryEnabled :0 :0 staticDiscoverySettable :0 staticDiscoveryEnabled :1 sendTargetsDiscoverySettable : 0 sendTargetsDiscoveryEnabled : 1 slpDiscoverySettable :0 slpDiscoveryEnable :0 No discovery addresses found. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --static --list vmhba33 No static target found. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --discovery --add --ip 192.168.9.21 vmhba33 Adding discovery address 192.168.9.21:3260 ... A rescan of the host is recommended for this configuration change. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --discovery --list vmhba33 =========Discovery Properties for Adapter vmhba33========= iSnsDiscoverySettable :0 iSnsDiscoveryEnabled :0 staticDiscoverySettable :0 staticDiscoveryEnabled :1 sendTargetsDiscoverySettable : 0 sendTargetsDiscoveryEnabled : 1 slpDiscoverySettable :0 slpDiscoveryEnable :0 DISCOVERY ADDRESS STATIC DISCOVERY TARGET : 192.168.9.21:3260 86 NAME : fujinb ADDRESS : 192.168.9.21:3260 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --static --list vmhba33 STATIC DISCOVERY TARGET NAME : fujinb ADDRESS : 192.168.9.21:3260 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33 Scan operation succeeded. --alias -k iSCSI initiator alias name. Used with --iscsiname option. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --iscsiname --list vmhba33 iSCSI Node Name : iqn.1998-01.com.vmware:esxi-21-30358a96 iSCSI Node Alias : C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --iscsiname iqn.199801.com.vmware:esxi-21-30358a96 --alias qwerty Adapter iqn.1998-01.com.vmware:esxi-21-30358a96 is not an iSCSI adapter. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --iscsiname vmhba33 -alias qwerty C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --iscsiname --list vmhba33 iSCSI Node Name : iqn.1998-01.com.vmware:esxi-21-30358a96 iSCSI Node Alias : qwerty --auth_password -w Authentication password. Used with --authentication option. --auth_username -u Authentication username. Used with --authentication option. 87 --authentication -A Authentication properties and configuration. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --authentication --list vmhba33 ---------------Inititator Authentication -----------Supported Authentication Methods for Adapter vmhba33: IMA_AUTHMETHOD_NONE IMA_AUTHMETHOD_CHAP ---------------Mutual Authentication -----------Supported Authentication Methods for Adapter vmhba33: IMA_AUTHMETHOD_NONE IMA_AUTHMETHOD_CHAP C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --target --list vmhba33 ----------------------------------------NAME ALIAS : fujinb : DISCOVERY METHOD FLAGS :0 SEND TARGETS DISCOVERY SETTABLE : 0 Portal 0 : 192.168.9.21:3260 ----------------------------------------C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --authentication –level chapRequired --method CHAP --auth_username user --auth_password password --ip 192.168.9.232 vmhba33 No specified target found. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --discovery --add --ip 192.168.9.232 vmhba33 Adding discovery address 192.168.9.232:3260 ... A rescan of the host is recommended for this configuration change. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33 Scan operation succeeded. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --target --list vmhba33 ----------------------------------------NAME ALIAS : fujinb : DISCOVERY METHOD FLAGS :0 SEND TARGETS DISCOVERY SETTABLE : 0 Portal 0 : 192.168.9.21:3260 ----------------------------------------- 88 ----------------------------------------NAME ALIAS : iqn.2006-01.com.openfiler:tsn.1e4d0f10c32a : DISCOVERY METHOD FLAGS :0 SEND TARGETS DISCOVERY SETTABLE : 0 Portal 0 : 192.168.9.232:3260 ----------------------------------------- CHAP is required on the target, and not set yet on the host. But, the command above shows the target… vSphere Client does not. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --authentication –level chapRequired --method CHAP --auth_username user --auth_password password --ip 192.168.9.232 vmhba33 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33 Scan operation succeeded. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --target --list vmhba33 ----------------------------------------NAME ALIAS : fujinb : DISCOVERY METHOD FLAGS :0 SEND TARGETS DISCOVERY SETTABLE : 0 Portal 0 : 192.168.9.21:3260 --------------------------------------------------------------------------------NAME ALIAS : iqn.2006-01.com.openfiler:tsn.1e4d0f10c32a : DISCOVERY METHOD FLAGS :0 SEND TARGETS DISCOVERY SETTABLE : 0 Portal 0 : 192.168.9.232:3260 ----------------------------------------- 89 Now, the target is visible in vSphere Client. --detail -f Details of iSCSI parameters. Used with --parameter option. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --parameter --list -detail vmhba33 iSCSI Parameters Setting: - ErrorRecoveryLevel Current :0 DefaultValue :0 Max :2 Min :0 Settable : NO Summary : iSCSI option : Error Recovery Level -------------------------------------------------- LoginRetryMax Current :4 DefaultValue :4 Max : 64 Min :0 Settable : NO Summary : iSCSI option : Maximum Retries On Initial Login -------------------------------------------------- MaxOutstandingR2T Current :1 DefaultValue :4 Max :8 Min :1 Settable Summary : YES : iSCSI option : Maximum Outstanding R2T -------------------------------------------------- 90 - FirstBurstLength Current : 262144 DefaultValue : 262144 Max : 16777215 Min : 512 Settable : YES Summary : iSCSI option : First Burst Length -------------------------------------------------- MaxBurstLength Current : 262144 DefaultValue : 262144 Max : 16777215 Min : 512 Settable : YES Summary : iSCSI option : Max Burst Length -------------------------------------------------- MaxRecvDataSegLen Current : 131072 DefaultValue : 131072 Max : 16777215 Min : 512 Settable : YES Summary : iSCSI option : Maximum Receive Data Segment Length -------------------------------------------------- MaxCommands Current : 128 DefaultValue : 128 Max : 2048 Min :2 Settable : NO Summary : iSCSI option : Maximum Commands -------------------------------------------------- DefaultTimeToWait Current :2 DefaultValue :2 Max : 60 Min :0 Settable : NO Summary : iSCSI option : Default Time To Wait -------------------------------------------------- DefaultTimeToRetain Current :0 DefaultValue :0 Max : 60 Min :0 Settable : NO Summary : iSCSI option : Default Time To Retain -------------------------------------------------- LoginTimeout Current : 15 DefaultValue :5 Max : 60 Min :0 Settable : NO 91 Summary : iSCSI option : Login Timeout -------------------------------------------------- LogoutTimeout Current : 15 DefaultValue : 15 Max : 60 Min :0 Settable : NO Summary : iSCSI option : Logout Timeout -------------------------------------------------- RecoveryTimeout Current : 10 DefaultValue : 10 Max : 120 Min :1 Settable : YES Summary : iSCSI option : Session Recovery Timeout -------------------------------------------------- NoopTimeout Current : 10 DefaultValue : 10 Max : 30 Min : 10 Settable : YES Summary : iSCSI option : No-Op Timeout -------------------------------------------------- NoopInterval Current : 15 DefaultValue : 15 Max : 60 Min :1 Settable Summary : YES : iSCSI option : No-Op Interval -------------------------------------------------- InitR2T Current : OFF DefaultValue : OFF Supported : TRUE Settable Summary : NO : iSCSI option : Init R2T -------------------------------------------------- ImmediateData Current : ON DefaultValue : ON Supported : TRUE Settable Summary : NO : iSCSI option : Immediate Data -------------------------------------------------- DelayedAck Current :1 DefaultValue :1 Supported : TRUE Settable Summary : YES : iSCSI option : Delayed Ack 92 -------------------------------------------------- dataDigestSettable :1 - headerDigestSettable :1 - targetDataDigestSettable :1 - targetHeaderDigestSettable - dataDigestType :1 : digestProhibited - headerDigestType : digestProhibited --disable -q Disable operation. Used with --swiscsi option. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --swiscsi --disable Disabling software iSCSI for next boot... --discovery -D Discovery addresses properties and configuration. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --discovery --list vmhba33 =========Discovery Properties for Adapter vmhba33========= iSnsDiscoverySettable iSnsDiscoveryEnabled :0 :0 staticDiscoverySettable :0 staticDiscoveryEnabled :1 sendTargetsDiscoverySettable : 0 sendTargetsDiscoveryEnabled : 1 slpDiscoverySettable :0 slpDiscoveryEnable :0 DISCOVERY ADDRESS : 192.168.9.11:3260 DISCOVERY ADDRESS : 192.168.9.21:3260 STATIC DISCOVERY TARGET NAME : iqn.2003-06.com.rocketdivision.starwind.w-nana.imagefile0 ADDRESS : 192.168.9.11:3260 STATIC DISCOVERY TARGET NAME : fujinb --enable -e Enable operation. Used with --swiscsi option. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --swiscsi --enable Enabling software iSCSI... --gateway -g Default gateway. Used with --network option. 93 --ip -i Specify IP address or DNS recognized domain name. Used with --discovery, --static, -authentication, --network, or --parameter option. --iscsiname -I List or configure iSCSI initiator name or alias. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --iscsiname --list vmhba33 iSCSI Node Name : iqn.1998-01.com.vmware:esxi-21-30358a96 iSCSI Node Alias : --level -c Authentication level. Used with --authentication option. chapProhibited no CHAP chapDiscouraged no CHAP, but CHAP ok chapPreferred CHAP, but no CHAP ok chapRequired CHAP --list -l List operation. Used with --discovery, --static, --target, --lun, --authentication, --phba, -network, --pnp, --iscsiname, --parameter, --swiscsi or --adapter options. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --swiscsi --list Software iSCSI is enabled. --lun -L List active LUNs information. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --lun --adapter vmhba33 --list Target: fujinb: ------------------------------------------OS DEVICE NAME : eui.51942814b35657a6 BUS NUMBER :1 TARGET ID LUN ID :1 :0 LUN SIZE : 4000 MB ------------------------------------------OS DEVICE NAME : eui.51942814b35657a6 BUS NUMBER TARGET ID :0 :1 94 LUN ID :0 LUN SIZE : 4000 MB ------------------------------------------- --method -m Authentication method, allows 'CHAP'. Used with --authentication option. --mtu -M MTU size. Used with --pnp option. --mutual -b If set, indicates mutual CHAP. Used with --authentication option. (Actually, it is just used to define credentials by which target will authenticate itself to the host, the rest is the same as when setting host credentials expected by the target) C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --authentication –level chapRequired --method CHAP --mutual --auth_username out --auth_password password2 –ip 192.168.9.232 vmhba33 95 --name -n Initiator or target iSCSI name. Used with --static, --authentication, --iscsiname, or --parameter option. --network -N Network properties and configuration. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --network vmhba33 Error: Unsupported feature for this adapter --parameter -W For iSCSI parameters operations. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --parameter --list vmhba33 iSCSI Parameters Setting: - ErrorRecoveryLevel - LoginRetryMax - MaxOutstandingR2T - FirstBurstLength :0 :4 :1 : 262144 96 - MaxBurstLength : 262144 - MaxRecvDataSegLen : 131072 - MaxCommands : 128 - DefaultTimeToWait :2 - DefaultTimeToRetain :0 - LoginTimeout : 15 - LogoutTimeout : 15 - RecoveryTimeout : 10 - NoopTimeout : 10 - NoopInterval : 15 - InitR2T : OFF - ImmediateData : ON - DelayedAck :1 - dataDigestType : digestProhibited - headerDigestType : digestProhibited --phba -P List Phba and node information. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --phba --list vmhba33 =========PHBA Properties for Adapter vmhba33========= VENDOR MODEL : VMware : iSCSI Software Adapter DESCRIPTION : VMware Software Initiator SERIAL NUMBER : =========Node Properties for Adapter vmhba33========= NODE NAME VALID :1 NODE NAME : iqn.1998-01.com.vmware:esxi-21-30358a96 NODE ALIAS VALID NODE ALIAS :1 : NODE NAME AND ALIAS SETTABLE: --pnp -p List Physical Network Portal properties. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --pnp vmhba33 Error: Unsupported feature for this adapter. --remove -r Remove operation. Used with --discovery or --static option. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --discovery --list vmhba33 =========Discovery Properties for Adapter vmhba33========= iSnsDiscoverySettable iSnsDiscoveryEnabled staticDiscoverySettable :0 :0 :0 97 staticDiscoveryEnabled :1 sendTargetsDiscoverySettable : 0 sendTargetsDiscoveryEnabled : 1 slpDiscoverySettable :0 slpDiscoveryEnable :0 DISCOVERY ADDRESS : 192.168.9.11:3260 DISCOVERY ADDRESS : 192.168.9.21:3260 STATIC DISCOVERY TARGET NAME : iqn.2003-06.com.rocketdivision.starwind.w-nana.imagefile0 ADDRESS : 192.168.9.11:3260 STATIC DISCOVERY TARGET NAME : fujinb ADDRESS : 192.168.9.21:3260 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --discovery --remove – ip 192.168.9.11 vmhba33 Removing discovery address 192.168.9.11:3260 ... A rescan of the host is recommended for this configuration change. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --discovery --list vmhba33 =========Discovery Properties for Adapter vmhba33========= iSnsDiscoverySettable iSnsDiscoveryEnabled :0 :0 staticDiscoverySettable :0 staticDiscoveryEnabled :1 sendTargetsDiscoverySettable : 0 sendTargetsDiscoveryEnabled : 1 slpDiscoverySettable :0 slpDiscoveryEnable :0 DISCOVERY ADDRESS : 192.168.9.21:3260 STATIC DISCOVERY TARGET NAME : fujinb ADDRESS : 192.168.9.21:3260 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --static --list vmhba33 STATIC DISCOVERY TARGET NAME : fujinb ADDRESS : 192.168.9.21:3260 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --static --remove --ip 192.168.9.21 vmhba33 Discovery target iscsi name is required. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --static --remove – name fujinb vmhba33 Discovery target address is required. 98 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --static --remove --ip 192.168.9.21 --name fujinb vmhba33 Removing static discovery target 192.168.9.21:3260, iqn = fujinb, ... C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --static --list vmhba33 No static target found. --reset -o Reset target level specified iSCSI parameter to be inherited from adapter level. Provide <name>. The <name> can be one of the parameter names listed in the --parameter --list option. Used with -parameter option. --reset_auth -z Reset target level authentication properties to be inherited from adapter level. Used with -authentication option. 99 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --authentication -reset_auth --method CHAP --ip 192.168.9.232 vmhba33 --set -j Set iSCSI parameter specified by <name> to the value specified by <value>. Provide <name>=<value> pair to this option. The <name> can be one of the parameter names listed in the -parameter --list option plus 'dataDigestType', or 'headerDigestType' when used with --parameter option. The <name> can be 'ARP' when used with --network option. --static -S Static discovery targets properties and configuration. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --static --list vmhba33 STATIC DISCOVERY TARGET NAME : iqn.2003-06.com.rocketdivision.starwind.w-nana.imagefile0 ADDRESS : 192.168.9.11:3260 STATIC DISCOVERY TARGET NAME : fujinb 100 ADDRESS : 192.168.9.21:3260 --subnetmask -s Subnet mask. Used with --network option. --swiscsi -E Software iSCSI enabling configuration or information. --target -T List all targets information. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --target --list vmhba33 ----------------------------------------NAME : iqn.2003-06.com.rocketdivision.starwind.w-nana.imagefile0 ALIAS : DISCOVERY METHOD FLAGS :0 SEND TARGETS DISCOVERY SETTABLE : 0 Portal 0 : 192.168.9.11:3260 --------------------------------------------------------------------------------NAME : fujinb ALIAS : DISCOVERY METHOD FLAGS :0 SEND TARGETS DISCOVERY SETTABLE : 0 Portal 0 : 192.168.9.21:3260 ----------------------------------------- --target_id -t Target ID. Used with --lun option. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --lun --list vmhba33 Target: fujinb: ------------------------------------------OS DEVICE NAME : eui.51942814b35657a6 BUS NUMBER :1 TARGET ID LUN ID :0 :0 LUN SIZE : 4000 MB ------------------------------------------OS DEVICE NAME : eui.51942814b35657a6 BUS NUMBER :0 TARGET ID LUN ID LUN SIZE :0 :0 : 4000 MB ------------------------------------------- 101 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-iscsi.pl --config 201 --lun --list --target_i d 0 vmhba33 Target: fujinb: ------------------------------------------OS DEVICE NAME : eui.51942814b35657a6 BUS NUMBER :1 TARGET ID LUN ID :0 :0 LUN SIZE : 4000 MB ------------------------------------------OS DEVICE NAME : eui.51942814b35657a6 BUS NUMBER :0 TARGET ID LUN ID LUN SIZE :0 :0 : 4000 MB ------------------------------------------- 102 vmware-cmd Server Operations vmw are-cmd –l C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 -l /vmfs/volumes/1c445c7d-fd56af7a/VM5/VM5.vmx /vmfs/volumes/1c445c7d-fd56af7a/ubuntuServer8.04-1/ubuntuServer8.04-1.vmx /vmfs/volumes/1c445c7d-fd56af7a/ubuntuServer8.04-2/ubuntuServer8.04-2.vmx v m w a r e - c m d - s r e g i s t e r <config_file_path> <datacenter> <resource pool> C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --listds Content Listing --------------ISO NFS datastore1 C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [NFS] Content Listing --------------VM5/ ubuntuServer8.04-1/ ubuntuServer8.04-2/ C:\Program Files\VMware\VMware vSphere CLI\bin>vifs.pl --config 201 --dir [NFS]VM5 Content Listing --------------VM5-cbe575b0.vmss VM5.nvram VM5.vmsd VM5.vmx VM5.vmxf vmware-1.log vmware-2.log vmware-3.log vmware-4.log vmware-5.log vmware.log C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 -s register "[NFS]VM5\VM5.vmx" register() =1 103 v m w a r e - c m d - s u n r e g i s t e r <config_file_path> C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 -s unregister /vmfs/volumes/1c445c7d-fd56af7a/VM5/VM5.vmx unregister() = 1 VM Operations vmw are-cmd <cfg> getstate C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS]VM5\VM5.vmx" getstate No virtual machine found. C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5\VM5.vmx" getstate No virtual machine found. C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" getstate getstate() = off C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS]VM5/VM5.vmx" getstate No virtual machine found. v m w a r e - c m d < c f g > s t a r t <powerop_mode> C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" start start() = 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" getstate getstate() = on v m w a r e - c m d < c f g > s t o p <powerop_mode> < p o w e r o p _ m o d e> soft shutdown guest, then power off VM < p o w e r o p _ m o d e> power off VM immediately hard 104 C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" stop soft Operation cannot be performed: SOAP Fault: ----------Fault string: Cannot complete operation because VMware Tools is not running in this virtual machine. Fault detail: ToolsUnavailableFault C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" stop hard stop() = 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" stop soft stop() = 1 v m w a r e - c m d < c f g > r e s e t <powerop_mode> C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" reset soft Operation cannot be performed: SOAP Fault: ----------Fault string: Cannot complete operation because VMware Tools is not running in this virtual machine. Fault detail: ToolsUnavailableFault C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" reset hard reset() = 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" stop hard stop() = 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" reset hard The attempted operation cannot be performed in the current state. 105 v m w a r e - c m d < c f g > s u s p e n d <powerop_mode> C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" suspend hard suspend() = 1 v m w a r e - c m d < c f g > s e t g u e s t i n f o <variable> <value> v m w a r e - c m d < c f g > g e t g u e s t i n f o <variable> C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" getguestinfo "ip" getguestinfo(ip) = 192.168.9.249 v m w a r e - c m d < c f g > g e t p r o d u c t i n f o <prodinfo> <prodinfo> product C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" getproductinfo product getproductinfo(product) = embeddedEsx < p r o d i n f o > p l a t f or m C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" getproductinfo platform getproductinfo(platform) = vmnix-x86 v m w a r e - c m d < c f g > c o n n e c t d e v i c e <device_name> v m w a r e - c m d < c f g > d i s c o n n e c t d e v i c e <device_name> vmw are-cmd <cfg> getconfigfile C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" getconfigfile getconfigfile() = /vmfs/volumes/1c445c7d-fd56af7a/ubuntuServer8.04-1/ubuntuServer8.04-1.vmx vmw are-cmd <cfg> getuptime C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" getuptime getuptime() = 1281 vmw are-cmd <cfg> answ er C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" answer No questions pending. 106 vmw are-cmd <cfg> gettoolslastactive C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" gettoolslastactive gettoolslastactive() = 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" gettoolslastactive gettoolslastactive() = 0 0 – not installed / not running 1- responding normally 5 – intermittent heartbeat 100 – no heartbeat vmw are-cmd <cfg> hass napshot C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] ubuntuServer8.04-1/ubuntuServer8.04-1.vmx" hassnapshot hassnapshot () = 0 C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" hassnapshot hassnapshot () = 1 107 v m w a r e - c m d < c f g > c r e a t e s n a p s h o t <name> <description> <quiesce> <memory> C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" createsnapshot 2 For creating a snapshot you must specify <name> <description> <quiesce - can be 0/1> <memory - can be 0/1>. C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" createsnapshot 2 "snap2" 1 1 createsnapshot (2 snap2 1 1) = 1 vmw are-cmd <cfg> revertsnapshot C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" revertsnapshot revertsnapshot () = 1 vmware-cmd <cfg> removesnapshots C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" removesnapshots removesnapshot () = 1 C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --config 201 "[NFS] VM5/VM5.vmx" hassnapshot hassnapshot () = 0 108 esxcli esxcli corestorage VMware core storage commands. esxcli corestorage claiming Operations pertaining to the pluggable storage direct path claiming system. These operations will allow a user to directly control the claiming and unclaiming process. These operations are considered temporary and any claiming operations that need to survive a reboot should use claimrules instead. es x c l i c o rest ora ge cl a iming a u t ocla im Control the automatic PSA (path/device) claiming code allowing the disabling of the automatic claiming process or re-enabling of the claiming process if it was previously disabled. By default the automatic PSA claiming process is on and should not be disabled by users unless specifically instructed to do so. - c | - - c l a i m r u l e - c l a s s =<str> Indicate the claim rule class to use in this operation. --enabled Set the autoclaiming enabled state for a givenPSA plugin type in the VMkernel. Default is to have this process enabled. This should not be changed by users unless specifically instructed to do so. (required) es x c l i c orest ora ge cl a iming recl a i m Attempt to unclaim all paths to a device and then run the loaded claimrules on each of the paths unclaimed to attempt to reclaim them. - d | - - d e v i c e =<str> Reclaim requires the name of a device on which all paths will be unclaimed and then reclaimed. (required) 109 es x c l i c orest ora ge cl a iming u ncl a im 1) Unclaim a path or set of paths, disassociating them from a PSA plugin. NOTES: It is normal for path claiming to fail especially when unclaiming by plugin or adapter. Only inactive paths with no I/O will be able to be unclaimed. Typically the ESXi USB partition and devices with VMFS volumes on them will not be unclaimable. Also NOTE unclaiming will not persist and periodic path claiming will reclaim these paths in the near future unless claim rules are configured to mask the path. 2) Detach a (set of) filter(s) from one or more devices. - A | - - a d a p t e r =<str> If the --type paramter is 'location' this value indicates the name of the host bus adapter for the paths you wish to unclaim. This parameter can be omitted to indicate unclaiming should be run on paths from all adapters. - C | - - c h a n n el =<long> If the --type parameter is 'location' this value indicates the value of the SCSI channel number for paths you wish to unclaim. This parameter can be omitted to indicate unclaiming should be run on paths with any channel number. - c | - - c l a i m r ul e - c l a s s =<str> Indicate the claim rule class to use in this operation. - d | - - d e v i c e =<str> If the --type parameter is 'device' attempt to unclaim all paths to a specific device (for multipathing plugins) or unclaim the device itself (for filter plugins). NOTE. For paths, if there are any active I/O operations on this device, at least 1 path will fail to unclaim. - D | - - d r i v e r =<str> If the --type parameter is 'driver' attempt to unclaim all paths provided by a specific HBA driver. - L | - -l u n =<long> If the --type paramter is 'location' this value indicates the value of the SCSI Logical Unit Number (LUN) for the paths you wish to unclaim. This parameter can be omitted to indicate unclaiming should be run on paths with any Logical Unit Number. - m | - - m o d el =<str> If the --type parameter is 'vendor' attempt to unclaim all paths to devices with specific model info (for multipathing plugins) or unclaim the device itself (for filter plugins). NOTE. For paths, if there are any active I/O operations on this device, at least 1 path will fail to unclaim. - p | - - p a t h =<str> If the --type parameter is 'path' attempt to unclaim a specific path given its path UID or runtime name. 110 - P | - - p l ug i n =<str> If the --type parameter is 'plugin' attempt to unclaim all paths on for a given multipath plugin OR all devices attached to a filter plugin. - T | - - t a r g e t =<long> If the --type paramter is 'location' this value indicates the value of the SCSI target number for the paths you wish to unclaim. This parameter can be omitted to indicate unclaiming should be run on paths with any target number. - t | - - t y p e =<str> Indicate the type of unclaim you wish to perform. Valid values for this paramter are [location, path, driver, device, plugin, vendor] (required) - v | - - v e n d o r =<str> If the --type parameter is 'vendor' attempt to unclaim all paths to devices with specific vendor info (for multipathing plugins) or unclaim the device itself (for filter plugins). NOTE. For paths, if there are any active I/O operations on this device, at least 1 path will fail to unclaim. esxcli corestorage claimrule Operations pertaining to the pluggable storage architecture claiming rule system. These operations operate on the rules used to determine the PSA plugin used to claim storage paths. es x c l i c o rest ora ge cl a imru l e a dd Add a claimrule to the set of claimrules on the system. - A | - - a d a p t e r =<str> Indicate the adapter of the paths to use in this operation. - u | - - a u to a s si g n The system will auto assign a rule id. - C | - - c h a n n el =<long> Indicate the channel of the paths to use in this operation. - c | - - c l a i m r ul e - c l a s s =<str> Indicate the claim rule class to use in this operation. - d | - - d e v i c e =<str> Indicate the Device Uid to use for this operation. - D | - - d r i v e r =<str> 111 Indicate the driver of the paths to use in this operation. -f|--force Force claim rules to ignore validity checks and install the rule anyway. - L | - -l u n =<long> Indicate the LUN of the paths to use in this operation. - M | - - m o d e l =<str> Indicate the model of the paths to use in this operation. - P | - - p l ug i n =<str> Indicate which PSA plugin to use for this operation. (required) - r | - - r u l e =<long> Indicate the rule ID to use for this operation. - T | - - t a r g e t =<long> Indicate the target of the paths to use in this operation. - R | - - t r a n s p o r t =<str> Indicate the transport of the paths to use in this operation. Valid Values are: [block, fc, iscsi, iscsivendor, ide, sas, sata, usb, parallel, unknown] - t | - - t y p e =<str> Indicate which type of matching used for claim/unclaim or claimrule. Valid values are: [vendor, location, driver, transport, device] (required) - V | - - v e n d o r =<str> Indicate the vendor of the paths to user in this operation. 112 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list --device eui.51942814b35657a6 iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000002,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C1:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Adapter: vmhba33 Channel: 1 Target: 1 LUN: 0 Adapter Identifier: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Identifier: 00023d000002,fujinb,t,1 Plugin: NMP State: active Transport: iscsi Adapter Transport Details: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Transport Details: IQN=fujinb Alias= Session=00023d000002 PortalTag=1 iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000001,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C0:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Adapter: vmhba33 Channel: 0 Target: 1 LUN: 0 Adapter Identifier: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Identifier: 00023d000001,fujinb,t,1 Plugin: NMP State: active Transport: iscsi Adapter Transport Details: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Transport Details: IQN=fujinb Alias= Session=00023d000001 PortalTag=1 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule list Rule Class Rule Class Type ---------- ---- ----- ---- Plugin Matches ------ ------- MP 0 runtime transport NMP transport=usb MP 1 runtime transport NMP transport=sata MP 2 runtime transport NMP transport=ide MP 3 runtime transport NMP transport=block MP 4 runtime transport NMP transport=unknown 113 MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport MP 65535 runtime vendor NMP vendor=* model=* C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule list Rule Class Rule Class Type ---------- ---- ----- ---- Plugin Matches ------ ------- MP 0 runtime transport NMP transport=usb MP 1 runtime transport NMP transport=sata MP 2 runtime transport NMP transport=ide MP 3 runtime transport NMP transport=block MP 4 runtime transport NMP transport=unknown MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport MP 180 file location MASK_PATH adapter=vmhba33 channel=1 target=1 lun=0 MP 65535 runtime vendor NMP vendor=* model=* C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule load C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule list Rule Class Rule Class Type ---------- ---- ----- ---- Plugin Matches ------ ------- MP 0 runtime transport NMP MP 1 runtime transport NMP transport=usb transport=sata MP 2 runtime transport NMP transport=ide MP 3 runtime transport NMP transport=block MP 4 runtime transport NMP transport=unknown MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport MP 180 runtime location MASK_PATH adapter=vmhba33 channel=1 target=1 lun=0 MP 180 file location MASK_PATH adapter=vmhba33 channel=1 target=1 lun=0 MP 65535 runtime vendor NMP vendor=* model=* C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claiming reclaim --device eui.51942814b35657a6 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list --device eui.51942814b35657a6 iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000001,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C0:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Adapter: vmhba33 Channel: 0 Target: 1 LUN: 0 Adapter Identifier: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Identifier: 00023d000001,fujinb,t,1 Plugin: NMP State: active Transport: iscsi 114 Adapter Transport Details: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Transport Details: IQN=fujinb Alias= Session=00023d000001 PortalTag=1 es x c l i c o rest ora ge cl a imru l e convert Convert ESX 3.x style /adv/Disk/MaskLUNs LUN masks to Claim Rule format. WARNING: This conversion will not work for all input MaskLUNs variations! Please inspect the list of generated claim rules carefuly, then if the suggested LUN mask claim rules are correct use the --commit parameter to write the list to the config file. es x c l i c o rest ora ge cl a imru l e d el et e Delete a claimrule to the set of claimrules on the system. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule delete --rule 180 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule list Rule Class Rule Class Type ---------- ---- ----- ---- Plugin Matches ------ ------- MP 0 runtime transport NMP transport=usb MP 1 runtime transport NMP transport=sata MP 2 runtime transport NMP transport=ide MP 3 runtime transport NMP transport=block MP 4 runtime transport NMP transport=unknown MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport MP 180 runtime location MASK_PATH adapter=vmhba33 channel=1 target=1 lun=0 MP 280 file location MASK_PATH adapter=vmhba33 channel=1 target=1 lun=0 MP 65535 runtime vendor NMP vendor=* model=* 115 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule delete --rule 280 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule list Rule Class Rule Class Type ---------- ---- ----- ---- Plugin Matches ------ ------- MP 0 runtime transport NMP transport=usb MP 1 runtime transport NMP transport=sata MP 2 runtime transport NMP transport=ide MP 3 runtime transport NMP transport=block MP 4 runtime transport NMP transport=unknown MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport MP 180 runtime location MASK_PATH adapter=vmhba33 channel=1 target=1 lun=0 MP 65535 runtime vendor NMP vendor=* model=* C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule load C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule list Rule Class Rule Class Type ---------- ---- ----- ---- Plugin Matches ------ ------- MP 0 runtime transport NMP transport=usb MP 1 runtime transport NMP transport=sata MP 2 runtime transport NMP transport=ide MP 3 runtime transport NMP transport=block MP 4 runtime transport NMP transport=unknown MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport MP 65535 runtime vendor NMP vendor=* model=* C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claiming reclaim --device eui.51942814b35657a6 C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-mpath.pl --config 201 --list --device eui.51942814b35657a6 iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000001,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C0:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Adapter: vmhba33 Channel: 0 Target: 1 LUN: 0 Adapter Identifier: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Identifier: 00023d000001,fujinb,t,1 Plugin: NMP State: active Transport: iscsi Adapter Transport Details: iqn.1998-01.com.vmware:esxi-21-30358a96 Target Transport Details: IQN=fujinb Alias= Session=00023d000001 PortalTag=1 116 After ESXi reboot…. es x c l i c o rest ora ge cl a imru l e l ist List all the claimrules on the system. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule list Rule Class Rule Class Type ---------- ---- ----- ---- Plugin Matches ------ ------- MP 0 runtime transport NMP MP 1 runtime transport NMP transport=usb transport=sata MP 2 runtime transport NMP transport=ide MP 3 runtime transport NMP transport=block MP 4 runtime transport NMP transport=unknown MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport MP 65535 runtime vendor NMP vendor=* model=* es x c l i c o rest ora ge cl a imru l e l oad Load path claiming rules from config file into the VMkernel. es x c l i c o rest ora ge cl a imru l e move Move a claimrule from one rule id to another C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule move --newrule 280 --rule 180 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage claimrule list Rule Class Rule Class Type ---------- ---- ----- ---- Plugin Matches ------ ------- MP 0 runtime transport NMP transport=usb MP 1 runtime transport NMP transport=sata MP 2 runtime transport NMP transport=ide MP 3 runtime transport NMP transport=block 117 MP 4 MP 101 runtime vendor MASK_PATH vendor=DELL model=Universal Xport runtime transport NMP transport=unknown MP 101 file vendor MASK_PATH vendor=DELL model=Universal Xport MP 180 runtime location MASK_PATH adapter=vmhba33 channel=1 target=1 lun=0 MP 280 file location MASK_PATH adapter=vmhba33 channel=1 target=1 lun=0 MP 65535 runtime vendor NMP vendor=* model=* es x c l i c o rest ora ge cl a imru l e ru n Execute path claiming rules. esxcli corestorage device Operations pertaining to the pluggable storage architectures' logical devices on the system. The operation currently allowed is to list the available devices on the system and the filters attached to each es x c l i c o rest ora ge d evice l ist For devices currently registered with the PSA, list the filters attached to them. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage device list mpx.vmhba1:C0:T0:L0 Display Name: Local VMware, Disk (mpx.vmhba1:C0:T0:L0) Size: 9216 Device Type: Direct-Access Multipath Plugin: NMP Devfs Path: /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0 Vendor: VMware, Model: VMware Virtual S Revision: 1.0 SCSI Level: 2 Is Pseudo: false Status: on Is RDM Capable: false Is Local: true Is Removable: false Attached Filters: [] VAAI Status: unknown Other UIDs: vml.0000000000766d686261313a303a30 mpx.vmhba32:C0:T0:L0 Display Name: Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0) Size: 0 Device Type: CD-ROM Multipath Plugin: NMP Devfs Path: /vmfs/devices/cdrom/mpx.vmhba32:C0:T0:L0 Vendor: NECVMWar Model: VMware IDE CDR10 Revision: 1.00 SCSI Level: 5 Is Pseudo: false Status: on Is RDM Capable: false 118 Is Local: true Is Removable: true Attached Filters: [] VAAI Status: unknown Other UIDs: vml.0005000000766d68626133323a303a30 eui.51942814b35657a6 Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Size: 4000 Device Type: Direct-Access Multipath Plugin: NMP Devfs Path: /vmfs/devices/disks/eui.51942814b35657a6 Vendor: ROCKET Model: IMAGEFILE Revision: 0001 SCSI Level: 4 Is Pseudo: false Status: on Is RDM Capable: true Is Local: false Is Removable: false Attached Filters: [] VAAI Status: unknown Other UIDs: vml.010000000035313934323831344233353635374136494d41474546 esxcli corestorage plugin Operations pertaining to the pluggable storage architectures' plugins. The operation currently allowed is to list the available plugins on the system and the type of those plugins es x c l i c o rest ora ge p l u gin l ist List loaded PSA plugins on the system. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 corestorage plugin list Plugin name Plugin class ----------- -----------VAAI_FILTER Filter MASK_PATH MP NMP MP esxcli network VMware networking commands. esxcli network claiming Operations pertaining to the pluggable storage direct path claiming system. These operations will allow a user to directly control the claiming and unclaiming process. These operations are considered temporary and any claiming operations that need to survive a reboot should use claimrules instead. esxcli network claimrule Operations pertaining to the pluggable storage architecture claiming rule system. These operations operate on the rules used to determine the PSA plugin used to claim storage paths. 119 esxcli network device Operations pertaining to the pluggable storage architectures' logical devices on the system. The operation currently allowed is to list the available devices on the system and the filters attached to each esxcli network plugin Operations pertaining to the pluggable storage architectures' plugins. The operation currently allowed is to list the available plugins on the system and the type of those plugins esxcli nmp VMware Native Multipath Plugin (NMP). This is the VMware default implementation of the Pluggable Storage Architecture. esxcli nmp boot Operations pertaining to the boot time configuration of the NMP plugin. es x c l i nmp boot rest ore Used to restore configuration state at boot time. esxcli nmp device Operations pertaining to the devices currently claimed by the VMware Native Multipath Plugin. es x c l i nmp d evice l ist List the devices currently controlled by the VMware NMP Multipath Plugin and show the SATP and PSP information associated with that device. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp device list mpx.vmhba1:C0:T0:L0 Device Display Name: Local VMware, Disk (mpx.vmhba1:C0:T0:L0) Storage Array Type: VMW_SATP_LOCAL Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration. Path Selection Policy: VMW_PSP_FIXED Path Selection Policy Device Config: {preferred=vmhba1:C0:T0:L0;current=vmhba1:C0:T0:L0} Working Paths: vmhba1:C0:T0:L0 mpx.vmhba32:C0:T0:L0 Device Display Name: Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0) Storage Array Type: VMW_SATP_LOCAL Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration. Path Selection Policy: VMW_PSP_FIXED Path Selection Policy Device Config: {preferred=vmhba32:C0:T0:L0;current=vmhba32:C0:T0:L0} Working Paths: vmhba32:C0:T0:L0 eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Storage Array Type: VMW_SATP_DEFAULT_AA Storage Array Type Device Config: SATP VMW_SATP_DEFAULT_AA does not support device configuration. Path Selection Policy: VMW_PSP_FIXED Path Selection Policy Device Config: {preferred=vmhba33:C1:T1:L0;current=vmhba33:C1:T1:L0} Working Paths: vmhba33:C1:T1:L0 120 nmp device list --device C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp device list --device eui.51942814b35657a6 eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Storage Array Type: VMW_SATP_DEFAULT_AA Storage Array Type Device Config: SATP VMW_SATP_DEFAULT_AA does not support device configuration. Path Selection Policy: VMW_PSP_FIXED Path Selection Policy Device Config: {preferred=vmhba33:C1:T1:L0;current=vmhba33:C1:T1:L0} Working Paths: vmhba33:C1:T1:L0 es x c l i nmp d evice set p ol icy Allow setting of the Path Selection Policy (PSP) for the given device to one of the loaded policies on the system. - E | - - d e f a ul t The Path selection policy is set back to the default for the assigned SATP for this device. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp device setpolicy --device eui.51942814b35657a6 --default true C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp device list --device eui.51942814b35657a6 eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Storage Array Type: VMW_SATP_DEFAULT_AA Storage Array Type Device Config: SATP VMW_SATP_DEFAULT_AA does not support device configuration. Path Selection Policy: VMW_PSP_FIXED Path Selection Policy Device Config: {preferred=vmhba33:C0:T1:L0;current=vmhba33:C0:T1:L0} Working Paths: vmhba33:C0:T1:L0 - d | - - d e v i c e = < s t r> The device you wish to set the Path Selection Policy for. (required) - P | - - p s p = < st r > The Path selection policy you wish to assign to the given device. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp device setpolicy -device eui.51942814b35657a6 --psp VMW_PSP_RR true 121 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp device list --device eui.5194 2814b35657a6 eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Storage Array Type: VMW_SATP_DEFAULT_AA Storage Array Type Device Config: SATP VMW_SATP_DEFAULT_AA does not support device configuration. Path Selection Policy: VMW_PSP_RR Path Selection Policy Device Config: {policy=rr,iops=1000,bytes=10485760,useANO=0;lastPathIndex=1: NumIOsPending=0,numBytesPending=0} Working Paths: vmhba33:C0:T1:L0, vmhba33:C1:T1:L0 esxcli nmp fixed Operations pertaining to the Fixed Path Selection Policy Plugin. es x c l i nmp f ix ed get p ref erred Allow retrieving of Fixed Path Selection Policy settings for a given device. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp fixed getpreferred -device eui.51942814b35657a6 vmhba33:C0:T1:L0 es x c l i nmp f ix ed set p ref erred Allow setting of the perferred path on a given device controlled by the Fixed Path Selection Policy. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp fixed setpreferred -device eui.51942814b35657a6 --path vmhba33:C1:T1:L0 true C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp fixed getpreferred -device eui.51942814b35657a6 vmhba33:C1:T1:L0 esxcli nmp path Operations pertaining to the paths currently claimed by the VMware Native Multipath Plugin. es x c l i nmp p a th l ist List the paths currently claimed by the VMware NMP Multipath Plugin and show the SATP and PSP information associated with that path. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp path list ide.vmhba32-ide.0:0-mpx.vmhba32:C0:T0:L0 Runtime Name: vmhba32:C0:T0:L0 Device: mpx.vmhba32:C0:T0:L0 Device Display Name: Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0) 122 Group State: active Array Priority: 0 Storage Array Type Path Config: SATP VMW_SATP_LOCAL does not support path configuration. Path Selection Policy Path Config: {current: yes; preferred: yes} iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000002,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C1:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Group State: active Array Priority: 0 Storage Array Type Path Config: SATP VMW_SATP_DEFAULT_AA does not support path configuration. Path Selection Policy Path Config: {current: yes; preferred: yes} iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000001,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C0:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Group State: active Array Priority: 0 Storage Array Type Path Config: SATP VMW_SATP_DEFAULT_AA does not support path configuration. Path Selection Policy Path Config: {current: no; preferred: no} pscsi.vmhba1-pscsi.0:0-mpx.vmhba1:C0:T0:L0 Runtime Name: vmhba1:C0:T0:L0 Device: mpx.vmhba1:C0:T0:L0 Device Display Name: Local VMware, Disk (mpx.vmhba1:C0:T0:L0) Group State: active Array Priority: 0 Storage Array Type Path Config: SATP VMW_SATP_LOCAL does not support path configuration. Path Selection Policy Path Config: {current: yes; preferred: yes} n m p p a t h l i s t – d ev i c e C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp path list --device eui.51942814b35657a6 iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000002,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C1:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Group State: active Array Priority: 0 Storage Array Type Path Config: SATP VMW_SATP_DEFAULT_AA does not support path configuration. Path Selection Policy Path Config: {current: yes; preferred: yes} iqn.1998-01.com.vmware:esxi-21-30358a96-00023d000001,fujinb,t,-1-eui.51942814b35657a6 Runtime Name: vmhba33:C0:T1:L0 Device: eui.51942814b35657a6 Device Display Name: ROCKET iSCSI Disk (eui.51942814b35657a6) Group State: active Array Priority: 0 Storage Array Type Path Config: SATP VMW_SATP_DEFAULT_AA does not support path configuration. Path Selection Policy Path Config: {current: no; preferred: no} 123 esxcli nmp psp Operations pertaining to the Path Selection Policy Plugins for the VMware Native Multipath Plugin. es x c l i nmp p sp getconf ig Allow retrieving of per path or per device PSP configuration parameters. e s x c l i n m p p s p g et c o n f i g – d e v i c e C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp psp getconfig --device eui.51942814b35657a6 {preferred=vmhba33:C1:T1:L0;current=vmhba33:C1:T1:L0} e s x c l i n m p p s p g et c o n f i g – p a t h C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp psp getconfig --path vmhba33:C1:T1:L0 {current: yes; preferred: yes} es x c l i nmp p sp l ist List the Path Selection Plugins (PSP) that are currently loaded into the NMP system and display information about those PSPs C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp psp list Name ---- Description ----------- VMW_PSP_FIXED_AP Fixed Path Selection with Array Preference VMW_PSP_MRU VMW_PSP_RR Most Recently Used Path Selection Round Robin Path Selection VMW_PSP_FIXED Fixed Path Selection es x c l i nmp p sp set conf ig Allow setting of per path or per device PSP configuration parameters. This command will set the configuration for the given device or path with whichever PSP it is currently configurated with. - c | - - c o n f i g =<str> The configuration string you wish to set for the given --path or --device. (required) C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp psp getconfig --path vmhba33:C0:T1:L0 {current: no; preferred: no} C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp psp setconfig --path vmhba33:C0:T1:L0 --config preferred true 124 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp psp getconfig --path vmhba33:C0:T1:L0 {current: yes; preferred: yes} - d | - - d e v i c e =<str> The device you wish to set PSP configuration for. NOTE only one of --device or --path may be specificed. - p | - - p a t h =<str> The path you wish to set PSP configuration for. NOTE only one of --device or --path may be specificed. esxcli nmp roundrobin Operations pertaining to the Round Robin Path Selection Policy Plugin. es x c l i nmp rou nd robin get conf ig Allow retrieving of Round Robin Path Selection Policy settings for a given device. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp roundrobin getconfig -device eui.51942814b35657a6 Device eui.51942814b35657a6 Does not use the Round Robin path selection policy. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp device setpolicy -device eui.51942814b35657a6 --psp VMW_PSP_RR true C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp roundrobin getconfig -device eui.51942814b35657a6 ByteLimit: 10485760 Device: eui.51942814b35657a6 IOOperationLimit: 1000 LimitType: Default UseActiveUnoptimizedPaths: false es x c l i nmp rou nd robin set conf ig Allow setting of the Round Robin path options on a given device controlled by the Round Robin Selection Policy. --type=bytes C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp roundrobin setconfig -device eui.51942814b35657a6 --type=bytes -B 1024 true 125 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp roundrobin getconfig -device eui.51942814b35657a6 ByteLimit: 1024 Device: eui.51942814b35657a6 IOOperationLimit: 1000 LimitType: Bytes UseActiveUnoptimizedPaths: false --type=iops C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp roundrobin setconfig -device eui.51942814b35657a6 --type=iops --iops 1000 true C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp roundrobin getconfig -device eui.51942814b35657a6 ByteLimit: 1024 Device: eui.51942814b35657a6 IOOperationLimit: 1000 LimitType: Iops UseActiveUnoptimizedPaths: false esxcli nmp satp Operations pertaining to the Storage Array Type Plugins for the VMware Native Multipath Plugin. es x c l i nmp sa tp ad d ru l e Add a rule to the list of claim rules for the given SATP. es x c l i nmp sa tp del et eru l e Delete a rule from the list of claim rules for the given SATP. es x c l i nmp sa tp get conf ig Allow retrieving of per path or per device SATP configuration parameters. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp satp getconfig --path vmhba33:C1:T1:L0 SATP VMW_SATP_DEFAULT_AA does not support path configuration. 126 es x c l i nmp sa tp l ist List the Storage Array Type Plugins (SATP) that are currently loaded into the NMP system and display information about those SATPs C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp satp list Name ---- Default PSP ----------- VMW_SATP_SYMM VMW_SATP_SVC VMW_SATP_MSA Description ----------VMW_PSP_FIXED Placeholder (plugin not loaded) VMW_PSP_FIXED Placeholder (plugin not loaded) VMW_PSP_MRU Placeholder (plugin not loaded) VMW_SATP_LSI VMW_PSP_MRU Placeholder (plugin not loaded) VMW_SATP_INV VMW_PSP_FIXED Placeholder (plugin not loaded) VMW_SATP_EVA VMW_PSP_FIXED Placeholder (plugin not loaded) VMW_SATP_EQL VMW_PSP_FIXED Placeholder (plugin not loaded) VMW_SATP_DEFAULT_AP VMW_PSP_MRU Placeholder (plugin not loaded) VMW_SATP_ALUA_CX VMW_PSP_FIXED_AP Placeholder (plugin not loaded) VMW_SATP_CX VMW_SATP_ALUA VMW_PSP_MRU VMW_PSP_MRU Supports EMC CX that do not use the ALUA protocol Supports non-specific arrays that use the ALUA protocol VMW_SATP_DEFAULT_AA VMW_PSP_FIXED Supports non-specific active/active arrays VMW_SATP_LOCAL VMW_PSP_FIXED Supports direct attached devices es x c l i nmp sa tp l ist ru l es List the claiming rules for Storage Array Type Plugins (SATP) C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp satp listrules Name Device Vendor Model Driver Transport Options Claim Options Default PSP PSP Options Description ---- ------ ------ ----- ------ --------- ------- ------------- ----------- ----------- ----------VMW_SATP_SYMM EMC SYMMETRIX EMC Symmetrix VMW_SATP_SVC IBM VMW_SATP_MSA 2145 MSA1000 VOLUME MSA 1000/1500 [Legacy product, Not supported in this release] VMW_SATP_LSI IBM ^1742* FAStT 700/900 VMW_SATP_LSI IBM ^3542* FAStT 200 VMW_SATP_LSI IBM ^3552* FAStT 500 VMW_SATP_LSI IBM ^1722* FAStT 600/DS4300 VMW_SATP_LSI IBM ^1815* FAStT DS4800 VMW_SATP_LSI IBM ^1724* FAStT 100 VMW_SATP_LSI IBM ^1726-* DS3X00 VMW_SATP_LSI IBM DS4000 ^1814* 127 VMW_SATP_LSI IBM ^1818* DS5100/DS5300 VMW_SATP_LSI Universal Xport FAStT VMW_SATP_LSI DELL MD3000 Dell MD3000 VMW_SATP_LSI DELL MD3000i Dell MD3000i VMW_SATP_LSI STK OPENstorage 9176 VMW_SATP_LSI STK OPENstorage D173 VMW_SATP_LSI STK OPENstorage D178 VMW_SATP_LSI STK OPENstorage D210 VMW_SATP_LSI STK OPENstorage D220 VMW_SATP_LSI STK OPENstorage D240 VMW_SATP_LSI STK OPENstorage D280 VMW_SATP_LSI STK BladeCtlr BC82 VMW_SATP_LSI STK BladeCtlr BC84 VMW_SATP_LSI STK BladeCtlr BC88 VMW_SATP_LSI STK BladeCtlr B210 VMW_SATP_LSI STK BladeCtlr B220 VMW_SATP_LSI STK BladeCtlr B240 VMW_SATP_LSI STK BladeCtlr B280 VMW_SATP_LSI STK INF-01-00 VMW_SATP_LSI STK FLEXLINE 380 VMW_SATP_LSI LSI OPENstorage 9176 VMW_SATP_LSI LSI OPENstorage D173 VMW_SATP_LSI LSI OPENstorage D178 VMW_SATP_LSI LSI OPENstorage D210 VMW_SATP_LSI LSI OPENstorage D220 VMW_SATP_LSI LSI OPENstorage D240 VMW_SATP_LSI LSI OPENstorage D280 128 VMW_SATP_LSI LSI BladeCtlr BC82 VMW_SATP_LSI LSI BladeCtlr BC84 VMW_SATP_LSI LSI BladeCtlr BC88 VMW_SATP_LSI LSI BladeCtlr B210 VMW_SATP_LSI LSI BladeCtlr B220 VMW_SATP_LSI LSI BladeCtlr B240 VMW_SATP_LSI LSI BladeCtlr B280 VMW_SATP_LSI LSI INF-01-00 VMW_SATP_LSI LSI FLEXLINE 380 VMW_SATP_LSI SUN CSM100_R_FC VMW_SATP_LSI SUN FLEXLINE 380 VMW_SATP_LSI SUN CSM200_R VMW_SATP_LSI SUN LCSM100_F VMW_SATP_LSI SUN LCSM100_I VMW_SATP_LSI SUN LCSM100_S SUN STK6580_6780 VMW_SATP_LSI Sun StorageTek 6580/6780 VMW_SATP_LSI VMW_SATP_LSI ENGENIO INF-01-00 IBM ^1746* IBM DS3512/DS3524 VMW_SATP_LSI DELL MD32xx Dell MD3200 VMW_SATP_LSI DELL MD32xxi Dell MD3200i VMW_SATP_LSI SGI IS500 SGI InfiniteStorage 4000/4100 VMW_SATP_LSI SGI IS600 SGI InfiniteStorage 4600 VMW_SATP_INV VMW_SATP_INV EMC Invista EMC LUNZ Invista LUNZ VMW_SATP_EVA HSV101 tpgs_off active/active EVA 3000 GL VMW_SATP_EVA HSV111 tpgs_off active/active EVA 5000 GL VMW_SATP_EVA HSV200 active/active EVA 4000/6000 XL tpgs_off 129 VMW_SATP_EVA HSV210 tpgs_off active/active EVA 8000/8100 XL VMW_SATP_EVA HSVX740 tpgs_off active/active HP StorageWorks SVSP VMW_SATP_EVA HSV300 tpgs_off active/active EVA 4400 VMW_SATP_EVA HSV400 tpgs_off active/active EVA 6400 VMW_SATP_EVA HSV450 tpgs_off active/active EVA 8400 VMW_SATP_EQL EQLOGIC All EqualLogic Arrays VMW_SATP_DEFAULT_AP DEC VMW_SATP_DEFAULT_AP HSG80 HSV100 active/passive EVA 3000 GL [Legacy product, Not supported in th is release] VMW_SATP_DEFAULT_AP HSV110 active/passive EVA 5000 GL [Legacy product, Not supported in th is release] VMW_SATP_DEFAULT_AP HSVX700 tpgs_off active/passive HP StorageWorks SVSP VMW_SATP_ALUA_CX DGC tpgs_on CLARiiON array in ALUA mode VMW_SATP_CX DGC tpgs_off All non-ALUA Clariion Arrays VMW_SATP_ALUA tpgs_on Any array with ALUA support VMW_SATP_DEFAULT_AA HITACHI inq_data[128]={0x44 0x4 6 0x30 0x30} VMW_PSP_RR VMW_SATP_DEFAULT_AA fc Default for Fibre Channel VMW_SATP_DEFAULT_AA iscsi Default for iSCSI VMW_SATP_DEFAULT_AA IBM SAS SES-2 DEVICE IBM SAS SES-2 VMW_SATP_DEFAULT_AA IBM 1820N00 IBM BCS RSSM VMW_SATP_DEFAULT_AA HITACHI VMW_SATP_LOCAL usb USB Devices VMW_SATP_LOCAL ide IDE Devices VMW_SATP_LOCAL block RAID Block Devices VMW_SATP_LOCAL parallel Parallel SCSI Devices VMW_SATP_LOCAL sas Serial Attached SCSI Devices VMW_SATP_LOCAL sata Serial ATA Devices VMW_SATP_LOCAL unknown Unknown Devices tpgs_off 130 es x c l i nmp sa tp set conf ig Allow setting of per path or per device SATP configuration parameters. This command will set the configuration for the given device or path with whichever SATP it is currently configurated with. es x c l i nmp sa tp set d efa u l tp sp Set the default Path Selection Policy for a given Storage Array Type Plugin (SATP). esxcli swiscsi VMware iSCSI commands. esxcli sw iscsi nic Operations that can be performed on iSCSI NICs es x c l i s w iscsi nic a d d Add a vmknic to current software iSCSI configuration. - d | - - a d a p t e r =<str> The software iSCSI adapter name. (required) - n | - - n i c =<str> The name of the vmknic to be added iSCSI NIC. (required) C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi nic add --adapter vmhba33 --nic vmk3 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi nic list --adapter vmhba33 vmk1 pNic name: vmnic1 ipv4 address: 192.168.9.202 ipv4 net mask: 255.255.255.0 ipv6 addresses: mac address: 00:0c:29:82:9b:7f mtu: 1500 toe: false tso: true tcp checksum: false vlan: true vlanId: 0 ethernet speed: 1000 packets received: 13382 packets sent: 253 NIC driver: e1000 driver version: 8.0.3.2-1vmw-NAPI firmware version: N/A 131 vmk2 pNic name: vmnic2 ipv4 address: 192.168.9.203 ipv4 net mask: 255.255.255.0 ipv6 addresses: mac address: 00:0c:29:82:9b:89 mtu: 1500 toe: false tso: true tcp checksum: false vlan: true vlanId: 0 ethernet speed: 1000 packets received: 13021 packets sent: 614 NIC driver: e1000 driver version: 8.0.3.2-1vmw-NAPI firmware version: N/A vmk3 pNic name: vmnic3 ipv4 address: 192.168.9.209 ipv4 net mask: 255.255.255.0 ipv6 addresses: mac address: 00:0c:29:82:9b:93 mtu: 1500 toe: false tso: true tcp checksum: false vlan: true vlanId: 0 ethernet speed: 1000 packets received: 13627 packets sent: 8 NIC driver: e1000 driver version: 8.0.3.2-1vmw-NAPI firmware version: N/A es x c l i s w iscsi nic l ist List network portal bindings(nic) - d | - - a d a p t e r =<str> The software iSCSI adapter name. (required) C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi nic list --adapter vmhba33 vmk1 pNic name: vmnic1 ipv4 address: 192.168.9.202 ipv4 net mask: 255.255.255.0 ipv6 addresses: 132 mac address: 00:0c:29:82:9b:7f mtu: 1500 toe: false tso: true tcp checksum: false vlan: true vlanId: 0 ethernet speed: 1000 packets received: 30599 packets sent: 1096 NIC driver: e1000 driver version: 8.0.3.2-1vmw-NAPI firmware version: N/A vmk2 pNic name: vmnic2 ipv4 address: 192.168.9.203 ipv4 net mask: 255.255.255.0 ipv6 addresses: mac address: 00:0c:29:82:9b:89 mtu: 1500 toe: false tso: true tcp checksum: false vlan: true vlanId: 0 ethernet speed: 1000 packets received: 30194 packets sent: 1501 NIC driver: e1000 driver version: 8.0.3.2-1vmw-NAPI firmware version: N/A es x c l i s w iscsi nic remove Remove a vmknic from current software iSCSI configuration. - d | - - a d a p t e r =<str> The software iSCSI adapter name. (required) - n | - - ni c =<str> The name of the vmknic to be removed iSCSI NIC. (required) C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi nic remove --adapter vmhba33 --nic vmk2 Failed to Remove NIC. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi nic remove --adapter vmhba33 --nic vmk3 133 esxcli sw iscsi session Operations that can be performed on iSCSI sessions es x c l i s w iscsi session a d d Login sessions on current iSCSI configuration. - d | - - a d a p t e r =<str> The iSCSI adapter name. (required) - s | - - i si d =<str> The isid of a session to duplicate for login. - t | - - t a rg e t =<str> The name of the target to login to. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi session add --adapter vmhba33 C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi session list --adapter vmhba33 fujinb target: fujinb -session_isid: [00:02:3d:00:00:01] -authMethod: NONE -dataPduInOrder: true -dataSequenceInOrder: true -defaultTime2Retain: 0 -errorRecoveryLevel: 0 -firstBurstLength: 262144 -immediateData: true -initialR2T: false -maxBurstLength: 262144 -maxConnections: 1 -maxOutstandingR2T: 1 -targetPortalGroupTag: 1 --connectionId: 0 --dataDigest: NONE --headerDigest: NONE --ifMarker: false --ifMarkInt: 0 --maxRecvDataSegmentLength: 131072 --maxTransmitDataSegmentLength: 262144 --ofMarker: false --ofMarkInt: 0 --Initial_Remote_Address: 192.168.9.21 --Current_Remote_Address: 192.168.9.21 --Current_Local_Address: 192.168.9.202 --State: LOGGED_IN 134 fujinb target: fujinb -session_isid: [00:02:3d:00:00:02] -authMethod: NONE -dataPduInOrder: true -dataSequenceInOrder: true -defaultTime2Retain: 0 -errorRecoveryLevel: 0 -firstBurstLength: 262144 -immediateData: true -initialR2T: false -maxBurstLength: 262144 -maxConnections: 1 -maxOutstandingR2T: 1 -targetPortalGroupTag: 1 --connectionId: 0 --dataDigest: NONE --headerDigest: NONE --ifMarker: false --ifMarkInt: 0 --maxRecvDataSegmentLength: 131072 --maxTransmitDataSegmentLength: 262144 --ofMarker: false --ofMarkInt: 0 --Initial_Remote_Address: 192.168.9.21 --Current_Remote_Address: 192.168.9.21 --Current_Local_Address: 192.168.9.203 --State: LOGGED_IN iqn.2003-06.com.rocketdivision.starwind.w-nana.imagefile0 target: iqn.2003-06.com.rocketdivision.starwind.w-nana.imagefile0 -session_isid: [00:02:3d:00:00:01] -authMethod: NONE -dataPduInOrder: true -dataSequenceInOrder: true -defaultTime2Retain: 0 -errorRecoveryLevel: 0 -firstBurstLength: 262144 -immediateData: true -initialR2T: false -maxBurstLength: 262144 -maxConnections: 1 -maxOutstandingR2T: 1 -targetPortalGroupTag: 65535 --connectionId: 0 --dataDigest: NONE --headerDigest: NONE --ifMarker: false --ifMarkInt: 0 --maxRecvDataSegmentLength: 131072 --maxTransmitDataSegmentLength: 8192 --ofMarker: false --ofMarkInt: 0 --Initial_Remote_Address: 192.168.9.11 135 --Current_Remote_Address: 192.168.9.11 --Current_Local_Address: 192.168.9.202 --State: XPT_WAIT iqn.2003-06.com.rocketdivision.starwind.w-nana.imagefile0 target: iqn.2003-06.com.rocketdivision.starwind.w-nana.imagefile0 -session_isid: [00:02:3d:00:00:02] -authMethod: NONE -dataPduInOrder: true -dataSequenceInOrder: true -defaultTime2Retain: 0 -errorRecoveryLevel: 0 -firstBurstLength: 262144 -immediateData: true -initialR2T: false -maxBurstLength: 262144 -maxConnections: 1 -maxOutstandingR2T: 1 -targetPortalGroupTag: 65535 --connectionId: 0 --dataDigest: NONE --headerDigest: NONE --ifMarker: false --ifMarkInt: 0 --maxRecvDataSegmentLength: 131072 --maxTransmitDataSegmentLength: 8192 --ofMarker: false --ofMarkInt: 0 --Initial_Remote_Address: 192.168.9.11 --Current_Remote_Address: 192.168.9.11 --Current_Local_Address: 192.168.9.203 --State: XPT_WAIT es x c l i s w iscsi session l ist List current iSCSI Sessions. - d | - - a d a p t e r =<str> The software iSCSI adapter name. (required) - t | - - t a rg e t =<str> The target iscsi name. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi session list --adapter vhba33 fujinb target: fujinb -session_isid: [00:02:3d:00:00:01] -authMethod: NONE -dataPduInOrder: true -dataSequenceInOrder: true -defaultTime2Retain: 0 136 -errorRecoveryLevel: 0 -firstBurstLength: 262144 -immediateData: true -initialR2T: false -maxBurstLength: 262144 -maxConnections: 1 -maxOutstandingR2T: 1 -targetPortalGroupTag: 1 --connectionId: 0 --dataDigest: NONE --headerDigest: NONE --ifMarker: false --ifMarkInt: 0 --maxRecvDataSegmentLength: 131072 --maxTransmitDataSegmentLength: 262144 --ofMarker: false --ofMarkInt: 0 --Initial_Remote_Address: 192.168.9.21 --Current_Remote_Address: 192.168.9.21 --Current_Local_Address: 192.168.9.202 --State: LOGGED_IN fujinb target: fujinb -session_isid: [00:02:3d:00:00:02] -authMethod: NONE -dataPduInOrder: true -dataSequenceInOrder: true -defaultTime2Retain: 0 -errorRecoveryLevel: 0 -firstBurstLength: 262144 -immediateData: true -initialR2T: false -maxBurstLength: 262144 -maxConnections: 1 -maxOutstandingR2T: 1 -targetPortalGroupTag: 1 --connectionId: 0 --dataDigest: NONE --headerDigest: NONE --ifMarker: false --ifMarkInt: 0 --maxRecvDataSegmentLength: 131072 --maxTransmitDataSegmentLength: 262144 --ofMarker: false --ofMarkInt: 0 --Initial_Remote_Address: 192.168.9.21 --Current_Remote_Address: 192.168.9.21 --Current_Local_Address: 192.168.9.203 --State: LOGGED_IN 137 es x c l i s w iscsi session remove Remove session(s) from iSCSI configuration. esxcli sw iscsi vmknic Operations that can be performed on iSCSI vmknics es x c l i s w iscsi vmknic l ist List logical network portals(vmknic). - d | - - a d a p t e r =<str> The iSCSI adapter name (vmhba#). (required) C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi vmknic list --adapter vmhba33 vmk0 vmknic name: vmk0 mac address: 00:50:56:71:bd:7a mac address settable: NO vmk0 vmknic name: vmk0 mac address: 00:50:56:71:bd:7a mac address settable: NO vmk3 vmknic name: vmk3 mac address: 00:50:56:7b:0c:85 mac address settable: NO vmk1 vmknic name: vmk1 mac address: 00:50:56:77:00:94 mac address settable: NO vmk2 vmknic name: vmk2 mac address: 00:50:56:7f:d2:ea mac address settable: NO 138 esxcli sw iscsi vmnic Operations that can be performed on iSCSI vmnics es x c l i s w iscsi vmnic l ist List phyical network portals(vmnics). - d | - - a d a p t e r =<str> The iSCSI adapter name (vmhba#). (required) C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi vmnic list --adapter vmhba33 vmnic0 vmnic name: vmnic0 mac address: 00:0c:29:82:9b:75 mac address settable: NO maximum transfer rate: 1000 current transfer rate: 1000 maximum frame size: 1500 vmnic3 vmnic name: vmnic3 mac address: 00:0c:29:82:9b:93 mac address settable: NO maximum transfer rate: 1000 current transfer rate: 1000 maximum frame size: 1500 vmnic1 vmnic name: vmnic1 mac address: 00:0c:29:82:9b:7f mac address settable: NO maximum transfer rate: 1000 current transfer rate: 1000 maximum frame size: 1500 vmnic2 vmnic name: vmnic2 mac address: 00:0c:29:82:9b:89 mac address settable: NO maximum transfer rate: 1000 current transfer rate: 1000 maximum frame size: 1500 vmnic4 vmnic name: vmnic4 mac address: 00:0c:29:82:9b:9d mac address settable: NO maximum transfer rate: 1000 current transfer rate: 1000 maximum frame size: 1500 139 vmnic5 vmnic name: vmnic5 mac address: 00:0c:29:82:9b:a7 mac address settable: NO maximum transfer rate: 1000 current transfer rate: 1000 maximum frame size: 1500 esxcli vaai Vaai Namespace containing vaai code. esxcli vaai device Operations that can be performed on devices that have the VMware VAAI filter attached. es x c l i va a i d evice l ist List the devices currently claimed by the VMware VAAI Filter Plugin and show the VAAI Filter plugin information associated with that device. esxcli vms Limited Operations on Virtual Machines. esxcli vms vm A small number of operations that allow a user to Control Virtual Machine operations. es x c l i vms vm kil l Used to forcibly kill Virtual Machines that are stuck and not responding to normal stop operations. - t | - - t y p e =<str> The type of kill operation to attempt. There are three types of VM kills that can be attempted: [soft, hard, force]. Users should always attempt 'soft' kills first, which will give the VMX process a chance to shutdown cleanly (like kill or kill -SIGTERM). If that does not work move to 'hard' kills which will shutdown the process immediately (like kill -9 or kill -SIGKILL). 'force' should be used as a last resort attempt to kill the VM. If all three fail then a reboot is required. (required) - w | - - w o rl d - i d =<long> The World ID of the Virtual Machine to kill. This can be obtained from the 'vm list' command (required) C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 vms vm kill --type force -world-id 149074 true 140 es x c l i vms vm l ist List the virtual machines on this system. This command currently will only list running VMs on the system. C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 vms vm list VM5 World ID: 149074 Process ID: 0 VMX Cartel ID: 149073 UUID: 42 1b 6e bc 23 b1 59 2a-ae 96 2f 18 4e 16 e7 02 Display Name: VM5 Config File: /vmfs/volumes/1c445c7d-fd56af7a/VM5/VM5.vmx 141 vicfg-authconfig (4.1) --adpassword -w Active Directory password. To be used in conjunction with joindomain option. --adusername -U Active Directory username. To be used in conjunction with joindomain option. --authscheme -t Specify the type of authenticaton scheme. Currently only AD is supported. --currentdomain -c Prints out the currently joined domain. --force -f This flag is only used with leavecurrentdomain option. If specified, any permissions on entities for AD users will be deleted. If not specified and such permissions exist, the operation will fail. --getremoteauthstore -a Prints out only the active authentication mechanism. --joindomain -j Join a particular Active Directory domain. --leavecurrentdomain -L Leaves the current Active Directory domain. --listauthstores -l Prints out the different authentication mechanisms supported. 142 vicfg-hostops (4.1) --action -a Specify the action for powered on virtual machine (poweroff | suspend). Default is suspend. --cluster -c "Name of the cluster (optional)." --datacenter -d "Name of the datacenter (optional)." --force -f "Optional for reboot and shutdown operation. Flag to force the host that is not in maintenance mode to be rebooted/shutdown. If not specified, operation will fail for host not in maintenance mode." --operation (required) -o "Operation to perform (enter | exit | reboot | shutdown | info)." C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-hostops.pl --config 201 --operation info Host Name : esxi-21.home.hc Manufacturer Model : VMware, Inc. : VMware Virtual Platform Processor Type : Intel(R) Core(TM)2 Duo CPU CPU Cores T7500 @ 2.20GHz : 1 CPUs x 2186 GHz Memory Capacity : 2247.32421875 MB VMotion Enabled : no In Maintenance Mode : no Last Boot Time : 2010-08-12T18:50:03.066042Z C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-hostops.pl --config 201 --operation enter Host esxi-21.home.hc entered into maintenance mode successfully. C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-hostops.pl --config 201 --operation info Host Name : esxi-21.home.hc Manufacturer Model : VMware, Inc. : VMware Virtual Platform Processor Type CPU Cores : Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz : 1 CPUs x 2186 GHz Memory Capacity : 2247.32421875 MB VMotion Enabled : no In Maintenance Mode : yes Last Boot Time : 2010-08-12T18:50:03.066042Z C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-hostops.pl --config 201 --operation exit Host esxi-21.home.hc exited from maintenance mode successfully. 143 vicfg-ipsec (4.1) --action "Action to take (none, discard, ipsec)" --add-sa "Add an security association" --add-sp "Add an security policy" --dir "Direction (in or out)" --dst-port "Destination Port (0-65535)" --ealgo "Encryption Algorithm (null, 3des-cbc, aes128-cbc)" --ekey "Encryption key, a series of hexadecimal digits format(0x...)" --flush-sa "Clear out all entries in SA database." --flush-sp "Clear out all entries in SP database." --ialgo "Authentication Algorithm (hmac-sha1, hmac-sha2-256)" --ikey "Authentication key, a series of hexadecimal digits format(0x...)" --list-sa -l "Display Security Associations." --list-sp -L "Display Security Policies." --remove-sa "Remove an security association" 144 --remove-sp "Remove an security policy" --sa-dst "Destintation IP" --sa-mode "Mode, (tunnel, transport)" --sa-name "Security Association name" --sa-src "Source IP" --sp-dst "Destintation IP and prefix length" --sp-mode "Mode" --sp-src "Source IP and prefix length" --spi "SPI as a hex string, format 0x..." --src-port "Source Port (0-65535)" --ulproto "Upper Layer Protocol (any, tcp, udp, icmp6)" 145 Bibliography VirtualVCP IT Virtualization. (n.d.). Retrieved from http://www.virtualvcp.com/ VMware. (2008, 2009). vSphere Command-Line Interface Installation and Reference Guide ESX/ESXi 4.0 vCenter Server 4.0. VMware, Inc. VMware. (2008-2010). vSphere Command-Line Interface Installation and Scripting Guide ESX 4.1 ESXi 4.1 vCenter Server 4.1. VMware, Inc.