- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not with a direct command afaik.
You have to edit the config.xml file.
I normally do that via a SSH connection and the Posh-Ssh module, with a sed command.
This changes the loglevel from warning to error.
$cmdSub = 'sed -i -e ''s?<logLevel> warning </logLevel>?<logLevel> error </logLevel>?g'' /etc/vmware/hostd/config.xml'
$esxName = 'MyEsx'
$cred = Get-Credential -Message "SSH crdentials for ESXi node $esxName"
$session = New-SSHSession -ComputerName $esxName -Credential $cred –AcceptKey
$result = Invoke-SSHCommand -SSHSession $session -Command $cmdSub
Remove-SSHSession -SSHSession $session | Out-Null
.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference