Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

PowerCLI and updateipmi

$
0
0

I am trying to set the  IPMI/iLO settings for Power Management on a single ESX host which resides in one of our datacenters, and I am encountering some problems. The server is a Dell R610 with an iDRAC 6 Enterprise. I've re-enabled the default DRAC account/password, and every time I try and run the code, I get the following error.

 

 

Exception calling "UpdateIpmi" with "1" argument(s): "A specified parameter was not correct.
"
At E:\Work\VMwareScripts\set-OffsiteServers\setOffsiteServers.ps1:49 char:21
+ $hostview.updateipmi <<<< ($ipmiinfo)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

 

In the vSphere client window, it's shows 'A specified parameter was not correct', although unhelpfully, it doesn't show anywhere WHICH parameter was not correct.

 

 

The code isn't particularly onerous either (fake server names, IPs and accounts follow)

 

$VMHost = "vmhost1.local"
connect-viserver vcenterserver.local
$hostview = get-vmhost -server "vcenterserver.local" -name $VMHost | % {get-view $_.id}
$ipmiinfo = new-object vmware.vim.hostipmiinfo
$ipmiinfo.bmcipaddress = "192.168.2.2"
$ipmiinfo.bmcmacaddress = "84:2B:2B:47:09:F0"
$ipmiinfo.login = "root"
$ipmiinfo.password = "calvin"
$hostview.updateipmi($ipmiinfo)

 

 

Does anyone have any idea what I am doing wrong? This one is stumping me.

 

vCenter is 5.0.0 build 623373

Host in question is 5.0.0 914586

powercli on my workstation is VMware vSphere PowerCLI 5.0 build 435427.

 

 

Graham


Viewing all articles
Browse latest Browse all 193198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>