vmwareesxi6.5配置教程(VMwarevSphereESXi6.0常用命令)
vmwareesxi6.5配置教程(VMwarevSphereESXi6.0常用命令)
2024-09-29 06:14:07  作者:拒绝死机  网址:https://m.xinb2b.cn/know/who164003.html


1、简介

VMware vSphere ESXi6.0常用命令使用,对于一些个人认为比较常用的命令进行总结,如果读者需要了解更多请访问VMware官网下载文档,链接如下:https://www.vmware.com/support/developer/vcli/。

ESXi命令行获取帮助的方法为<命令关键字 --help>,常用的命令一般都是以esxcli开头,如果忘记命令可以使用帮助:esxcli --help;输出如下:

[root@localhost:~] 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 stack on an ESX host.

sched VMKernel system properties and commands for configuring scheduling related functionality.

software Manage the ESXi software p_w_picpath and packages

storage VMware storage commands.

system VMKernel system properties and commands for configuring properties of the kernel core system and related system

services.

vm A small number of operations that allow a user to Control Virtual Machine operations.

vsan VMware Virtual SAN commands

2、常用命令

1)、vmware -v

查看系统版本,例子:

[root@localhost:~] vmware -v

VMware ESXi 6.0.0 build-3620759

2)、esxcli system version get

查看系统版本包括patch等信息,例子:

[root@localhost:~] esxcli system version get

Product: VMware ESXi

Version: 6.0.0

Build: Releasebuild-3620759

Update: 2

Patch: 34

3)、esxcli system time get

查看系统时间,例子:

[root@localhost:~] esxcli system time get

2016-09-13T02:02:39Z

4)、esxcli system time set

修改系统时间,例子:

Cmd options:

-d|--day= Day

-H|--hour= Hour

-m|--min= Minute

-M|--month= Month

-s|--sec= Second

-y|--year= Year

[root@localhost:~] esxcli system time set -y=2016 -M=9 -d=13 -H=10 -m=9

[root@localhost:~] esxcli system time get

2016-09-13T10:09:27Z

5)、esxcli system maintenanceMode set --enable true/false

ESXi主机进入/退出,维护模式,例子:

[root@localhost:~] esxcli system maintenanceMode set --enable true

[root@localhost:~] esxcli system maintenanceMode get //查看维护模式的状态

Enabled

[root@localhost:~] esxcli system maintenanceMode set --enable false

[root@localhost:~] esxcli system maintenanceMode get

Disabled

[root@localhost:~]

6)、esxcli system shutdown reboot/poweroff

系统重启/关机(必须处于维护模式,否则命令不生效)

7)、esxcli network ip interface ipv4 get

查看接口ipv4地址,例子:

[root@localhost:~] 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

查看路由表,例子:

[root@localhost:~] 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

查看ESXi主机网卡列表(nic)或up-link列表,例子:

[root@localhost:~] 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 Up 1000 Full 00:50:56:9d:bd:b7 1500 Intel Corporation 82574L Gigabit Network Connection

vmnic1 0000:0b:00.0 e1000e Up Up 1000 Full 00:50:56:9d:7c:7f 1500 Intel Corporation 82574L Gigabit Network Connection

10)、esxcli network nic down/up -n=vmnic1

关闭/打开vmnic1接口

11)、esxcli storage core device list

查看磁盘列表


  • 慕容复就是这么酷(温文尔雅亦正亦邪)
  • 2024-09-29温文尔雅亦正亦邪在演艺圈有两位张国强,一位是《士兵突击》的连长高城,另一位则是黄日华版《天龙八部》的慕容复今天我们就来一起看看香港TVB艺员张国强的演艺人生张国强,1956年出生于香港,排行老五,居住在古惑仔陈浩南管。
  • 哪吒奥斯卡出征(哪吒曝光冲击奥斯卡的海报)
  • 2024-09-29哪吒曝光冲击奥斯卡的海报2019年11月14日,《哪吒之魔童降世》曝光了最新冲击奥斯卡奖项的公关海报在海报中可以看得出来,此次《哪吒之魔童降世》将会报名两个奖项,分别是“最佳动画长片奖”和“最佳国际影片奖”两个奖项此次《哪吒。
  • 十二星座都有啥专属的电影(盘点十二星座本命电影)
  • 2024-09-29盘点十二星座本命电影十二星座本命电影之白羊座:《愤怒的公牛》“sowhat?白羊座的本命电影是一头牛,什么鬼?”看看!又冲动了不是?羊羊们先别打我,没有情绪波动的羊羊是绝对的阳光少男少女,但是!如果有谁激怒了羊羊,TA会。
  • 胁的读音是什么怎么组词
  • 2024-09-29胁的读音是什么怎么组词挟胁,威胁“胁”,现代汉语规范一级字(常用字),普通话读音为xié、jiā,最早见于说文小篆时代“挟”的基本含义为用胳膊夹着,如挟持引申含义为倚仗势力或抓住人的弱点强迫人服从,如挟制。
  • 如何养红掌才能活得更长(红掌其实很好养)
  • 2024-09-29红掌其实很好养今天花花要给大家介绍一种花,只要养护得当一年365天都能花开不断,而且红花和绿叶永不过时的搭配更是符合大部分花友的审美,这就是红掌养得好的红掌看上去就像假花一样,叶片非常油绿,花朵也红得特别鲜艳,摆在。
  • 新《粉红女郎》官宣(新粉红女郎将开播)
  • 2024-09-29新粉红女郎将开播女性群像剧是最近的大热门,网友们喜欢看个性独立鲜明的女主角,不喜欢看以前那种傻白甜、只会惹事情的女主角我国影视剧市场缺少一位好编剧,于是就有不少人翻拍经典老剧,有了《鹿鼎记》翻车的例子还不够,新版的《。
  • 旅拍vlog拍摄手法(旅拍Vlog手写效果)
  • 2024-09-29旅拍Vlog手写效果小黑今天教大家文字手写效果非常简单打开Premiere新建-标题之后输入Vlog然后对字幕标题进行嵌套之后效果栏搜索书写给字幕添加书写特效点开效果控件找到书写效果点击书写画面会出现一个锚点将他拖动开始。
  • 李煜为什么要一江春水向东流(恰似一江春水向东流)
  • 2024-09-29恰似一江春水向东流李煜是南唐最后一位国主,也是词作大家,正是在南唐风雨飘摇及至最终被北宋破城而入国破家亡时,他的词一改早期的浮华奢靡,变得沉郁悠远、浓愁悲切起来,这也使他终成一代词帝李煜写了很多首《虞美人》,流传最广、。
  • 正规的中等职业学校读什么专业好(职业学校吃香的专业)
  • 2024-09-29职业学校吃香的专业职业教育分为中职,高职和应用本科几个阶段职业教育的专业分类是很严谨的,按照教育部2012年职业教育专业目录来看,中职有机械制造,电子信息技术,农林,交通、旅游服务、财经商贸,艺术等16个大类,共200。