VMware ESX Commands

Source: Internet
Author: User
Tags ssh port

VMware ESX Commands

1. Look at your ESX version.

Vmware–v

2. View display ESX hardware, kernel, storage, network and other information

Esxcfg-info-a (Show all relevant information)

ESXCFG-INFO-W (displays hardware information on ESX)

3. List services known to ESX

Esxcfg-firewall–s

4. View the specific service situation

Esxcfg-firewall-q sshclinet

5. Restart VMware Services

Service Mgmt-vmware Restart

6. Change the root password

passwd Root

7. Set Kernel advanced options

esxcfg-advcfg-d (Restore the system kernel to its default value)

8. Managing Resource Groups

Esxcfg-resgrp-l (Show all resource groups)

9. List your current virtual switches

Esxcfg-vswitch-l

Esxcfg-vswitch-v 10-p "Serviceconsole" VSwitch0 (the service console on the vSwitch0 is divided into VLAN 10, VLAN is not set if VLAN number is 0)

10. View the settings of the console

Esxcfg-vswif-l (List of added network cards)

Esxcfg-vswif-a (add NIC)

11. List the network card of the system

Esxcfg-nics–l

12. Add a virtual switch named (internal) connected to two physical network cards (restart the service, vi can see)

Esxcfg-vswitch-a VSwitch1

Esxcfg-vswitch-a Internal VSwitch1

Esxcfg-vswitch-l Vmnic1 VSwitch1

Esxcfg-vswitch-l Vmnic2 VSwitch1

13. Delete the switch, (note, do not remove the console switch)

Esxcfg-vswitch-d VSwitch1

14. Remove the NIC on the switch

Esxcfg-vswitch-u Vmnic1 VSWITCH2

15. Delete PortGroup

esxcfg-vswitch-d Internel Vswitch1

16. Create Vmkernel switch, if you want to use these features of VMOTION,ISCSI, you must create (usually do not need to add a gateway)

Esxcfg-vswitch-l

Esxcfg-vswitch-a VSWITCH2

Esxcfg-vswitch-a "VM kernel" VSWITCH2

Esxcfg-vswitch-l vmnic3 VSWITCH2

Esxcfg-vmknic-a "VM kernel"-i172.16.1.141-n 255.255.252.0 (Add a Vmkernel)

17. Firewall settings

ESXCFG-FIREWALL-E sshclient (open firewall SSH port)

Esxcfg-firewall-d sshclient (Close firewall ssh port)

ESXCFG-FIREWALL-E Veritasnetbackup (Veritas NetBackup Service allowed)

Esxcfg-firewall-o 123,UDP,OUT,NTP (123 port output in UDP protocol open for NTP service)

18. Routing Management

Esxcfg-route (routing management for VM Generation network cards)

Esxcfg-route (Show routing table)

Esxcfg-route 172.16.0.254 (set Vmkernel Gateway)

19. Create a console

Esxcfg-vswitch-a VSwitch0

Esxcfg-vswitch-a "Service Console" VSwitch0

Esxcfg-vswitch-l vmnic0 VSwitch0

Esxcfg-vswif-a vswif0-p "Serviceconsole"-I 172.16.1.140-n 255.255.252.0

20. Add a NAS device (a tag,-O, is the name of the NAS server or ip,-s is the shared name of the NAS input)

Esxcfg-nas-a Isos-o nas.vmwar.cn-s ISOs

21.nas Connection Management

Esxcfg-nas-r (forcing ESX to connect to NAS server)

Esxcfg-nas-l (use Esxcfg-nas-l to see the results)

Esxcfg-nas-a (add NAS file system to/vmfs directory)

esxcfg-nas-d (delete nas file system)

22. Scan LUN information on SCSI devices

Esxcfg-rescan <vmkernel SCSI Adapter name>

23. Connecting iSCSI devices (e:enable Q: Query D, disable S: Forced search)

Esxcfg-swiscsi-e

24. Set Targetip

Vmkiscsi-tool-d-a 172.16.1.133 vmhba40

25. List the connection to target

Vmkiscsi-tool-l-T Vmhba40

26. List the current disk

Ls-l/vmfs/devices/disks

27. Kernel Dump management tool

Esxcfg-dumppart-l (show current dump partition configuration information)

28. Path Management

Esxcfg-mpath-l (Show all Paths)

Esxcfg-mpath-a (Show all HBA cards)

29.ESX Authorization Management configuration

Esxcfg-auth

Esxcfg-auth--enablenis (running NIS authentication)

30. Manage Startup devices

Esxcfg-boot

Esxcfg-boot-b (update boot device)

31. Perform INITRD initialization settings

Esxcfg-init

Esxcfg-init (Initialize device)

32.esxcfg-linuxnet (in Linux debug mode, the conversion vswif device is named as the ETH naming rule that comes with Linux)

Esxcfg-linuxnet--setup

33. Upgrade

Esxcfg-upgrade (esx2.x upgrade to esx3.x)

This article is from the "Xianyunyehe" blog, make sure to keep this source http://228110.blog.51cto.com/218110/1589643

VMware ESX Commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.