6.0

VMware, Inc. 10
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
Replacing Agents
WithESX4.x,managementagentsandhardwaremonitoringandmanagementagentsrunintheservice
console.WithESXi5,agentsareimplementedinotherways.
Managementagents.VMwarepartnerscreatemanagementagentsbyusingoneofthevSphereAPIs.
Hardwareagents.DevelopersuseCIM(CommonInformationModel)agents.CIMisastandards-based
approachtomonitoringhardwareresources.CIMoutputisreadablebythird-partymanagementtools.
TheVMkernelcanincludebothVMwareCIMprovidersandPartnerCIMproviders.UseavSphereClient
loggedintoavCenterServersystemto
viewhardwareinformationincludingalarms.UsethevSphere
ClientextensionframeworkorthevSphereCIMSDKforcustomization.
Infrastructureserviceagents.AdministratorscanuseagentsavailableintheESXiShell.Agentsinclude
hostd(hostdaemon),vpxa,NTP,syslog,SNMP,andsoon.UsethevSphereSDK,vCLIcommands,or
ESXCLIcommandstomanagetheagents.
Logging in vSphere 5 and Later
LogginginvSphere5hasbeensignificantlyenhanced.Younowhavefine-grainedcontroloversystemlogs,
thelocationwherelogsaresent,and,foreachlog,defaultsizeandrotationpolicy.Youcansetuploggingwith
thevSphereClientorwiththeesxcli system syslogcommand.Youcanalsosetuplogging
behaviorfora
hostbyusingtheHostProfilesinterfaceinthevSphereClientandcanthenimportthathostprofileintoother
hosts.
Remote Logging Setup in ESXi
YoucanmovemostESXilogginginformationoffthehost.Collectingdatatoacentrallocationisespecially
usefulforhostsprovisionedwithAutoDeploy.Youcanperformthesetasks:
SetupNTPontheESXihostsyouaremonitoringandonthesystemsthathosttheloggingservicesorstore
thelogs.YoucanusethevSphereClientorthevicfg-ntpvCLIcommandtosetupNTP.
Configuresyslogtosavelogstoaremotehost.Youcansendlogstoaspecificdirectory,andconfigure
subloggers.See“UsingESXCLIforSyslogConfiguration”onpage 10.
vCenterServerandESXihaveSNMPagents.YoucansetupthevCenterServerSNMPagentwiththe
vSphereClient.YoucansetuptheESXiSNMPagentwiththevSphereClientortheesxcli system snmp
commands.SeevSphereCommandLineInterfaceSolutionsandExamples.
ListenforCIMindications.
Using ESXCLI for Syslog Configuration
Theesxcli system syslogcommandallowsyoutoconfiguretheloggingbehaviorofyourESXisystem.
YoucanperformthesamecustomizationswiththevSphereclient,asdiscussedinthevCenterServerandHost
Managementdocumentation.Thecommandhasthefollowingoptions:
Table 2. Infrastructure Services for Production Environments
Function ESX ESXi Management
Timesynchronization NTPagentinservice
console
Built-inNTPservice vicfg-ntpcommand
Centralizedlogcollection Syslogagentinservice
console
Built-inSyslogservice esxcli system syslog
commands
vSphereClient
SNMPmonitoring SNMPagentinservice
console
Built-inSNMPservice esxcli system snmp
command
Localaccess
authentication
ActiveDirectory(AD)
agentinserviceconsole
BuiltinActiveDirectory
service
Built-inActiveDirectory
service
vSphereClient
vicfg-authconfigvCLI
command.