A.3.2. Examples

Example A.8. Basic Log Collector Usage

In this example log collector is run to collect all logs from the Red Hat Enterprise Virtualization Manager and the three attached hosts. Additionally the database and JBoss logs are also collected.
# rhevm-log-collector
Please provide the username for rhevm (CTRL+D to abort): admin@directory.demo.redhat.com
Please provide the password for rhevm (CTRL+D to abort): 
Host list (datacenter=None, cluster=None, host=None):
Data Center          | Cluster              | Hostname/IP Address
SalesDataCenter      | SalesCluster         | 192.168.122.250
EngineeringDataCenter | EngineeringCluster   | 192.168.122.251
FinanceDataCenter    | FinanceCluster       | 192.168.122.252
# rhevm-log-collector collect
Please provide the username for rhevm (CTRL+D to abort): admin@directory.demo.redhat.com
Please provide the password for rhevm (CTRL+D to abort): 
About to collect information from 3 hypervisors. Continue? (Y/n): Y
INFO: Gathering information from selected hypervisors...
INFO: collecting information from 192.168.122.250
INFO: collecting information from 192.168.122.251
INFO: collecting information from 192.168.122.252
INFO: finished collecting information from 192.168.122.250
INFO: finished collecting information from 192.168.122.251
INFO: finished collecting information from 192.168.122.252
Please provide the password to dump the PostgreSQL database (CTRL+D to abort): 
INFO: Gathering PostgreSQL the RHEV-M database and log files from localhost...
INFO: Gathering RHEV-M information...
Please provide the password for jboss (CTRL+D to abort): 
INFO: Log files have been collected and placed in /tmp/logcollector/sosreport-rhn-account-20110804121320-ce2a.tar.xz.
      The MD5 for this file is 6d741b78925998caff29020df2b2ce2a and its size is 26.7M