Before you can activate sending log data from the Site Recovery Manager and vSphere Replication appliances to vRealize Log Insight, download and install the vRealize Log Insight agent for Linux on the Site Recovery Manager and vSphere Replication appliances in each VMware Cloud Foundation instance.
UI Procedure
Activate SSH access on the Site Recovery Manager appliance for the protected VMware Cloud Foundation instance.
- Log in to the Site Recovery Manager appliance configuration interface at https://<srm_fqdn>:5480 as admin.
In the left navigation pane, click Access and, in the SSH panel, click Enable.
Download the vRealize Log Insight agent on the Site Recovery Manager appliance for the protected VMware Cloud Foundation instance.
- Log in to the Site Recovery Manager appliance at <srm_fqdn>:22 by using a SecureShell (SSH) client as sshuser.
Switch to the root user by running the command.
su
Download and install the vRealize Log Insight Agent .rpm file.
curl -k -o /tmp/liagent.rpm https://<vrealize_log_insight_fqdn>/api/v1/agent/packages/types/rpm; rpm -Uvh /tmp/liagent.rpm
Configure the vRealize Log Insight agent on the Site Recovery Manager appliance for the protected VMware Cloud Foundation instance.
Configure the vRealize Log Insight agent to start automatically.
systemctl enable liagentd
Edit the liagent.ini file by using a text editor such as vi.
vi /var/lib/loginsight-agent/liagent.ini
In the
[server]
section, modify the following parameters, and save the file.[server] hostname=<vrealize_log_insight_fqdn> proto=cfapi port=9000 ssl=no
Restart the vRealize Log Insight agent.
systemctl restart liagentd
Verify the status of the vRealize Log Insight agent.
systemctl status liagentd
Deactivate SSH access on the Site Recovery Manager appliance for the protected VMware Cloud Foundation instance.
- Log in to the Site Recovery Manager appliance configuration interface at https://<srm_fqdn>:5480 as admin.
In the left navigation pane, click Access and, in the SSH panel, click Disable.
Repeat steps 1 to 4 for the Site Recovery Manager appliance for the recovery VMware Cloud Foundation instance.
Activate SSH access on the vSphere Replication appliance for the protected VMware Cloud Foundation instance.
- Log in to the vSphere Replication appliance configuration interface at https://<vrms_fqdn>:5480 as admin.
In the left navigation pane, click Access and, in the SSH panel, click Enable.
Download the vRealize Log Insight agent on the vSphere Replication appliance for the protected VMware Cloud Foundation instance.
- Log in to the vSphere Replication appliance at <vrms_fqdn>:22 by using a SecureShell (SSH) client as admin.
Switch to the root user by running the command.
su
Download and install the vRealize Log Insight agent .rpm file.
curl -k -o /tmp/liagent.rpm https://<vrealize_log_insight_fqdn>/api/v1/agent/packages/types/rpm; rpm -Uvh /tmp/liagent.rpm
Configure the vRealize Log Insight agent on the vSphere Replication appliance for the protected VMware Cloud Foundation instance.
Configure the vRealize Log Insight agent to start automatically.
sudo systemctl enable liagentd
Edit the liagent.ini file by using a text editor such as vi.
vi /var/lib/loginsight-agent/liagent.ini
In the
[server]
section, modify the following parameters, and save the file.[server] hostname=<vrealize_log_insight_fqdn> proto=cfapi port=9000 ssl=no
Restart the vRealize Log Insight agent.
systemctl restart liagentd
Verify the status of the vRealize Log Insight agent.
systemctl status liagentd
Deactivate SSH access on the vSphere Replication appliance for the protected VMware Cloud Foundation instance.
- Log in to the vSphere Replication appliance configuration interface at https://<vrms_fqdn>:5480 as admin.
In the left navigation pane, click Access and, in the SSH panel, click Disable.
Repeat steps 6 to 9 for the vSphere Replication appliance for the recovery VMware Cloud Foundation instance.
PowerShell Procedure
Start Windows PowerShell.
Replace the values in the sample code with values from your VMware Cloud Foundation Planning and Preparation Workbook and run the commands in the PowerShell console.
$sddcManagerFqdn = "sfo-vcf01.sfo.rainpole.io" $sddcManagerUser = "administrator@vsphere.local" $sddcManagerPass = "VMw@re1!" $vmName = "sfo-m01-srm01" $vmRootPass = "VMw@re1!"
Perform the configuration by running the command in the PowerShell console.
Install-vRLIPhotonAgent -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -vmName $vmName -vmRootPass $vmRootPass
Repeat the procedure for the Site Recovery Manager appliance for the recovery VMware Cloud Foundation instance.
Repeat the procedure for the vSphere Replication appliances in the protected and the recovery VMware Cloud Foundation instances.