Hub service data
You can manually collect service data for a connected XClarity One Hub. Service data includes information about events and conditions to help you root cause problems with the hub. You can then manually download and send the service-data files to your preferred service provider to get assistance in resolving issues as they arise.
Online service-data collection
From the hub web interface, click Service data from the context menu on the Administration view, and then click the Add icon (
).From the portal web interface, click Management Hubs panel on the Organizations management view, select a hub, and click the Actions menu icon (
) and then Collect.
From the hub web interface, click Service data from the context menu on the Administration view, select a hub, andclick the Download icon (
) to save to the local system.From the portal web interface, click Service data from the context menu on the Organization management view, select a hub, and click the Download icon (
) to save to the local system.ImportantCollecting hub service data from the portal is disabled by default. Ensure that you enable this function from the XClarity One portal. For more information, see Functions enablement.
For XClarity One in the cloud, enabling the Enable hub service-data collection function allows organization owners (and Lenovo Support during a service case) to collect service data for any hub in your organization from the XClarity One portal interface.
Collected service data is removed from the cloud 1 week after downloading data or 1 month after collecting data if data is not downloaded.
You must be an organization owner to collect service data from the portal.
Offline service-data collection
If the hub user interface becomes unresponsive and cannot be recovered (for example, if a failed upgrade or patch prevents startup), you can use the following tools to collect service-data.
If you set a service-recovery password for the hub during initial configuration, you can use the Hub Service Support Center console to collect service data for that hub.
To access the Hub Service Support Center console, point your web browser to the hub IP address and port 8443, for example:https://192.0.2.10:8443To collect service data, click Offline Service File Collection, select Password as the authentication type, and then specify the service-recovery password in the Authentication Key field.
Service data is compressed into a single .tar.gz file to your local system. You can choose to collect all service files and management server logs or just the logs.
All Service Data. Includes service logs, syslogs, and information about the virtual machine, operating system, network, processes, containers, and databases.
Logs Only. Includes service logs, syslogs, and information about the virtual machine.
Note
If you specified a static IPv4 address during installation, use that IPv4 address to access the XClarity One Hub Service Support Center portal.
If a DHCP server is set up in the same broadcast domain as the hub, use the IPv4 address that is displayed in the virtual-machine console to access the XClarity One Hub Service Support Center portal.
Access to the portal is through a secure connection. Ensure that you use https.
If six consecutive log-in attempts fail, within a 15-minute period, you must wait at least 1 hour before signing in again.
Only the latest archive file is stored in the management hub repository. The file is deleted when the next collection request is made.
If you have not set a service-recovery password, or if you have forgotten it, you can use the Hub Support and Diagnostics Console to collect service data for the hub.
To access the console, open the Hub VM console and press Ctrl+Alt+F4 to set a password for the dedicated xc1h-support user. Then press Ctrl+Alt+F3 to log in to the Hub Support and Diagnostics Console using that account
NoteThe xc1h-support password expires after 12 hours or after a hub reboot. The appliance administrator can set or reset the password at boot time from the initial hub bootprompt menu, which is available for 150 seconds, by pressing 5 or at any time by pressingCtrl+Alt+F4. From the Hub Service and Diagnostics console, you can:
Collect a VM status report, including container status, disk usage, network configuration, routes, active sockets, and firewall rules
Collect system journal logs for all services, or for a selected systemd service and time interval
Collect logs from a selected container or from all containers
Run basic connectivity diagnostics, such as ping, curl, traceroute or DNS lookup
Collect an FFDC archive containing either complete service data or logs only. This option collects the same types of information as the corresponding collection options in Service Support Center.
View a live overview of system resources and service status
View and search diagnostic files collected during the current session
Package all collected data into a single support bundle
The collected data is compressed into a single .tar.gz file and saved locally in the support user’s home directory (/home/xc1h-support/support-bundles). A vSphere administrator can then retrieve the file through the VMware Tools guest operations channel, from hubs hosted on VMware hypervisors, using the govc guest.download or PowerCLI Copy-VMGuestFile command.
Use the following procedures to retrieve the data file. Replace all values in angle brackets with the values for your environment. Use the actual filename of the generated support bundle. VMware Tools must be running in the hub VM, and the VMware account must have permission to perform the required guest file operations.
From Windows PowerShell
Install VMware PowerCLI once for the current Windows user using the following command.Install-Module VMware.PowerCLI -Scope CurrentUserEnsure that the local destination directoryC:\temp\ exists. Then ,connect to vCenter Server or the ESXi host, and download the bundle using the following commands.
# Optional: use only if the server certificate is not trusted.
Set-PowerCLIConfiguration -Scope Session `
-InvalidCertificateAction Ignore -Confirm:$false
Connect-VIServer `
-Server '<VCENTER_OR_ESXI_ADDRESS>' `
-User '<VCENTER_OR_ESXI_USERNAME>' `
-Password '<VCENTER_OR_ESXI_PASSWORD>'
Copy-VMGuestFile `
-VM '<HUB_VM_NAME>' `
-GuestToLocal `
-Source '/home/xc1h-support/support-bundles/<BUNDLE_FILENAME>.tar.gz' `
-Destination 'C:\temp\' `
-GuestUser 'xc1h-support' `
-GuestPassword '<XC1H_SUPPORT_PASSWORD>'From a Linux machine, including a jumpbox or Ubuntu running in WSL
Install govc if it is not already available. The following example uses the Linux x86-64 package.
wget https://github.com/vmware/govmomi/releases/download/v0.55.1/govc_Linux_x86_64.tar.gz
tar -xzf govc_Linux_x86_64.tar.gz
chmod +x govc
sudo mv govc /usr/local/bin/Configure the VMware connection:
export GOVC_URL='https://<VCENTER_OR_ESXI_ADDRESS>/sdk'
export GOVC_USERNAME='<VCENTER_OR_ESXI_USERNAME>'
export GOVC_PASSWORD='<VCENTER_OR_ESXI_PASSWORD>'
# Optional: use only if the server certificate is not trusted.
export GOVC_INSECURE=1
Download the support bundle:
govc guest.download \
-vm '<HUB_VM_NAME>' \
-l 'xc1h-support:<XC1H_SUPPORT_PASSWORD>' \
'/home/xc1h-support/support-bundles/<BUNDLE_FILENAME>.tar.gz' \
'./<BUNDLE_FILENAME>.tar.gz'
Service-recovery password
The service-recovery password and the password-expiration interval were set during initial configuration. This service-recovery password is needed to collect service data on an unresponsive hub. By default, the password must be reset every 90 days.
If you attempt to collect service data for an unresponsive management hub and the service-recovery password is expired, you are redirected to the Reset Service Recovery Password dialog to change the password.
You can also change the password and expiration interval at any time from the Service Support Recovery Password card by clicking Service data from the context menu on the Administration view from the XClarity One Hub web interface.
The password must have 16 – 256 characters, including one or more uppercase and lowercase alphabetic characters, numbers, and special characters ; @ _ ! ' $ & +