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

vmwareesxi6.5配置教程(VMwarevSphereESXi6.0常用命令)(1)

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

查看磁盘列表

vmwareesxi6.5配置教程(VMwarevSphereESXi6.0常用命令)(2)

  • 南京大屠杀在册幸存者表(南京大屠杀幸存者张惠霞去世)
  • 2024-05-29南京大屠杀幸存者张惠霞去世新京报讯据侵华日军南京大屠杀遇难同胞纪念馆官方微博消息,南京大屠杀幸存者张惠霞于2023年2月9日凌晨去世,享年94岁1937年南京大屠杀期间,张惠霞亲眼看着自己的爸爸和叔叔被日军带走,再也没有回来8。
  • 2022必看的几部电影(你看了几部电影)
  • 2024-05-29你看了几部电影愁云之下总有缝隙“电影市场未来的好与坏,真的是取决于内容本身”文|沈冀1上半年,李沐感觉自己的娱乐生活有了明显变化以前,像她这样生活在北京的年轻人,和朋友一起“早C晚A”、快意聚会,游泳健身、看片看展。
  • 我的世界里如何做高级农场(需要怎么做呢)
  • 2024-05-29需要怎么做呢我们先用泥土确定一个长8宽8的两个边然后将一个正方形区域做出来,并且中间同样用泥土填满然后再提高一格,同样用泥土做一个长8宽8的正方形区域同样填满再次提高一格,如法炮制,同样做长8宽8的正方形区域再提。
  • 快递包装如何改进才环保(快递包装盒换纸巾环保袋)
  • 2024-05-29快递包装盒换纸巾环保袋钱江晚报·小时新闻通讯员金烈航何彪裕今天(11月11日)下午,浙江省交通集团高速公路杭州南管理中心“蒲公英”志愿服务队开展“‘盒’你一起,以物换物”爱心延续志愿服务活动“一共15斤!”家住浴美施社区的。
  • 谢娜穿宽松衣搭配(谢娜原来也能这么)
  • 2024-05-29谢娜原来也能这么Hi大家好,我是何有强,几分钟带你分析综艺娱乐圈女明星穿搭技巧、好物种草、时尚观点的台前幕后的解读外出旅行,尤其是去沙漠,四周比较空旷,在拍游客照的时候,自然要以穿搭取胜挑选一些温柔或者亮眼的颜色,可。
  • 绝地求生僵尸版地图(植物大战僵尸版RNG)
  • 2024-05-29植物大战僵尸版RNG热血电竞,品味人生An妮游戏说为您播报,期待您的关注!1月10日,S10赛季已经正式上线!在新赛季开启后,LPL春季赛也随之到来在1月13日下午5点,春季赛常规赛正式开战经过5天紧张激烈的比赛后,iG。
  • 蒙面唱将猜猜猜蚊香(蒙面唱将猜猜猜4蚊香是谁)
  • 2024-05-29蒙面唱将猜猜猜4蚊香是谁蒙面唱将猜猜猜4蚊香是谁“蚊香”是詹雯婷,是飞儿组合的前成员飞,来自台湾,是一位实力派女歌手节目中第一期六位实力唱将震撼来袭,“辛巴想来取取经”“一起走花路吧”“二二二师兄”“蚊香”“胡桃夹子”,“哥。
  • 天猫总裁首谈双11(史上最大双11优惠来了)
  • 2024-05-29史上最大双11优惠来了他来了,他来了,他带着500亿迈着小步走来了历经10年的天猫双11,终于迎来了第11个年头不少资深网友早已端好小马扎,等待第11个天猫双11的“临幸”就在刚刚,2019天猫双11全球狂欢节启动发布会上。
  • edge浏览器对比ie(IE浏览器宣告退役)
  • 2024-05-29IE浏览器宣告退役在服役了近27年后,IE终究被放进了“科技史的垃圾箱”据外媒报道,微软公司15日宣布IE浏览器正式退役,其功能将由微软旗下的Edge浏览器接棒IE曾是全球使用最广泛的网页浏览器,在服役了近27年后,这。
  • iphone 7升级到ios 15.7(升级iOS11.3正式版之后)
  • 2024-05-29升级iOS11.3正式版之后iOS11.3正式版终于发布了,很多用着iPhone7以及更旧设备且已经升级iOS11的用户早已望眼欲穿,因为在iOS11.3正式版中加入了电池管理功能,同时允许设备在电量充足时按照峰值性能运行一起来。