1.0.1

Table Of Contents
VMware, Inc. 87
Chapter 8 System Health, Utilities, and Troubleshooting
OnLinux(vCenterChargebackvirtualappliance),runthefollowingcommands:
cd /opt/vmware/cbm/vCenter-CB-Tools/troubleshooting/bin
bash vCenter-CB-support.sh
Youmustloginasroottosuccessfullyrunthisutility.
2Providethefoldernameanddirectorypathwherethegeneratedlogshavetobestoredwhenprompted.
3Youcanchoosetocollectthesystemeventlogs.
OnWindowstheApplicationlogandSystemlogiscollected.OnLinux/var/log/messagesiscollected.
4Enterthenumberofstandalonedatacollectorinstances(notembedded)installedonthesamemachine.
5IfyouhaveastandaloneDataCollectorinstancerunning,youmustprovidethepathofeachdatacollector
installation.
TheutilitygeneratesaZIPfilewiththenamevCenter-CB-TroubleshootInfo-<date>.zipandstoresitin
thespecifieddestination
folder.TheZIPfilecontainsthefollowing:
A.csvfileforeachtableinthevCenterChargebackdatabasethatstoreseventrelatedinformation.
Thesystemlogs.
OnWindows,Application.logandSystem.log
OnLinux,the/var/log/messagesfile
Configurationfilesfordatacollector,installation,loadbalancer,vCenterChargebackserver(Tomcat
Server),andthevCenterChargebackapplication.
Logfilesfordatacollector,installation,loadbalancer,andvCenterChargebackserver(TomcatServer)and
application.
Database Password Change Utility
vCenterChargebackalsoprovidesautilitytochangethepasswordofthevCenterChargebackdatabaseuser.
Thisutilitychangesthepasswordinthehibernate.cfg.xmlfileinthefollowingdirectories:
<Installation_Directory>/apache-tomcat-6.0.18/webapps/vCenter-CB/WEB-INF/classes
<Installation_Directory>/DataCollector-Embedded/classes
IfyouhaveinstalledandconfiguredmorethanonedatacollectorinstanceforasinglevCenterChargeback
database,youmustmanuallycopytheupdatedhibernate.cfg.xmlfiletoeachofthecorrespondingdata
collectorfolders.
Theutilityisavailableinthefolder.
To change the password of vCenter Chargeback database user
1Runthepasswordchangeutility.
OnWindows,runthefollowingcommandsfromthecommandprompt:
cd <Installation_Directory>\vCenter-CB-Tools\database-update\bin
UpdateChargebackDatabaseCredentials.bat
TheuserrunningthisutilitymustbelongtotheAdministratorsgroup.
YoucanalsorunthisutilitybyselectingUpdateChargebackDatabaseCredentialsfromthe
Start > Programs > VMware > VMware vCenter Chargeback > vCenter Chargeback Tools menu.
OnLinux(vCenterChargebackvirtualappliance),runthefollowingcommands:
cd /opt/vmware/cbm/vCenter-CB-Tools/database-update/bin
bash UpdateChargebackDatabaseCredentials.sh
Youmustloginasroottosuccessfullyrunthisutility.
N
OTEStep 3,Step 4,andStep 5arenotapplicableforthevCenterChargebackvirtualappliance.