{"id":19649,"date":"2017-08-02T06:34:03","date_gmt":"2017-08-01T22:34:03","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/08\/02\/vmware-vsphere-command-line-interface-esxcli-vim-cmd\/"},"modified":"2021-03-18T17:25:06","modified_gmt":"2021-03-18T09:25:06","slug":"vmware-vsphere-command-line-interface-esxcli-vim-cmd","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/08\/02\/vmware-vsphere-command-line-interface-esxcli-vim-cmd\/","title":{"rendered":"VMware vSphere Command Line Interface &#8211; esxcli &amp; vim-cmd"},"content":{"rendered":"<p>\u53c3\u8003\u7db2\u9801\uff1a<br \/><a href=\"http:\/\/www.ntueees.tp.edu.tw\/wordpress\/?p=1488\" target=\"_blank\" rel=\"noopener noreferrer\">\u4ee5esxi5 command line\u65b9\u5f0f\u555f\u52d5VM | \u8cc7\u8a0a\u7d44<\/a><br \/><a href=\"https:\/\/hack.idv.tw\/wordpress\/?p=4948\" target=\"_blank\" rel=\"noopener noreferrer\">VMWare ESX\/ESXi CLI\u6a21\u5f0f\u5e38\u7528\u6307\u4ee4 | Tonyhack<\/a><\/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>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 storage nfs list<\/span> <br \/><span style=\"color: #0000ff\">Connect to 192.168.131.4 failed. Server SHA-1 thumbprint: 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 (not trusted).<\/span> <\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 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> [@more@]<br \/>[root@esxi:~] e<span style=\"color: #ff0000\">sxcli storage filesystem list<\/span> <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 storage filesystem list<\/span> <br \/><span style=\"color: #0000ff\">Mount Point Volume Name UUID Mounted Type Size Free <\/span><br \/><span style=\"color: #0000ff\">&#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;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;- &#8212;&#8212; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;- <\/span><br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/75b5d24a-74d26ae7 SynologyNAS 75b5d24a-74d26ae7 true NFS 5892709236736 2628361314304 <\/span><br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7115-fa3ce98b-c6a7-ac220b89c4ca datastore1 58cf7115-fa3ce98b-c6a7-ac220b89c4ca true VMFS-5 119990648832 118971432960 <\/span><br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca ST500G 58cf7810-bde83e8a-457c-ac220b89c4ca true VMFS-5 499826819072 372961705984 <\/span><br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7105-aa6028b9-3b61-ac220b89c4ca 58cf7105-aa6028b9-3b61-ac220b89c4ca true vfat 299712512 83927040 <\/span><br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/58cf7115-1fb5970a-817d-ac220b89c4ca 58cf7115-1fb5970a-817d-ac220b89c4ca true vfat 4293591040 4278255616 <\/span><br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/01e19870-f6a57a2a-ef43-8a0ec55b7d60 01e19870-f6a57a2a-ef43-8a0ec55b7d60 true vfat 261853184 261844992 <\/span><br \/><span style=\"color: #0000ff\">\/vmfs\/volumes\/4f70f378-d547f85f-a7d0-bb87da3f428b 4f70f378-d547f85f-a7d0-bb87da3f428b true vfat 261853184 111271936<\/span> <\/p>\n<p>\u5217\u51fa\u76ee\u524d\u6709\u958b\u6a5f\u7684 VM <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 vm process list<\/span> <br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxcli vm process list<\/span> <br \/><span style=\"color: #0000ff\">ArchLinux <\/span><br \/><span style=\"color: #0000ff\"> World ID: 170247 <\/span><br \/><span style=\"color: #0000ff\"> Process ID: 0 <\/span><br \/><span style=\"color: #0000ff\"> VMX Cartel ID: 170246 <\/span><br \/><span style=\"color: #0000ff\"> UUID: 56 4d ee c4 34 b0 7b 76-5b 7a 64 fc a1 02 b8 97 <\/span><br \/><span style=\"color: #0000ff\"> Display Name: ArchLinux <\/span><br \/><span style=\"color: #0000ff\"> Config File: \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ArchLinux\/ArchLinux.vmx <\/span><\/p>\n<p><span style=\"color: #0000ff\">OB2D Linux 2017 1.0 <\/span><br \/><span style=\"color: #0000ff\"> World ID: 170391 <\/span><br \/><span style=\"color: #0000ff\"> Process ID: 0 <\/span><br \/><span style=\"color: #0000ff\"> VMX Cartel ID: 170390 <\/span><br \/><span style=\"color: #0000ff\"> UUID: 56 4d ff d9 24 d7 09 68-60 03 51 55 23 d1 f8 42 <\/span><br \/><span style=\"color: #0000ff\"> Display Name: OB2D Linux 2017 1.0 <\/span><br \/><span style=\"color: #0000ff\"> Config File: \/vmfs\/volumes\/58cf7810-bde83e8a-457c-ac220b89c4ca\/ob2d\/ob2d.vmx<\/span> <\/p>\n<p>\u95dc\u9589\u67d0\u4e00\u53f0 VM <br \/><span style=\"color: #0000ff\">esxcli vm process kill &#8211;tyep=[soft,hard,force] &#8211;world-id=World ID<\/span><br \/>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 vm process kill &#8211;type=soft &#8211;world-id=170391<\/span> <br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxcli vm process kill &#8211;type=soft &#8211;world-id=170391<\/span> <\/p>\n<p>\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>\u958b\u555f OB2D Linux 2017 1.0 <br \/># <span style=\"color: #ff0000\">vim-cmd vmsvc\/power.on 1<\/span> <br \/><span style=\"color: #0000ff\">Powering on VM:<\/span> <\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">vim-cmd \/vmsvc\/power.getstate 1<\/span><br \/><span style=\"color: #0000ff\">Retrieved runtime info<\/span><br \/><span style=\"color: #0000ff\">Powered on<\/span><\/p>\n<p>\u95dc\u9589 OB2D Linux 2017 1.0 <br \/>[root@esxi:~] <span style=\"color: #ff0000\">vim-cmd vmsvc\/power.off 1<\/span> <\/p>\n<p><span style=\"color: #0000ff\">Powering off VM:<\/span> <\/p>\n<p>\u91cd\u65b0\u555f\u52d5 OB2D Linux 2017 1.0 <br \/>[root@esxi:~] <span style=\"color: #ff0000\">vim-cmd vmsvc\/power.reboot 1<\/span> <\/p>\n<p>\u9032\u5165\u7dad\u8b77\u6a21\u5f0f <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 system maintenanceMode set &#8211;enable true<\/span> <br \/><span style=\"color: #0000ff\">Connect to 192.168.131.234 failed. Server SHA-1 thumbprint: 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 (not trusted).<\/span> <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system maintenanceMode set &#8211;enable true<\/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>[root@esxi:~] <span style=\"color: #ff0000\">esxcli system maintenanceMode set &#8211;enable true<\/span><\/p>\n<p>[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> <\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">vim-cmd hostsvc\/maintenance_mode_enter<\/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\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system maintenanceMode set &#8211;enable false<\/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>[root@esxi:~] <span style=\"color: #ff0000\">esxcli system maintenanceMode set &#8211;enable <\/span><span style=\"color: #ff0000\">false<\/span><\/p>\n<p>[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> <\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">vim-cmd hostsvc\/maintenance_mode_exit<\/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> <\/p>\n<p>\u5c07\u7279\u5b9a vmid \u7684 vm \u81ea\u78c1\u789f\u4e2d\u522a\u9664\uff0c\u4e0d\u6703\u505a\u4efb\u4f55\u78ba\u8a8d\uff0c\u8acb\u5c0f\u5fc3\u4f7f\u7528<br \/>\u539f\u672c\u6709<span style=\"color: #ff0000\"> 8<\/span> \u53f0 VM<br \/><a id=\"res_3803848\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3803848.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3803848.png\" border=\"0\" alt=\"\" \/><\/a><br \/>[root@esxi:~] <span style=\"color: #ff0000\">vim-cmd vmsvc\/destroy 28<\/span><br \/>\u522a\u9664\u5f8c\u5269\u4e0b <span style=\"color: #ff0000\">7<\/span> \u53f0<br \/><a id=\"res_3803847\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3803847.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3803847.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p>\u5217\u51fa ESXi Server \u7db2\u8def\u76f8\u95dc\u8cc7\u8a0a<br \/> [root@esxi:~] <span style=\"color: #ff0000\">vim-cmd hostsvc\/net\/info<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network ip interface ipv4 address list<\/span><br \/><span style=\"color: #0000ff\">Name\u00a0 IPv4 Address\u00a0\u00a0 IPv4 Netmask\u00a0\u00a0 IPv4 Broadcast\u00a0 Address Type\u00a0 Gateway\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DHCP DNS<\/span><br \/><span style=\"color: #0000ff\">&#8212;-\u00a0 &#8212;&#8212;&#8212;&#8212;-\u00a0 &#8212;&#8212;&#8212;&#8212;-\u00a0 &#8212;&#8212;&#8212;&#8212;&#8211;\u00a0 &#8212;&#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8211;\u00a0 &#8212;&#8212;&#8211;<\/span><br \/><span style=\"color: #0000ff\">vmk0\u00a0 192.168.131.234\u00a0 255.255.255.0\u00a0 192.168.131.255\u00a0 STATIC\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 192.168.131.254\u00a0\u00a0\u00a0\u00a0 false<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network ip interface ipv6 address list<\/span><br \/><span style=\"color: #0000ff\">Interface\u00a0 Address\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Netmask\u00a0 Type\u00a0\u00a0\u00a0 Status<\/span><br \/><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;-\u00a0 &#8212;&#8212;\u00a0 &#8212;&#8212;&#8212;<\/span><br \/><span style=\"color: #0000ff\">vmk0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fe80::ae22:bff:fe89:c4ca\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 64\u00a0 STATIC\u00a0 PREFERRED<\/span><br \/><span style=\"color: #0000ff\">vmk0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2001:288:a229:4::234 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 64\u00a0 STATIC\u00a0 PREFERRED<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network ip interface ipv4 get<\/span><br \/><span style=\"color: #0000ff\">Name\u00a0 IPv4 Address\u00a0\u00a0 IPv4 Netmask\u00a0\u00a0 IPv4 Broadcast\u00a0 Address Type\u00a0 Gateway\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DHCP DNS<\/span><br \/><span style=\"color: #0000ff\">&#8212;-\u00a0 &#8212;&#8212;&#8212;&#8212;-\u00a0 &#8212;&#8212;&#8212;&#8212;-\u00a0 &#8212;&#8212;&#8212;&#8212;&#8211;\u00a0 &#8212;&#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8211;\u00a0 &#8212;&#8212;&#8211;<\/span><br \/><span style=\"color: #0000ff\">vmk0\u00a0 192.168.131.234\u00a0 255.255.255.0\u00a0 192.168.131.255\u00a0 STATIC\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 192.168.131.254\u00a0\u00a0\u00a0\u00a0 false<\/span><br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network ip interface ipv6 get<\/span><br \/><span style=\"color: #0000ff\">Name\u00a0 IPV6 Enabled\u00a0 DHCPv6 Enabled\u00a0 Router Adv Enabled\u00a0 DHCP DNS\u00a0 Gateway<\/span><br \/><span style=\"color: #0000ff\">&#8212;-\u00a0 &#8212;&#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8211;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;&#8211;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><br \/><span style=\"color: #0000ff\">vmk0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 true\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 false\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 false\u00a0\u00a0\u00a0\u00a0 false\u00a0 2001:288:a229:1::ffff<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network vm list<\/span><br \/><span style=\"color: #0000ff\">World ID\u00a0 Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Num Ports\u00a0 Networks<\/span><br \/><span style=\"color: #0000ff\">&#8212;&#8212;&#8211;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u00a0 &#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;&#8212;-<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 75113\u00a0 Windows_10_1607_14393.0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0 VM Network<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 74293\u00a0 OB2D_Linux_2017_1.0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0 VM Network<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 67872\u00a0 ArchLinux\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0 VM Network<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network vm port list -w 74293<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Port ID: 33554439<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 vSwitch: vSwitch0<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Portgroup: VM Network<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 DVPort ID:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 MAC Address: 00:0c:29:d1:f8:42<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 IP Address: 0.0.0.0<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Team Uplink: vmnic0<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Uplink Port ID: 33554434<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Active Filters:<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network port stats get -p 33554434<\/span><br \/><span style=\"color: #0000ff\">Packet statistics for port 33554434<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Packets received: 1426447<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Packets sent: 106420<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Bytes received: 465858786<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Bytes sent: 25293372<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Broadcast packets received: 684895<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Broadcast packets sent: 91<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Multicast packets received: 591189<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Multicast packets sent: 302<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Unicast packets received: 150363<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Unicast packets sent: 106027<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Receive packets dropped: 0<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Transmit packets dropped: 13<\/span><\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system module 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\">Name Is Loaded Is Enabled <\/span><br \/><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;- <\/span><br \/><span style=\"color: #0000ff\">vmkernel true true <\/span><br \/><span style=\"color: #0000ff\">chardevs true true <\/span><br \/><span style=\"color: #0000ff\">user true true <\/span><br \/><span style=\"color: #0000ff\">crypto true true <\/span><br \/><span style=\"color: #0000ff\">vsanapi true true <\/span><br \/><span style=\"color: #0000ff\">vsanbase true true <\/span><br \/><span style=\"color: #0000ff\">vprobe true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_mgmt true true <\/span><br \/><span style=\"color: #0000ff\">procfs true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_2_0_0_mgmt_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_3_0_0_mgmt_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_1_0_0_vmkernel_shim true true <\/span><br \/><span style=\"color: #0000ff\">iodm true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_3_0_0_vmkernel_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_2_0_0_vmkernel_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkata true true <\/span><br \/><span style=\"color: #0000ff\">iscsi_trans true true <\/span><br \/><span style=\"color: #0000ff\">iscsi_trans_compat_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_3_0_0_vmklinux_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkplexer true true <\/span><br \/><span style=\"color: #0000ff\">vmklinux_9 true true <\/span><br \/><span style=\"color: #0000ff\">vmkusb true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_2_0_0_iscsiInc_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_3_0_0_iscsiInc_shim true true <\/span><br \/><span style=\"color: #0000ff\">etherswitch true true <\/span><br \/><span style=\"color: #0000ff\">netsched_fifo true true <\/span><br \/><span style=\"color: #0000ff\">netsched_hclk true true <\/span><br \/><span style=\"color: #0000ff\">netioc true true <\/span><br \/><span style=\"color: #0000ff\">vmklinux_9_2_3_0 true true <\/span><br \/><span style=\"color: #0000ff\">cnic_register true true <\/span><br \/><span style=\"color: #0000ff\">e1000 true true <\/span><br \/><span style=\"color: #0000ff\">dm true true <\/span><br \/><span style=\"color: #0000ff\">nmp true true <\/span><br \/><span style=\"color: #0000ff\">vmw_satp_local true true <\/span><br \/><span style=\"color: #0000ff\">vmw_satp_default_aa true true <\/span><br \/><span style=\"color: #0000ff\">vmw_psp_lib true true <\/span><br \/><span style=\"color: #0000ff\">vmw_psp_fixed true true <\/span><br \/><span style=\"color: #0000ff\">vmw_psp_rr true true <\/span><br \/><span style=\"color: #0000ff\">vmw_psp_mru true true <\/span><br \/><span style=\"color: #0000ff\">healthchk true true <\/span><br \/><span style=\"color: #0000ff\">teamcheck true true <\/span><br \/><span style=\"color: #0000ff\">vlanmtucheck true true <\/span><br \/><span style=\"color: #0000ff\">heartbeat true true <\/span><br \/><span style=\"color: #0000ff\">shaper true true <\/span><br \/><span style=\"color: #0000ff\">lldp true true <\/span><br \/><span style=\"color: #0000ff\">cdp true true <\/span><br \/><span style=\"color: #0000ff\">ipfix true true <\/span><br \/><span style=\"color: #0000ff\">tcpip4 true true <\/span><br \/><span style=\"color: #0000ff\">dvsdev true true <\/span><br \/><span style=\"color: #0000ff\">vmci true true <\/span><br \/><span style=\"color: #0000ff\">dvfilter true true <\/span><br \/><span style=\"color: #0000ff\">lacp true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_3_0_0_dvfilter_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_1_0_0_dvfilter_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_2_0_0_dvfilter_shim true true <\/span><br \/><span style=\"color: #0000ff\">mptspi true true <\/span><br \/><span style=\"color: #0000ff\">esxfw true true <\/span><br \/><span style=\"color: #0000ff\">dvfilter-generic-fastpath true true <\/span><br \/><span style=\"color: #0000ff\">vmkibft true true <\/span><br \/><span style=\"color: #0000ff\">gss true true <\/span><br \/><span style=\"color: #0000ff\">lvmdriver true true <\/span><br \/><span style=\"color: #0000ff\">deltadisk true true <\/span><br \/><span style=\"color: #0000ff\">vdfm true true <\/span><br \/><span style=\"color: #0000ff\">sunrpc true true <\/span><br \/><span style=\"color: #0000ff\">vmfs3 true true <\/span><br \/><span style=\"color: #0000ff\">ufs true true <\/span><br \/><span style=\"color: #0000ff\">vfat true true <\/span><br \/><span style=\"color: #0000ff\">vmklink_mpi true true <\/span><br \/><span style=\"color: #0000ff\">swapobj true true <\/span><br \/><span style=\"color: #0000ff\">nfsclient true true <\/span><br \/><span style=\"color: #0000ff\">nfs41client true true <\/span><br \/><span style=\"color: #0000ff\">vflash true true <\/span><br \/><span style=\"color: #0000ff\">procMisc true true <\/span><br \/><span style=\"color: #0000ff\">nrdma true true <\/span><br \/><span style=\"color: #0000ff\">nrdma_vmkapi_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_3_0_0_rdma_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_2_0_0_nmp_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_1_0_0_nmp_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_3_0_0_nmp_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_2_0_0_iscsi_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_1_0_0_iscsi_shim true true <\/span><br \/><span style=\"color: #0000ff\">vmkapi_v2_3_0_0_iscsi_shim true true <\/span><br \/><span style=\"color: #0000ff\">hbr_filter true true <\/span><br \/><span style=\"color: #0000ff\">ftcpt true true <\/span><br \/><span style=\"color: #0000ff\">vrdma true true <\/span><br \/><span style=\"color: #0000ff\">filtmod true true <\/span><br \/><span style=\"color: #0000ff\">svmmirror true true <\/span><br \/><span style=\"color: #0000ff\">cbt true true <\/span><br \/><span style=\"color: #0000ff\">migrate true true <\/span><br \/><span style=\"color: #0000ff\">vfc true true <\/span><br \/><span style=\"color: #0000ff\">balloonVMCI true true <\/span><br \/><span style=\"color: #0000ff\">qfle3 false false <\/span><br \/><span style=\"color: #0000ff\">qflge false false <\/span><br \/><span style=\"color: #0000ff\">ixgben false false<\/span> <\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system module list &#8211;enabled=true<\/span> <\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system module list &#8211;enabled=true<\/span> <\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system module list &#8211;loaded=true<\/span> <br \/>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-module &#8211;server 192.168.131.234 &#8211;list<\/span> <\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system module set &#8211;module=module_name &#8211;enabled=true<\/span> <\/p>\n<p>\u9632\u706b\u7246<br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network firewall get<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Default Action: DROP<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Enabled: true<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Loaded: true<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network firewall ruleset list &#8211;ruleset-id sshServer<\/span><br \/><span style=\"color: #0000ff\">Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Enabled<\/span><br \/><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;-<\/span><br \/><span style=\"color: #0000ff\">sshServer\u00a0\u00a0\u00a0\u00a0 true<\/span><\/p>\n<p>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network firewall ruleset allowedip add &#8211;ruleset-id sshServer &#8211;ipaddress 192.168.131.1.0\/24<\/span><br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network firewall ruleset allowedip add &#8211;ruleset-id sshServer &#8211;ipaddress 192.168.1.10<\/span><\/p>\n<p>\u5217\u51fa SSH Server Firewall Rule<br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxcli network firewall ruleset allowedip list &#8211;ruleset-id sshServer<\/span><br \/><span style=\"color: #0000ff\">Ruleset\u00a0\u00a0\u00a0 Allowed IP Addresses<\/span><br \/><span style=\"color: #0000ff\">&#8212;&#8212;&#8212;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><br \/><span style=\"color: #0000ff\">sshServer\u00a0 192.168.1.10, 192.168.131.0\/24<\/span><\/p>\n<p>\u78c1\u789f\u8cc7\u8a0a<br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxcli system coredump partition list<\/span><br \/><span style=\"color: #0000ff\">Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Path\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Active\u00a0 Configured<\/span><br \/><span style=\"color: #0000ff\">&#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;\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u00a0 &#8212;&#8212;\u00a0 &#8212;&#8212;&#8212;-<\/span><br \/><span style=\"color: #0000ff\">t10.ATA_____TS128GSSD370S___________________________C981072070__________:7\u00a0 \/vmfs\/devices\/disks\/t10.ATA_____TS128GSSD370S___________________________C981072070__________:7\u00a0\u00a0 false\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 false<\/span><br \/><span style=\"color: #0000ff\">t10.ATA_____TS128GSSD370S___________________________C981072070__________:9\u00a0 \/vmfs\/devices\/disks\/t10.ATA_____TS128GSSD370S___________________________C981072070__________:9\u00a0\u00a0\u00a0 true\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 true<\/span><\/p>\n<p>SNMP \u76f8\u95dc\u8cc7\u8a0a<br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxcli system snmp get<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Authentication:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Communities: public<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Enable:<\/span> <span style=\"color: #ff0000\">true<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Engineid: 00000063000000a100000000<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Hwsrc: indications<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Largestorage: true<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Loglevel: info<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Notraps:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Port: 161<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Privacy:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Remoteusers:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Syscontact:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Syslocation:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Targets:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Users:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 V3targets:<\/span><\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system snmp get<\/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\">\u00a0\u00a0 Authentication:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Communities:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Enable:<\/span> <span style=\"color: #ff0000\">false<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Engineid: 00000063000000a100000000<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Hwsrc: indications<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Largestorage: true<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Loglevel: info<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Notraps:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Port: 161<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Privacy:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Remoteusers:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Syscontact:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Syslocation:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Targets:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Users:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 V3targets:<\/span><\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-snmp &#8211;server 192.168.131.234 &#8211;show<\/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\">Current SNMP agent settings:<\/span><br \/><span style=\"color: #0000ff\">Enabled\u00a0 :<\/span><span style=\"color: #ff0000\"> 0<\/span><br \/><span style=\"color: #0000ff\">UDP port : 161<\/span><\/p>\n<p><span style=\"color: #0000ff\">Communities :<\/span><\/p>\n<p><span style=\"color: #0000ff\">Notification targets :<\/span><\/p>\n<p><span style=\"color: #0000ff\">Options :<\/span><br \/><span style=\"color: #0000ff\">EnvEventSource=indications<\/span><br \/><span style=\"color: #0000ff\">engineid=00000063000000a100000000<\/span><br \/><span style=\"color: #0000ff\">loglevel=info<\/span><\/p>\n<p>\u555f\u52d5 SNMP \u670d\u52d9<br \/>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system snmp set &#8211;enable=yes<\/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>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system snmp get<\/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\">\u00a0\u00a0 Authentication:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Communities:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Enable:<\/span> <span style=\"color: #ff0000\">true<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Engineid: 00000063000000a100000000<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Hwsrc: indications<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Largestorage: true<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Loglevel: info<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Notraps:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Port: 161<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Privacy:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Remoteusers:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Syscontact:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Syslocation:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Targets:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 Users:<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 V3targets<\/span><\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-snmp &#8211;server 192.168.131.234 &#8211;show<\/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\">Current SNMP agent settings:<\/span><br \/><span style=\"color: #0000ff\">Enabled\u00a0 :<\/span> <span style=\"color: #ff0000\">1<\/span><br \/><span style=\"color: #0000ff\">UDP port : 161<\/span><\/p>\n<p><span style=\"color: #0000ff\">Communities :<\/span><\/p>\n<p><span style=\"color: #0000ff\">Notification targets :<\/span><\/p>\n<p><span style=\"color: #0000ff\">Options :<\/span><br \/><span style=\"color: #0000ff\">EnvEventSource=indications<\/span><br \/><span style=\"color: #0000ff\">engineid=00000063000000a100000000<\/span><br \/><span style=\"color: #0000ff\">loglevel=info<\/span><\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">esxcli &#8211;server 192.168.131.234 &#8211;thumbprint 8D:82:C4:77:31:18:C0:F7:21:B7:35:87:DA:F8:4C:F9:26:F9:9C:44 system snmp set &#8211;enable=no<\/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> \u5217\u51fa\u7db2\u8def\u5361\u8cc7\u8a0a<br \/> [root@esxi:~] <span style=\"color: #ff0000\">esxcfg-nics -l<\/span><br \/><span style=\"color: #0000ff\">Name\u00a0\u00a0\u00a0 PCI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Driver\u00a0\u00a0\u00a0\u00a0\u00a0 Link Speed\u00a0\u00a0\u00a0\u00a0\u00a0 Duplex MAC Address\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 MTU\u00a0\u00a0\u00a0 Description<\/span><br \/><span style=\"color: #0000ff\">vmnic0\u00a0 0000:00:19.0 ne1000\u00a0\u00a0\u00a0\u00a0\u00a0 Up\u00a0\u00a0 1000Mbps\u00a0\u00a0 Full\u00a0\u00a0 ac:22:0a:80:c4:ca 1500\u00a0\u00a0 Intel Corporation 82579V Gigabit Network Connection<\/span><\/p>\n<p>[root@localhost ~]# <span style=\"color: #ff0000\">vicfg-nics &#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\">Name\u00a0\u00a0\u00a0 PCI\u00a0\u00a0\u00a0\u00a0 Driver\u00a0\u00a0\u00a0\u00a0 Link Speed\u00a0\u00a0\u00a0 Duplex MAC Address\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 MTU\u00a0\u00a0\u00a0 Description<\/span><br \/><span style=\"color: #0000ff\">vmnic0\u00a0 0000:02:01.0 e1000\u00a0\u00a0\u00a0\u00a0\u00a0 Up\u00a0\u00a0 1000Mbps Full\u00a0\u00a0 ac:22:0a:80:c4:ca\u00a0 1500\u00a0\u00a0 Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)<\/span><\/p>\n<p>\u76f8\u7576\u65bc Linux \u4e0a\u7684 top<br \/>[root@esxi:~] <span style=\"color: #ff0000\">esxtop<\/span><\/p>\n<p>\u5217\u51fa\u958b\u6a5f\u6642\u555f\u52d5\u7684\u670d\u52d9<br \/>[root@esxi:~] <span style=\"color: #ff0000\">chkconfig -l<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c3\u8003\u7db2\u9801\uff1a\u4ee5esxi5 command line\u65b9\u5f0f\u555f\u52d5VM | \u8cc7\u8a0a\u7d44VMWare ESX\/ESXi CLI &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/08\/02\/vmware-vsphere-command-line-interface-esxcli-vim-cmd\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008VMware vSphere Command Line Interface &#8211; esxcli &amp; vim-cmd\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-19649","post","type-post","status-publish","format-standard","hentry","category-c-105209"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["690007"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19649"}],"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=19649"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19649\/revisions"}],"predecessor-version":[{"id":21150,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19649\/revisions\/21150"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}