{"id":19647,"date":"2017-07-31T06:03:12","date_gmt":"2017-07-30T22:03:12","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/07\/31\/vmware-vsphere-command-line-interface-vmware-cmd-vicfg\/"},"modified":"2021-03-18T17:25:06","modified_gmt":"2021-03-18T09:25:06","slug":"vmware-vsphere-command-line-interface-vmware-cmd-vicfg","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/07\/31\/vmware-vsphere-command-line-interface-vmware-cmd-vicfg\/","title":{"rendered":"VMware vSphere Command Line Interface &#8211; vmware-cmd &amp; vicfg-*"},"content":{"rendered":"<p>\u5e95\u4e0b\u5728 CentOS 7.x \u64cd\u4f5c <br \/><span style=\"color: #0000ff\">ESXi Server IP\uff1a192.168.131.234<\/span><\/p>\n<p>\u5217\u51fa ESXi Server \u4e0a\u7684\u865b\u64ec\u6a5f\u5668 <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">\/opt\/vmwarecli\/bin\/vmware-cmd -H 192.168.131.234 -l<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password:<\/span> <\/p>\n<p><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ob2d\/ob2d.vmx<\/span> <br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/Custom CentOS 7.x\/Custom CentOS 7.x.vmx<\/span> <br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/OpenNMS\/OpenNMS.vmx<\/span> <br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/Nginx\/Nginx.vmx<\/span> <br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/Ubuntu 16.04.2\/Ubuntu 16.04.2.vmx<\/span> <br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux\/ArchLinux.vmx<\/span> <br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/Windows 10 1607 14393.969\/Windows 10 1607 14393.969.vmx<\/span> <br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/Windows 10 x64 1607 Build 14393.0\/Windows 10 x64 1607 Build 14393.0.vmx<\/span> <\/p>\n<p>[@more@]\u5217\u51fa ESXi Server \u4e0a\u7684 VM \u8cc7\u8a0a <br \/>[root@esxi:~] <span style=\"color: #ff0000\">vim-cmd vmsvc\/getallvms<\/span> <br \/><span style=\"color: #0000ff\">Vmid Name File Guest OS Version Annotation<\/span> <br \/><span style=\"color: #0000ff\">1 OB2D Linux 2017 1.0 [ST500G] ob2d\/ob2d.vmx other26xLinux64Guest vmx-13<\/span> <br \/><span style=\"color: #0000ff\">2 Custom CentOS 7.x [ST500G] Custom CentOS 7.x\/Custom CentOS 7.x.vmx centos7_64Guest vmx-13<\/span> <br \/><span style=\"color: #0000ff\">21 OpenNMS [ST500G] OpenNMS\/OpenNMS.vmx centos7_64Guest vmx-13<\/span> <br \/><span style=\"color: #0000ff\">22 Nginx [ST500G] Nginx\/Nginx.vmx centos7_64Guest vmx-13<\/span> <br \/><span style=\"color: #0000ff\">24 Ubuntu 16.04.2 [ST500G] Ubuntu 16.04.2\/Ubuntu 16.04.2.vmx ubuntu64Guest vmx-13<\/span> <br \/><span style=\"color: #0000ff\">25 ArchLinux [ST500G] ArchLinux\/ArchLinux.vmx other26xLinux64Guest vmx-13<\/span> <br \/><span style=\"color: #0000ff\">26 Windows 10 1607 14393.969 [ST500G] Windows 10 1607 14393.969\/Windows 10 1607 14393.969.vmx windows9_64Guest vmx-13<\/span> <br \/><span style=\"color: #0000ff\">28 Windows 10 x64 1607 Build 14393.0 [ST500G] Windows 10 x64 1607 Build 14393.0\/Windows 10 x64 1607 Build 14393.0.vmx windows9_64Guest vmx-12<\/span> <\/p>\n<p>\u5217\u51fa\u67d0\u4e00\u90e8\u865b\u64ec\u6a5f\u5668\u6709\u7121\u505a\u904e snapshot\uff0c1 \u4ee3\u8868\u6709\u505a\u904e snapshot <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">\/opt\/vmwarecli\/bin\/vmware-cmd -H 192.168.131.234 \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ob2d\/ob2d.vmx hassnapshot<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password:<\/span> <br \/><span style=\"color: #0000ff\">hassnapshot () = 1<\/span> <\/p>\n<p>\u986f\u793a\u865b\u64ec\u6a5f\u5668\u662f\u5426\u6709\u958b\u6a5f off \u4ee3\u8868\u6c92\u6709\u958b\u6a5f <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">\/opt\/vmwarecli\/bin\/vmware-cmd -H 192.168.131.234 \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/Nginx\/Nginx.vmx getstate<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password:<\/span> <br \/><span style=\"color: #0000ff\">getstate() = off<\/span> <\/p>\n<p>\u986f\u793a\u865b\u64ec\u6a5f\u5668\u662f\u5426\u6709\u958b\u6a5f off \u4ee3\u8868\u6709\u958b\u6a5f <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">\/opt\/vmwarecli\/bin\/vmware-cmd -H 192.168.131.234 \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux\/ArchLinux.vmx getstate<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password:<\/span> <br \/><span style=\"color: #0000ff\">getstate() = on<\/span> <\/p>\n<p> \u50b3\u56de\u503c\uff1a<span style=\"color: #0000ff\">on<\/span>, <span style=\"color: #0000ff\">off<\/span>, <span style=\"color: #0000ff\">suspended<\/span>, or <span style=\"color: #0000ff\">unknown<\/span>.<\/p>\n<p>\u986f\u793a\u865b\u64ec\u6a5f\u5668\u958b\u6a5f\u7684\u6642\u9593 <br \/>[root@localhost ~]#<span style=\"color: #ff0000\"> \/opt\/vmwarecli\/bin\/vmware-cmd -H 192.168.131.234 \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux\/ArchLinux.vmx getuptime<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password:<\/span> <br \/><span style=\"color: #0000ff\">getuptime() = 82404<\/span> <\/p>\n<p>\u67e5\u8a62 ESXi Server \u7248\u672c\u8cc7\u8a0a<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">\/opt\/vmwarecli\/bin\/vmware-cmd -H 192.168.131.234 \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux\/ArchLinux.vmx getproductinfo product<\/span><br \/><span style=\"color: #0000ff\">Enter username<\/span>: <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">getproductinfo(product) = embeddedEsx<\/span><br \/>\u50b3\u56de\u503c <span style=\"color: #0000ff\">esx for VMware ESX<\/span>, <span style=\"color: #0000ff\">embeddedESX for VMware ESXi<\/span>, or <span style=\"color: #0000ff\">unknown<\/span>.<\/p>\n<p>\u67e5\u8a62\u5b89\u88dd\u7684 VM \u5b89\u88dd\u5e73\u53f0<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">\/opt\/vmwarecli\/bin\/vmware-cmd -H 192.168.131.234 \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux\/ArchLinux.vmx getproductinfo platform<\/span><br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">getproductinfo(platform) = vmnix-x86<\/span><br \/>\u50b3\u56de\u503c <span style=\"color: #0000ff\">win32-x86 for an x86-based Windows system<\/span>, <span style=\"color: #0000ff\">linux-x86 for an x86-based Linux system<\/span>, or <span style=\"color: #0000ff\">vmnix-x86 for an x86-based ESXi microkernel<\/span>.<\/p>\n<p>\u6aa2\u67e5 VM \u662f\u5426\u6709\u5b89\u88dd VMware Tools<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">\/opt\/vmwarecli\/bin\/vmware-cmd -H 192.168.131.234 \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux\/ArchLinux.vmx gettoolslastactive<\/span><br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">gettoolslastactive() = 1<\/span><br \/>\u50b3\u56de\u503c<br \/><span style=\"color: #0000ff\">0 \u2013 VMware Tools is not installed or not running.<\/span><br \/><span style=\"color: #0000ff\">1 \u2013 Guest operating system is responding normally.<\/span><br \/><span style=\"color: #0000ff\">5 \u2013 Intermittent heartbeat. There might be a problem with the guest operating system.<\/span><br \/><span style=\"color: #0000ff\">100 \u2013 No heartbeat. Guest operating system might have stopped responding.<\/span><\/p>\n<p>\u5c07 VM \u95dc\u6a5f<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vmware-cmd -H 192.168.131.234<\/span> <span style=\"color: #ff0000\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux stop soft<\/span><\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">vmware-cmd -H 192.168.131.234<\/span> <span style=\"color: #ff0000\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux start soft<\/p>\n<p><\/span>[root@localhost ~]# <span style=\"color: #ff0000\">vmware-cmd -H 192.168.131.234<\/span> <span style=\"color: #ff0000\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux reset soft<\/p>\n<p><\/span>[root@localhost ~]# <span style=\"color: #ff0000\">vmware-cmd -H 192.168.131.234<\/span> <span style=\"color: #ff0000\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux suspend hard<\/p>\n<p><\/span>[root@localhost ~]# <span style=\"color: #ff0000\">vmware-cmd -H 192.168.131.234<\/span> <span style=\"color: #ff0000\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux suspend soft<\/span><\/p>\n<p>\u5efa\u7acb Snapshot \u5feb\u7167<br \/>quiesce flag (0 or 1) and memory flag (0 or 1).<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vmware-cmd -H 192.168.131.234<\/span> <span style=\"color: #ff0000\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux createsnapshot ArchLinuxOK &#8216;ArchLinux OK 2017.04.01&#8217; 0 0<\/span><\/p>\n<p>\u9084\u539f\u5feb\u7167<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vmware-cmd -H 192.168.131.234<\/span> <span style=\"color: #ff0000\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux revertsnapshot<\/p>\n<p><\/span>\u522a\u9664\u5feb\u7167<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vmware-cmd -H 192.168.131.234<\/span> <span style=\"color: #ff0000\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux removesnapshots<\/span><\/p>\n<p>\u67e5\u8a62 DNS Server \u8a2d\u5b9a<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-dns &#8211;server 192.168.131.234<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password: <\/span><br \/><span style=\"color: #0000ff\">DNS Configuration <\/span><\/p>\n<p><span style=\"color: #0000ff\">Host Name esxi <\/span><br \/><span style=\"color: #0000ff\">Domain Name test.ilc.edu.tw <\/span><br \/><span style=\"color: #0000ff\">DHCP false <\/span><br \/><span style=\"color: #0000ff\">DNS Servers <\/span><br \/><span style=\"color: #0000ff\">140.111.66.10 <\/span><br \/><span style=\"color: #0000ff\">168.95.1.1<\/span> <\/p>\n<p>\u5c07 VMware ESXi Server \u95dc\u6a5f <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-hostops &#8211;server 192.168.131.234 &#8211;operation shutdown &#8211;force<\/span> <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-hostops &#8211;server 192.168.131.234 &#8211;operation shutdown<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password: <\/span><br \/><span style=\"color: #0000ff\">Host esxi.localdomain shutdown successfully.<\/span> <\/p>\n<p>\u5c07 VMware ESXi Server \u91cd\u65b0\u555f\u52d5 <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-hostops &#8211;server 192.168.131.234 &#8211;operation reboot &#8211;force<\/span> <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-hostops &#8211;server 192.168.131.234 &#8211;operation reboot<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password: <\/span><br \/><span style=\"color: #0000ff\">Host esxi.localdomain rebooted successfully.<\/span> <\/p>\n<p>\u986f\u793a VMware ESXi Server \u8cc7\u8a0a <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-hostops &#8211;server 192.168.131.234 &#8211;operation info<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password: <\/span><\/p>\n<p><span style=\"color: #0000ff\">Host Name : esxi.localdomain <\/span><br \/><span style=\"color: #0000ff\">Manufacturer : VMware, Inc. <\/span><br \/><span style=\"color: #0000ff\">Model : VMware Virtual Platform <\/span><br \/><span style=\"color: #0000ff\">Processor Type : Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz <\/span><br \/><span style=\"color: #0000ff\">CPU Cores : 2 CPUs x 3300 GHz <\/span><br \/><span style=\"color: #0000ff\">Memory Capacity : 4095.48828125 MB <\/span><br \/><span style=\"color: #0000ff\">VMotion Enabled : no <\/span><br \/><span style=\"color: #0000ff\">In Maintenance Mode : no <\/span><br \/><span style=\"color: #0000ff\">Last Boot Time : 2017-03-29T07:05:37.890796Z<\/span> <\/p>\n<p> \u9032\u5165\u7dad\u8b77\u6a21\u5f0f<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-hostops &#8211;server 192.168.131.234 &#8211;operation enter<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password: <\/span><br \/><span style=\"color: #0000ff\">Host esxi.localdomain entered into maintenance mode successfully.<\/span> <br \/> <a id=\"res_3802742\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3802742.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3802742.png\" border=\"0\" alt=\"\" \/> <\/a> <\/p>\n<p>\u9000\u51fa\u7dad\u8b77\u6a21\u5f0f<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-hostops &#8211;server 192.168.131.234 &#8211;operation exit<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password: <\/span><br \/><span style=\"color: #0000ff\">Host esxi.localdomain exited from maintenance mode successfully.<\/span> <br \/> <a id=\"res_3802741\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3802741.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3802741.png\" border=\"0\" alt=\"\" \/> <\/a> <br \/> \u986f\u793a\u548c\u8a2d\u7f6e\u4e00\u53f0\u4e3b\u6a5f\u5f9e\u6240\u6709\u8def\u5f91\u5230\u9054\u5b83\u7684\u5132\u5b58\u8a2d\u5099<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-mpath &#8211;server 192.168.131.234 &#8211;list<\/span> <br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span> <br \/><span style=\"color: #0000ff\">Enter password: <\/span><br \/><span style=\"color: #0000ff\">vmhba0:C0:T5:L0 <\/span><br \/><span style=\"color: #0000ff\">Runtime Name: vmhba0:C0:T5:L0 <\/span><br \/><span style=\"color: #0000ff\">Device: vmhba0:C0:T5:L0 <\/span><br \/><span style=\"color: #0000ff\">Device Display Name: <\/span><br \/><span style=\"color: #0000ff\">Adapter: vmhba0 Channel: 0 Target: 5 LUN: 0 <\/span><br \/><span style=\"color: #0000ff\">Adapter Identifier: sata.vmhba0 <\/span><br \/><span style=\"color: #0000ff\">Target Identifier: sata.0:5 <\/span><br \/><span style=\"color: #0000ff\">Plugin: NMP <\/span><br \/><span style=\"color: #0000ff\">State: active <\/span><br \/><span style=\"color: #0000ff\">Transport: sata <\/span><\/p>\n<p><span style=\"color: #0000ff\">vmhba1:C0:T0:L0 <\/span><br \/><span style=\"color: #0000ff\">Runtime Name: vmhba1:C0:T0:L0 <\/span><br \/><span style=\"color: #0000ff\">Device: vmhba1:C0:T0:L0 <\/span><br \/><span style=\"color: #0000ff\">Device Display Name: <\/span><br \/><span style=\"color: #0000ff\">Adapter: vmhba1 Channel: 0 Target: 0 LUN: 0 <\/span><br \/><span style=\"color: #0000ff\">Adapter Identifier: sata.vmhba1 <\/span><br \/><span style=\"color: #0000ff\">Target Identifier: sata.0:0 <\/span><br \/><span style=\"color: #0000ff\">Plugin: NMP <\/span><br \/><span style=\"color: #0000ff\">State: active <\/span><br \/><span style=\"color: #0000ff\">Transport: sata<\/span><\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-nas &#8211;server 192.168.131.234 -l<\/span><br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">SynologyNAS is \/volume1\/homes\/test\/Server\/esxi from 192.168.231.4 mounted<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli storage nfs list<\/span> <br \/><span style=\"color: #0000ff\">Volume Name Host Share Accessible Mounted Read-Only isPE Hardware Acceleration <\/span><br \/><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;&#8212; &#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; <\/span><br \/><span style=\"color: #0000ff\">SynologyNAS 192.168.131.4 \/volume1\/homes\/test\/Server\/esxi true true false false Not Supported<\/span> <\/p>\n<p>\u5217\u51fa\u4f7f\u7528\u8005<br \/> [root@localhost ~]# <span style=\"color: #ff0000\">vicfg-user &#8211;server 192.168.131.234 -e user -o list<\/span><br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">USERS<\/span><br \/><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><br \/><span style=\"color: #0000ff\">Principal -: root<\/span><br \/><span style=\"color: #0000ff\">Full Name -: Administrator<\/span><br \/><span style=\"color: #0000ff\">UID -: 0<\/span><br \/><span style=\"color: #0000ff\">Shell Access -:1<\/span><\/p>\n<p><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><br \/><span style=\"color: #0000ff\">Principal -: dcui<\/span><br \/><span style=\"color: #0000ff\">Full Name -: DCUI User<\/span><br \/><span style=\"color: #0000ff\">UID -: 100<\/span><br \/><span style=\"color: #0000ff\">Shell Access -:0<\/span><\/p>\n<p><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><br \/><span style=\"color: #0000ff\">Principal -: vpxuser<\/span><br \/><span style=\"color: #0000ff\">Full Name -: VMware VirtualCenter administration account<\/span><br \/><span style=\"color: #0000ff\">UID -: 500<\/span><br \/><span style=\"color: #0000ff\">Shell Access -:0<\/span><\/p>\n<p><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p>\u589e\u52a0\u4e00\u500b\u65b0\u7684\u4f7f\u7528\u8005<br \/><span style=\"color: #0000ff\"><span style=\"color: #000000\">[root@localhost ~]#<\/span> <span style=\"color: #ff0000\">vicfg-user &#8211;server 192.168.131.234 -e user -o add -l user27 -p 27_password<\/span><\/span><br \/><span style=\"color: #0000ff\">Enter username<\/span>: <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">Created user user27 successfully.<\/span><\/p>\n<p>\u4fee\u6539\u4f7f\u7528\u8005\u5bc6\u78bc<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-user &#8211;server 192.168.131.234 -e user -o modify -l user27 -p 27_password2<\/span><br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">Updated user user27 successfully.<\/span><\/p>\n<p>\u5c07\u4f7f\u7528\u8005\u6539\u6210\u552f\u8b80<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-user &#8211;server 192.168.131.234 -e user -o modify -l user27 &#8211;role read-only<\/span><br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">Do you want to change the password (y\/n):<\/span> <span style=\"color: #ff0000\">n<\/span><br \/><span style=\"color: #0000ff\">Updated user user27 successfully.<\/span><\/p>\n<p>\u522a\u9664\u4f7f\u7528\u8005 <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-user &#8211;server 192.168.131.234 -e user -o delete -l user27<\/span><br \/><span style=\"color: #0000ff\">Enter username:<\/span> <span style=\"color: #ff0000\">root<\/span><br \/><span style=\"color: #0000ff\">Enter password:<\/span><br \/><span style=\"color: #0000ff\">Removed the user user27 successfully.<\/p>\n<p><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e95\u4e0b\u5728 CentOS 7.x \u64cd\u4f5c ESXi Server IP\uff1a192.168.131.234 \u5217\u51fa ESX &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/07\/31\/vmware-vsphere-command-line-interface-vmware-cmd-vicfg\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008VMware vSphere Command Line Interface &#8211; vmware-cmd &amp; vicfg-*\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[197],"tags":[],"class_list":["post-19647","post","type-post","status-publish","format-standard","hentry","category-c-105209"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["689859"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19647"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=19647"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19647\/revisions"}],"predecessor-version":[{"id":21148,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19647\/revisions\/21148"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}