any idea how I can run this from powercli?
# esxcli hardware ipmi sel clear ; clear the IPMI SEL logs prior to restart WBEM service.
# esxcli system wbem set -e 0 ; disable wbem service
# esxcli system wbem set -e 1 ; enable wbem service
# /etc/init.d/sfcbd-watchdog restart
In that case you don't need to pass anything, just call without a parameter
$esxcli.hardware.ipmi.sel.clear.Invoke()
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes, use the Get-EsxCli cmdlet. See also PowerCLI 6.3 R1: Get-ESXCLI Why the V2?
PS: do you ever get back or reply to threads you launch?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I am stuck on one line
$esxcli = get-esxcli -vmhost $vmhost -V2
$esxcli.hardware.ipmi.sel.clear <-----
$esxcli.system.wbem.get.invoke()
$esxcli.system.wbem.set.createArgs()
$esxcli.system.wbem.set.Invoke(@{enable=$false})
$esxcli.system.wbem.set.Invoke(@{enable=$true})
everything else is working
Thanks. I will close out the other threads
Thanks
That should be
# Set your values in $arg
$esxcli.hardware.ipmi.sel.clear.Invoke($arg)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
what should $args be? I just need to clear the sel log
In that case you don't need to pass anything, just call without a parameter
$esxcli.hardware.ipmi.sel.clear.Invoke()
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference