VMware Cloud Community
gekm
Contributor
Contributor

Config.HostAgent.log.level change does not take effect!

Hello! I have 2 machines with installed esxi 5.0 and 5.1 versions. I would like to configure loggining from that machines to syslog-server. It done, but i have too match verbose messages from esxi 5.1 host, although i have changed Config.HostAgent.log.level to 'panic'. In esxi 5.0 this setting is applied, and i have only "panic" messages.

0 Kudos
5 Replies
LucD
Leadership
Leadership

So for ESXi 5.0 the setting works, but not for ESXi 5.1, correct ?

What does

Get-AdvancedSetting -Entity $esx -Name "Config.HostAgent.log.level"

return ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
gekm
Contributor
Contributor

Yes, it's right!

~ # Get-AdvancedSetting -Entity $esx -Name "Config.HostAgent.log.level"

-sh: Get-AdvancedSetting: not found

but

~ # vim-cmd hostsvc/advopt/view Config.HostAgent.level[Hostsvc].loglevel

returns

(vim.option.OptionValue) []

~ # vim-cmd hostsvc/advopt/view Config.HostAgent.log.level

(vim.option.OptionValue) [

   (vim.option.OptionValue) {

      dynamicType = <unset>,

      key = "Config.HostAgent.log.level",

      value = "panic",

   }

although i'm not sure that this information may be useful

0 Kudos
LucD
Leadership
Leadership

But wait a minute, are you trying to xecute PowerCLI cmdlets from the BusyBox ?

That will not work, you need a Windows box with PowerShell and PowerCLI to use the cmdlets.

Are you sure you wanted this thread in the PowerCLI Community ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
gekm
Contributor
Contributor

Oh, my bad. Could you move this topic to   Home > VMTN > VMware vSphere™ > VMware ESXi 5 ? I apologize for this casus.

0 Kudos
LucD
Leadership
Leadership

Sure, thread moved to VMware ESXi 5


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos