Professional Documents
Culture Documents
Esx 4.1 Cli
Esx 4.1 Cli
vSphere CLI
vMA
4.0 / 4.1
with examples
vSphere CLI connection options .................................................. 1
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
VI_SERVER=192.168.9.201
VI_USERNAME=root
VI_PASSWORD=password12345
VI_PROTOCOL=https
VI_PORT=443
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
Initialize vi-fastpass:
3
root@192.168.9.201's password:
192.168.9.201 ESXi
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.
--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.
In case a dump partition is not set up it may be configured using vSphere Client.
--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.
--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.
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.
--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.
--set -s
Set the diagnostic partition for this system and activate it, either naa.xxxxx:1 or 'none' to deactivate
the active diagnostic partition.
--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.
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.
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.
--list-map -m
List all paths with adapter and device mappings.
--list-paths -b
List all devices with their corresponding paths.
--list-plugins -G
List all multipathing plugins loaded into the system.
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.
--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.
--delete -d
Unmount and delete a filesystem
--list -l
List the currently mounted NAS file systems
--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.
Device UID Device Type Console Device Size Plugin Display Name
mpx.vmhba32:C0:T0:L0 cdrom /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.
Device UID Device Type Console Device Size Plugin Display Name
eui.51942814b35657a6 disk /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.
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.
--list -l
List all logical devices known on this system with detailed information. Supported on ESX 4.0 and
ESXi 4.0.
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.
vicfg-rescan
C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-rescan.pl --config 201 vmhba33
vicfg-dns
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).
--domain -d
The domain name to be set.
--hostname -n
The hostname to be set.
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.
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.
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.
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
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)
--delete -d
The name or IP address of the NTP server to remove (IPv6 address valid for vSphere 4.0 and later)
--list -l
Displays all NTP servers used by the host
--start -r
Starts the NTP service on the host
Unable to start NTP service: The operation is not allowed in the current state.
--stop -s
Stops the NTP service on the host
vicfg-route
C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-route.pl --config 201
--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:
* Or as 'default'
--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:
* Or as 'default'
--list -l
List configured routes for the VMkernel
VMkernel Routes:
Network Netmask Gateway Interface
default 0.0.0.0 192.168.9.9 vmk0
192.168.9.0 255.255.255.0 Local Subnet vmk0
24
vicfg-vmknic
--add -a
Add a VMkernel NIC to the system. Requires ip, netmask, portgroup.
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
vmk3 pgVMKTest IPv4 100.100.100.100 255.255.0.0 00:50:56:7b:6b:a2 1500 STATIC Disabled
--delete -d
Delete the VMkernel NIC on the given portgroup.
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 Disabled
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
25
--disable-vmotion -u
Disable VMotion for the VMkernel NIC on a specified portgroup.
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 Disabled
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
--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.
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 Disabled
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
--ip -i
The IP address for this VMkernel NIC where IP address can be:
<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)
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 Disabled
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
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 Disabled
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
--list -l
List VMkernel NICs on the system.
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):
vicfg-vswitch
--add -a
Add a new virtual switch
...
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vsTest 128 1 128 1500
PortGroup Name 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
...
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vsTest 128 1 128 1500
PortGroup Name VLAN ID Used Ports Uplinks
pgTest 0 0
...
29
--add-pg-uplink -M
Add an uplink adapter (pnic) to a portgroup (valid for vSphere 4.0 and later)
30
...
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vsTest 128 3 128 1500 vmnic3,vmnic2
PortGroup Name VLAN ID Used Ports Uplinks
pgTest 111 0 vmnic3,vmnic2
pgTest2 0 0 vmnic3,vmnic2
...
...
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vsTest 128 3 128 1500 vmnic3,vmnic2
PortGroup Name VLAN ID Used Ports Uplinks
pgTest 111 0 vmnic2
pgTest2 0 0 vmnic3,vmnic2
...
31
--check -c
Check to see if virtual switch exists
--check-pg -C
Check to see if a portgroup exists
1
C:\Program Files\VMware\VMware vSphere CLI\bin>vicfg-vswitch.pl --config 201 --check-pg
pgTesttttt
--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
0
32
--del-pg-uplink -N
Delete an uplink adapter from a portgroup (valid for vSphere 4.0 and later)
...
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vsTest 128 3 128 1500 vmnic3,vmnic2
PortGroup Name VLAN ID Used Ports Uplinks
pgTest 111 0
pgTest2 0 0 vmnic3,vmnic2
...
--delete -d
Delete the virtual switch
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)
both
--link -L
Sets a pnic as an uplink for the virtual switch
...
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vsTest 128 2 128 1500 vmnic3
PortGroup Name VLAN ID Used Ports Uplinks
pgTest 0 0 vmnic3
...
--list -l
List vswitches and port groups
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSS-Management 128 4 128 1500 vmnic0
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSS-SWiSCSI-1 128 3 128 1500 vmnic1
PortGroup Name VLAN ID Used Ports Uplinks
VM-1 0 0 vmnic1
VMk-SWiSCSI-PG-1 0 1 vmnic1
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSS-SWiSCSI-2 128 3 128 1500 vmnic2
PortGroup Name VLAN ID Used Ports Uplinks
VM-2 0 0 vmnic2
VMk-SWiSCSI-PG-2 0 1 vmnic2
34
--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"
both
listen
--unlink -U
Removes a pnic from the uplinks for the virtual switch
--vlan -v
Set vlan id for portgroup specified by –p
...
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vsTest 128 2 128 1500 vmnic3
PortGroup Name VLAN ID Used Ports Uplinks
pgTest 111 0 vmnic3
...
35
vicfg-cfgbackup
--force -f
Force the restore of the configuration.
--load -l
Restore configuration onto the host
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.
vicfg-snmp
--communities -c
Set communities separated by comma comm1[,...] (this overwrites previous settings)
--disable -D
Stop SNMP service
--enable -E
Start SNMP service
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.
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)
--test -T
Send out a test notification to validate configuration.
.
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)
--show -i
Displays syslog server configuration. Should be supplied alone.
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.
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>
--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.
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:
--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.
--get-kernel -j <kernelOption>
Get the value of a VMkernel boot parameter.
--list -l
List all VMkernel advanced config options.
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.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
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
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.
--set-message -m
Set DCUI welcome message (valid for vSphere 4.0 and later).
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).
Name ID Loaded
vmkernel 0 Yes
procfs 1 Yes
vmkapiv1_0_0_0_vmkernel_shim2 Yes
vmklinux 3 Yes
random 4 Yes
usb 5 Yes
ehci-hcd 6 Yes
usb-uhci 7 Yes
hid 8 Yes
dm 9 Yes
nmp 10 Yes
vmw_satp_local 11 Yes
vmw_satp_default_aa 12 Yes
vmw_psp_lib 13 Yes
vmw_psp_fixed 14 Yes
vmw_psp_rr 15 Yes
vmw_psp_mru 16 Yes
vmw_psp_fixed_ap 17 Yes
vmw_satp_alua 18 Yes
vmw_satp_cx 19 Yes
libata 20 Yes
usb-storage 21 Yes
vfat 22 Yes
mask_path_plugin 23 Yes
vaai_filter 24 Yes
vmw_vaaip_emc 25 Yes
vmkapiv1_0_0_0_nmp_shim 26 Yes
vtddmar 27 Yes
vmci 28 Yes
iscsi_trans 29 Yes
hub 30 Yes
netsched 31 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
60
etherswitch 40 Yes
shaper 41 Yes
cdp 42 Yes
tcpip3 43 Yes
dvfilter 44 Yes
vmkapiv1_0_0_0_dvfilter_shim45 Yes
vmkibft 46 Yes
iscsi_vmk 47 Yes
vmfs3 48 Yes
nfsclient 49 Yes
vmkstatelogger 50 Yes
migrate 51 Yes
cbt 52 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)."
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
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)."
vicfg-volume
--list -l
List all volumes which have been detected as snapshots/replicas.
Both original and snaphot are exposed as targets, but none of them is mounted:
--persistent-mount -M
Mount a snapshot/replica volume persistently, if its original copy is not online.
--refresh -R
Refresh the storage system.
68
--resignature -r
Resignature a snapshot/replica volume.
Content Listing
---------------
FUNB
ISO
NFS
datastore1
ds-1
snap-18b22e14-ds-1
--umount -u
Umount a snapshot/replica volume.
vifs
--copy -c
Copy a file or a directory to another location.
Content Listing
---------------
thin.vmdk
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
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
Content Listing
---------------
thin.vmdk
--force -f
Allows overwriting of destination file for a copy or move.
--get -g
Downloads a file on the host to a local path
--listdc -C
List the paths to all datacenters available in the server
ha-datacenter
--listds -S
List datastores available
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…?
Content Listing
---------------
eagerzeroedthick-flat.vmdk
eagerzeroedthick.vmdk
rdm-rdm.vmdk
rdm.vmdk
--mkdir -M
Creates a directory.
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.
Content Listing
---------------
thin.vmdk
thinmoved.vmdk
--put -p
Uploads a local file to the directory on the host
--rm -r
Deletes a file or a directory.
--rmdir -R
Deletes a directory. Fails if directory is not empty
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.
Content Listing
---------------
eagerzeroedthick-flat.vmdk
eagerzeroedthick.vmdk
zeroedthick-flat.vmdk
zeroedthick.vmdk
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
~ # fdisk -l
~ # 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.
Command action
e extended
p primary partition (1-4)
~ # fdisk -l
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.
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 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)
Selected partition 1
Hex code (type L to list codes): fb
Changed system type of partition 1 to fb (VMFS)
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.
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.
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.
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.
Content Listing
---------------
eagerzeroedthick-flat.vmdk
eagerzeroedthick.vmdk
zeroedthick-flat.vmdk
zeroedthick.vmdk
--diskformat -d
Specify the target disk format. Applies to -c, -i, -X.
--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.
--geometry -g
Get the geometry information (cylinders, heads, sectors) of a virtual disk.
--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.
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.
--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.
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
--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).
--add -a
Add operation. Used with --discovery or --static option.
NAME : fujinb
ADDRESS : 192.168.9.21:3260
--alias -k
iSCSI initiator alias name. Used with --iscsiname option.
--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.
-----------------------------------------
NAME : fujinb
ALIAS :
DISCOVERY METHOD FLAGS :0
SEND TARGETS DISCOVERY SETTABLE : 0
Portal 0 : 192.168.9.21:3260
-----------------------------------------
-----------------------------------------
NAME : fujinb
ALIAS :
DISCOVERY METHOD FLAGS :0
SEND TARGETS DISCOVERY SETTABLE : 0
Portal 0 : 192.168.9.21:3260
-----------------------------------------
88
-----------------------------------------
NAME : iqn.2006-01.com.openfiler:tsn.1e4d0f10c32a
ALIAS :
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.
-----------------------------------------
NAME : fujinb
ALIAS :
DISCOVERY METHOD FLAGS :0
SEND TARGETS DISCOVERY SETTABLE : 0
Portal 0 : 192.168.9.21:3260
-----------------------------------------
-----------------------------------------
NAME : iqn.2006-01.com.openfiler:tsn.1e4d0f10c32a
ALIAS :
DISCOVERY METHOD FLAGS :0
SEND TARGETS DISCOVERY SETTABLE : 0
Portal 0 : 192.168.9.232:3260
-----------------------------------------
89
--detail -f
Details of iSCSI parameters. Used with --parameter option.
- 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 : YES
Summary : 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
--------------------------------------------------
- dataDigestSettable :1
- headerDigestSettable :1
- targetDataDigestSettable :1
- targetHeaderDigestSettable :1
- dataDigestType : digestProhibited
- headerDigestType : digestProhibited
--disable -q
Disable operation. Used with --swiscsi option.
--discovery -D
Discovery addresses properties and configuration.
--enable -e
Enable operation. Used with --swiscsi option.
--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.
--level -c
Authentication level. Used with --authentication option.
chapProhibited no CHAP
chapRequired CHAP
--list -l
List operation. Used with --discovery, --static, --target, --lun, --authentication, --phba, --
network, --pnp, --iscsiname, --parameter, --swiscsi or --adapter options.
--lun -L
List active LUNs information.
Target: fujinb:
-------------------------------------------
OS DEVICE NAME : eui.51942814b35657a6
BUS NUMBER :1
TARGET ID :1
LUN ID :0
LUN SIZE : 4000 MB
-------------------------------------------
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)
--name -n
Initiator or target iSCSI name. Used with --static, --authentication, --iscsiname, or --parameter
option.
--network -N
Network properties and configuration.
--parameter -W
For iSCSI parameters operations.
- ErrorRecoveryLevel :0
- LoginRetryMax :4
- MaxOutstandingR2T :1
- FirstBurstLength : 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.
--pnp -p
List Physical Network Portal properties.
--remove -r
Remove operation. Used with --discovery or --static option.
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
--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
--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.
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.
-----------------------------------------
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.
Target: fujinb:
-------------------------------------------
OS DEVICE NAME : eui.51942814b35657a6
BUS NUMBER :1
TARGET ID :0
LUN ID :0
LUN SIZE : 4000 MB
-------------------------------------------
OS DEVICE NAME : eui.51942814b35657a6
BUS NUMBER :0
TARGET ID :0
LUN ID :0
LUN SIZE : 4000 MB
-------------------------------------------
101
Target: fujinb:
-------------------------------------------
OS DEVICE NAME : eui.51942814b35657a6
BUS NUMBER :1
TARGET ID :0
LUN ID :0
LUN SIZE : 4000 MB
-------------------------------------------
OS DEVICE NAME : eui.51942814b35657a6
BUS NUMBER :0
TARGET ID :0
LUN ID :0
LUN SIZE : 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
Content Listing
---------------
ISO
NFS
datastore1
Content Listing
---------------
VM5/
ubuntuServer8.04-1/
ubuntuServer8.04-2/
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
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>
unregister() = 1
VM Operations
vmw are-cmd <cfg> getstate
C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl
getstate() = off
start() = 1
getstate() = on
stop() = 1
stop() = 1
reset() = 1
stop() = 1
suspend() = 1
getguestinfo(ip) = 192.168.9.249
<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
getconfigfile() = /vmfs/volumes/1c445c7d-fd56af7a/ubuntuServer8.04-1/ubuntuServer8.04-1.vmx
getuptime() = 1281
No questions pending.
106
gettoolslastactive() = 1
gettoolslastactive() = 0
hassnapshot () = 0
hassnapshot () = 1
107
For creating a snapshot you must specify <name> <description> <quiesce - can be 0/1> <memory - can be 0/1>.
createsnapshot (2 snap2 1 1) = 1
revertsnapshot () = 1
removesnapshot () = 1
hassnapshot () = 0
108
esxcli
esxcli corestorage
VMware core storage commands.
- c | - - c l a i m r u l e - c l a s s =<str>
--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)
- 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
- 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>
- 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.
- A | - - a d a p t e r =<str>
- 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>
- c | - - c l a i m r ul e - c l a s s =<str>
- d | - - d e v i c e =<str>
- D | - - d r i v e r =<str>
111
-f|--force
Force claim rules to ignore validity checks and install the rule anyway.
- L | - -l u n =<long>
- M | - - m o d e l =<str>
- P | - - p l ug i n =<str>
- r | - - r u l e =<long>
- T | - - t a r g e t =<long>
- 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>
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
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
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
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 network
VMware networking commands.
esxcli nmp
VMware Native Multipath Plugin (NMP). This is the VMware default implementation of the
Pluggable Storage Architecture.
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
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
- 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.
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
vmhba33:C0:T1:L0
true
vmhba33:C1:T1:L0
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.
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
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
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
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
Name Description
---- -----------
VMW_PSP_FIXED_AP Fixed Path Selection with Array Preference
VMW_PSP_MRU Most Recently Used Path Selection
VMW_PSP_RR Round Robin Path Selection
VMW_PSP_FIXED Fixed Path Selection
- 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
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
- 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.
Device eui.51942814b35657a6 Does not use the Round Robin path selection policy.
true
ByteLimit: 10485760
Device: eui.51942814b35657a6
IOOperationLimit: 1000
LimitType: Default
UseActiveUnoptimizedPaths: false
--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
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
ByteLimit: 1024
Device: eui.51942814b35657a6
IOOperationLimit: 1000
LimitType: Iops
UseActiveUnoptimizedPaths: false
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.
C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 nmp satp getconfig --path
vmhba33:C1:T1:L0
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
es x c l i nmp sa tp l ist ru l es
List the claiming rules for Storage Array Type Plugins (SATP)
VMW_SATP_DEFAULT_AP 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 tpgs_off
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
130
esxcli swiscsi
VMware iSCSI commands.
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>
- n | - - n i c =<str>
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
- d | - - a d a p t e r =<str>
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
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
- d | - - a d a p t e r =<str>
- n | - - ni c =<str>
C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi nic remove --adapter
vmhba33 --nic vmk2
C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --config 201 swiscsi nic remove --adapter
vmhba33 --nic vmk3
133
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>
- s | - - i si d =<str>
- t | - - t a rg e t =<str>
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
- d | - - a d a p t e r =<str>
- t | - - t a rg e t =<str>
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
- d | - - a d a p t e r =<str>
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
- d | - - a d a p t e r =<str>
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.
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.
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)."
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.