I'm looking to configure remote syslog and local syslog. The remote one is working fine, the local setting isn't being set.
This is what I'm using:
Connect-VIServer -Server myVI.domain.com
$HS=Get-VMHost -Name myesxhost
Set-VMHostAdvancedConfiguration -VMHost $HS -Name "Syslog.Local.DatastorePath" -Value "/vmfs/volumes/datastore1/myesxhost.log/syslog"
I get the output:
Name Value
---- -----
Syslog.Local.DatastorePath [] /vmfs/volumes/4ef1c068-df85de9a-39dd-78e3b50ac53c/log/messages
the syslog file has been created previously. the output of the command always displays the old value and when I go to Advanced setting in VI, it's the old value, not the one I have specified in the command.
Any ideas/comments?
thanks
never mind. When I try to set it mannually thru VI, it still reverts back to the old value.
What version are you using there?
For embedded one the scratch partition must be there (with directory: .../.locker-<your esx name>
Reg
Christian
I guess the versons would've helped. ESXI 4.1, Vcenter 4.1, powercli 4
ok, the "-Value" is not the full /vmfs/ path....it turns out that the correct value is "[datastore1] /myesxhost.log/syslog"
The syntax in gui should be [datastorename]<blank>/directorynameonyourdatastore
The directorynameonyourdatastore must be created before.
Reg
Christian