VMware vSphere ESXi6.0 Common commands

Source: Internet
Author: User
Tags fcoe

1. Introduction

VMware vSphere ESXi6.0 commonly used commands, for some individuals think more commonly used commands to summarize, if the reader needs to know more please visit the VMware official website Download the document, the link is as follows: https://www.vmware.com/support/ developer/vcli/.

The ESXi command line gets help for the < command keyword--HELP>, and commonly used commands usually start with ESXCLI, if you forget the command can use Help:esxcli--help; the output is as follows:

[Email protected]:~] ESXCLI--help

USAGE:ESXCLI [Options] {namespace}+ {cmd} [cmd options]

Options:

--formatter=formatter

Override the formatter to use for a given command. Available Formatter:xml, CSV, keyvalue

--debug Enable Debug or internal use options

--version Display version information for the script

-?,--Help Display usage information for the script

Available namespaces:

Device Device Manager Commands

Elxnet elxnet ESXCLI functionality

ESXCLI Commands that operate on the ESXCLI system itself allowing users to get additional information.

FCoE VMware FCoE commands.

Graphics VMware graphics commands.

Hardware VMKernel hardware properties and commands for configuring hardware.

iSCSI VMware iSCSI Commands.

Network Operations that pertain to the maintenance of networking on an ESX host. This includes a wide variety of

Commands to manipulate virtual networking components (vswitch, PortGroup, etc) as well as local host IP, DNS and

General host networking settings.

RDMA Operations that pertain to remote Direct memory access (RDMA) protocol stacks on an ESX host.

Sched VMKernel System Properties and commands for configuring scheduling related functionality.

Software Manage the ESXi software image and packages

Storage VMware Storage Commands.

System VMKernel System Properties and commands for configuring properties of the kernel core system and rel ated system

Services.

VM A small number of operations-a user to Control Virtual machine operations.

Vsan VMware Virtual SAN commands


2. Common commands

1), Vmware-v

To view the system version, example:

[Email protected]:~] Vmware-v

VMware ESXi 6.0.0 build-3620759


2), ESXCLI system version get

To view the system version including patch information, for example:

[[Email protected]:~] ESXCLI system version get

Product:vmware ESXi

version:6.0.0

build:releasebuild-3620759

Update:2

Patch:34


3), ESXCLI system time get

View system time, example:

[[Email protected]:~] ESXCLI system time get

2016-09-13t02:02:39z


4), ESXCLI system time set <options>

Modify the system time, example:

CMD options:

-d|--day=<long> Day

-h|--hour=<long> Hour

-m|--min=<long> Minute

-m|--month=<long> Month

-s|--sec=<long> Second

-y|--year=<long> year

[[Email protected]:~] ESXCLI system time set-y=2016-m=9-d=13-h=10-m=9

[[Email protected]:~] ESXCLI system time get

2016-09-13t10:09:27z


5), ESXCLI system Maintenancemode set--enable True/false

ESXi Host entry/exit, maintenance Mode, example:

[[Email protected]:~] ESXCLI system Maintenancemode Set--enable True

[[Email protected]:~] ESXCLI system Maintenancemode get//View status of Maintenance mode

Enabled

[[Email protected]:~] ESXCLI system Maintenancemode set--enable False

[[Email protected]:~] ESXCLI system Maintenancemode get

Disabled

[[Email protected]:~]


6), ESXCLI system shutdown Reboot/poweroff

System restart/shutdown (must be in maintenance mode, otherwise the command does not take effect)


7), ESXCLI network IP interface IPv4 get

View Interface IPv4 address, example:

[[Email protected]:~] ESXCLI Network IP interface IPv4 get

Name IPv4 address IPv4 Netmask IPv4 broadcast Address Type DHCP DNS

----  -------------  -------------  --------------  ------------  --------

Vmk0 10.1.98.165 255.255.255.0 10.1.98.255 STATIC false


8), ESXCLI network IP route IPv4 list

View the routing table, example:

[Email protected]:~] ESXCLI network IP route IPv4 list

Network Netmask Gateway Interface Source

-----------  -------------  -------------  ---------  ------

Default 0.0.0.0 10.1.98.254 vmk0 MANUAL

10.1.98.0 255.255.255.0 0.0.0.0 vmk0 MANUAL


9), ESXCLI network NIC List

To view an ESXi host network card list (NIC) or Up-link list, for example:

[[Email protected]:~] ESXCLI network NIC List

Name PCI Device Driver Admin status Link status Speed Duplex MAC Address MTU Description

------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  ------------------------- --------------------------

Vmnic0 0000:03:00.0 e1000e up to full 00:50:56:9d:bd:b7 Intel Corporation 82574L Gigabit Network Connection

Vmnic1 0000:0b:00.0 e1000e up to full 00:50:56:9d:7c:7f Intel Corporation 82574L Gigabit Network Connection


10), ESXCLI network Nic Down/up-n=vmnic1

Close/Open Vmnic1 interface


11), ESXCLI storage Core Device List

View a list of disks

This article is from "Love_ Yao" blog, please be sure to keep this source http://20161215.blog.51cto.com/2276215/1852260

VMware vSphere ESXi6.0 common 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.