![]() These commands will report the BMC NICs MAC address (for hard core programmers that don't like ipmitool lan print 1 or ipmitool lan print 3), but to get the OS MAC addess, you need to do the math. Write-Host "ESXi-System: " $ILO.PSComputerName " BMC-IP: " $ILO.Ox30 0x19 command will tell you which of the mother board physicial NICs channel ports the BMC is sharing (NIC 1 or NIC2). $ILO = Get-CimInstance -CimSession $Session -ClassName CIM_ServiceAccessPoint | Where $Session = New-CimSession -Authentication Basic -Credential $Credential -ComputerName $hv.name -port 443 -SessionOption $CIOpt $CIOpt = New-CimSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck -Encoding Utf8 -UseSsl $Credential = New-Object -TypeName -ArgumentList $CIMServicesTicket.SessionId, $Password $Password = ConvertTo-SecureString $CIMServicesTicket.SessionId -AsPlainText -Force $CIMServicesTicket = $hv.AcquireCimServicesTicket() I got this from another thread somewhere and I thought it would be a good alternative for this question in case it didn't come up in a similar search: This is a way of mining the BMC IP info from vcenter or the vmhost using powercli that's useful for dumping that info for a whole slew of hosts. Note, this is definitely not the exact answer but I recently had the need for the same information. These are generic CIM methods that should work with any standard IPMI device and do not require any special drivers/extensions by a hardware vendor. H 'Content-type: application/xml charset="utf-8"' \ ![]() What you can also do is querying the host's CIM information remotely, for example like this: ![]() # enum_instances OMC_IPMIIPProtocolEndpoint root/cimv2 | grep IPv4Address Unfortunately there doesn't seem to exist a standard builtin esxcli command to query the management controller IP.īut you can query the local CIM providers from the ESXi shell and get the IP like this:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |