Advertisement
akamac

ESXi-CIM-BMC

Nov 18th, 2013
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $CimOpt = New-CimSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck -Encoding Utf8 -UseSsl
  2. $CimSession = New-CimSession -Authentication Basic -Credential root -ComputerName $Hostname -port 443 -SessionOption $CimOpt
  3. $BmcSettings = Get-CimInstance -CimSession $CimSession -ClassName CIM_IPProtocolEndpoint | ? Name -match 'Management Controller' | Select IPv4Address, IPv4DefaultGateway, IPv4Netmask, MACAddress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement