Collecting the VMware vSphere Replication logs
search cancel

Collecting the VMware vSphere Replication logs

book

Article ID: 312657

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction


This article provides steps to collect logs from vSphere Replication (VR) and vSphere Replication Management Server (VRMS) using the automated log bundle generator.

Environment

VMware vSphere Replication 8.x

VMware vSphere Replication 9.x

Resolution

How to Generate vSphere Replication Support Bundle

You will have to increase the vSphere Replication Management Server's HDD size to a higher capacity to store the log files depending on the number of VR Add-on you may have. 

NOTE: vSphere Replication versions 8.x and 9.x include VRMS log bundle also includes logs from both the VRMS (Management server) and Add-on vSphere Replication (VR servers)


To automatically gather the vSphere Replication logs from the vSphere Replication Management Server (VRMS) using the web UI, you need access to the Virtual Appliance Management Interface (VAMI).

  1. Connect to the VAMI of the vSphere Replication appliance in a web browser using the URL : https://vr-appliance-address:5480

  2. Click Summary, and then click Download Support Bundle to generate a .zip package of the current vSphere Replication logs.

  3. Click Download to download the package.

 

Generating vSphere Replication log bundle from the VRMS Server using CLI

NOTE: In VMware vSphere Replication 8.4 and above please login using "admin" and run "su" to change user to root (Enter Root password when prompted) 
  1. Login as admin credential.

    $ su

    Password:

  2. Start generating the support bundle using this command: /opt/vmware/hms/generatesupportbundle.sh
     
    NOTE: In vSphere Replication 8.x and 9.0.x, the location is  /opt/vmware/hms/bin/generatesupportbundle.sh
    The completed log bundle is located at: /opt/vmware/hms/support/HSB-hms-<uuid>/bundle.tar.gz

    NOTE: For vSphere Replication 8.5 use: 

    /opt/vmware/hms/bin/generatesupportbundle.sh to generate VRMS server logs. The output bundle is located at /opt/vmware/hms/support
    /opt/vmware/dr/bin/dr-support-linux.sh to generate DR UI logs (H5Logs, DrConfigUi). The output bundle is located at /var/log/vmware/Support 

  3. Connect to the VRMS server appliance using an SFTP client, such as WinSCP, FileZilla and download the log bundle.

Before copying the log file you must change its permission by running the command  sudo chmod 777 filename against the log filename. You won't be able to copy files from the appliance, if you don't. 

Example : sudo chmod 777  VMware-VRMS-support-04_15_2023-04_39_30-PM.zip

NOTE: By default, the VRMS server logs (hms*.log ) are located at /opt/vmware/hms/logs

 

Generating vSphere Replication log bundle from the VR Add-on Server using the command line
 

SSH into the VR Add-on server appliance and log in as admin first and then as root user. 
  1. Start generating the support bundle using this command: /usr/bin/hbrsrv-support-bundle.sh
    The completed log bundle is located in: /tmp/hbrsrv-2011-08-20-14-34-6.tgz

  2. Connect to the VR server appliance using an SFTP client, such as WinSCP, FileZilla and download the log bundle.


NOTE:

  • By default, the VR server logs (hbrsrv*.log ) are located at /var/log/vmware
  • The /var/log/messages file can also be a useful source of information for VR server issues.




Additional Information


For more information on collecting diagnostic information for VMware products and uploading to VMware support, see: