Professional Documents
Culture Documents
Edu Vi3dsa Ja2 Vi3commandref
Edu Vi3dsa Ja2 Vi3commandref
Edu Vi3dsa Ja2 Vi3commandref
0 Command Reference
COMMANDS TO DEPLOY AN ESX SERVER Configure ESX Server Networking
Display physical NIC configuration Set physical NICs speed and duplex Add a virtual switch Check to see if a virtual switch already exists Add a portgroup (for either SC, VMkernel or VMs) Check to see if a portgroup already exists Link a physical NIC to a virtual switch Unlink a physical NIC from a virtual switch Display virtual switch configuration Add a VMkernel port Display VMkernel ports Set the VMkernel port gateway Display the VMkernel default gateway Add a service console interface (vswif) Display service console interfaces esxcfg-nics l esxcfg-nics s speed d duplex vswitch_name esxcfg-vswitch a vswitch_name:#_ports esxcfg-vswitch c vswitch_name esxcfg-vswitch A portgroup_name vswitch_name esxcfg-vswitch C portgroup_name esxcfg-vswitch L vmnic# vswitch_name esxcfg-vswitch U vmnic# vswitch_name esxcfg-vswitch l esxcfg-vmknic a i IP_addr n netmask VMkernel_port_name esxcfg-vmknic l esxcfg-route gateway_IP_address esxcfg-route esxcfg-vswif a i IP_addr n netmask p sc_port_name vswif# esxcfg-vswif l
vmkiscsi-tool I l vmhba40 vmkiscsi-tool k l vmhba40 vmkiscsi-tool D a target_IP_address vmhba40 vmkiscsi-tool T l vmhba40 esxcfg-rescan vmhba40 vmkiscsi-tool L l vmhba40
Manage Datastores
List device file names associated with a servers LUNs Map VMFS volumes to their LUNs and vmhba name Create one or more partitions on a LUN Display the partition table for the specified LUN Create a VMFS volume Map label names with physical VMFS volumes Change the VMFS volume label Display VMFS volume metadata Extend a VMFS volume Remove a VMFS volume extent Display VMFS and service console filesystem usage esxcfg-vmhbadevs esxcfg-vmhbadevs -m fdisk device_file_name fdisk -l device_file_name vmkfstools C vmfs3 S VMFS_volume_label partition_address (vmhba#.#.#.#) ls l /vmfs/volumes ln sf /vmfs/volumes/UUID /vmfs/volumes/new_label_name vmkfstools P h /vmfs/volumes/volume_label vmkfstools Z VMFS_extent Recreate the VMFS volume vdf h name_of_existing_VMFS
Configure Services
Synchronize the VI Client to reflect command-line changes service mgmt-vmware restart
EDU-VI3DSA-JA2
EDU-VI3DSA-JA2