Skip to content

Instantly share code, notes, and snippets.

@VLogin
Last active September 30, 2019 12:39
Show Gist options
  • Save VLogin/d496db530e968b1dc7edc64921af4dab to your computer and use it in GitHub Desktop.
Save VLogin/d496db530e968b1dc7edc64921af4dab to your computer and use it in GitHub Desktop.
[esxcli] ESXi cli snippets #esxi #vsphere #esxcli
1. To find out the CIMC ip from within the ESXi cli:
[code]
enum_instances OMC_IPMIIPProtocolEndpoint root/cimv2 |grep ipv4
2. To change vmnic order (https://kb.vmware.com/s/article/2091560):
[code]
localcli --plugin-dir /usr/lib/vmware/esxcli/int/ deviceInternal alias list
localcli --plugin-dir /usr/lib/vmware/esxcli/int/ deviceInternal alias store --bus-type pci --alias vmnicN --bus-address B
For example, if you want to swap vmnic3 and vmnic4 use the following commands:
[code]
localcli --plugin-dir /usr/lib/vmware/esxcli/int/ deviceInternal alias store --bus-type pci --alias vmnic3 --bus-address s0000000f:04.00
localcli --plugin-dir /usr/lib/vmware/esxcli/int/ deviceInternal alias store --bus-type pci --alias vmnic4 --bus-address s0000000f:03.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment