6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
142 VMware, Inc.
5Runvicfg-dumppart -tagaintoverifythatadiagnosticpartitionisset.
vicfg-dumppart <conn_options> -t
Ifadiagnosticpartitionisset,thecommanddisplaysinformationaboutit.Otherwise,thecommand
informsyouthatnopartitionisset.
Configuring ESXi Syslog Services
AllESXihostsrunaSyslogservice,whichlogsmessagesfromtheVMkernelandothersystemcomponentsto
localfilesortoaremotehost.YoucanusethevSphereWebClient,orusetheesxcli system syslog
commandtoconfigurethefollowingparametersofthesyslogservice.
Remotehostandport.RemotehosttowhichSyslogmessagesareforwardedandportonwhichthe
remotehostreceivesSyslogmessages.Theremotehostmusthavealoglistenerserviceinstalledand
correctlyconfiguredtoreceivetheforwardedsyslogmessages.Seethedocumentationforthesyslog
serviceinstalledonthe
remotehostforinformationonconfiguration.
Transportprotocol.LogscanbesentbyusingUDP(default),TCPorSSLtransports.
Localloggingdirectory.Directorywherelocalcopiesofthelogsarestored.Thedirectorycanbelocated
onmountedNFSorVMFSvolumes.Onlythe/scratchdirectoryonthelocalfilesystemispersistent
acrossreboots.
Uniquedirectorynameprefix.SettingthisoptiontotruecreatesasubdirectorywiththenameoftheESXi
hostunderthespecifiedloggingdirectory.ThismethodisespeciallyusefulifthesameNFSdirectoryis
usedbymultipleESXihosts.
Logrotationpolicies.Setsmaximumlogsizeandthenumberofarchivestokeep.Youcanspecifypolicies
bothglobally,andforindividualsubloggers.Forexample,youcansetalargersizelimitforthevmkernel
log.
Aftermakingconfigurationchanges,restartthesyslogservice(vmsyslogd)byrunningesxcli system
syslog reload.
Theesxcli system syslogcommandallowsyoutoconfiguretheloggingbehaviorofyourESXisystem.
WithvSphere5.0,youcanmanagethetoplevelloggerandsubloggers.Thecommandhasthefollowing
options.
I
MPORTANTTheesxcli system syslogcommandistheonlysupportedcommandforchangingESXi5.0
andlaterloggingconfiguration.Thevicfg-syslogcommandandeditingconfigurationfilesisnotsupported
forESXi5.0andcanresultinerrors.
Option Description
mark Marksalllogswiththespecifiedstring.
reload Reloadstheconfiguration,andupdatesanychangedconfigurationvalues.
config get Retrievesthecurrentconfiguration.
config set Setstheconfiguration.Useoneofthefollowingoptions.
--logdir=<path>Savelogstoagivenpath.
--loghost=<host>Sendlogstoagivenhost.See“esxclisystemsyslogExamples”on
page 143.
--logdir-unique=<true|false>Specifywhetherthelogshouldgotoaunique
subdirectoryofthedirectoryspecifiedinlogdir.
--default-rotate=<int>Defaultnumberoflogrotationstokeep.
--default-size=<int>Sizebeforerotatinglogs,inKB.