230 likes | 440 Views
EMC Control Center 6.0 Train the Trainer. Log Collector Utility (LCU). Agenda. Log Collector Utility Overview Command Line Interface. Log Collector Utility Overview. Allows ControlCenter and Third Party logs to be collected Does not require end-user to enter credentials
E N D
EMC Control Center 6.0Train the Trainer Log Collector Utility (LCU)
Agenda • Log Collector Utility Overview • Command Line Interface
Log Collector Utility Overview • Allows ControlCenter and Third Party logs to be collected • Does not require end-user to enter credentials • CLI for batch log collection from multiple hosts
Log Collector Utility Overview Glossary • Log Type : • A set of log files associated with a ControlCenter component or a third party application. • Log Type Definition File (lcu_logtypes.xml) : • A file which contains the definition of log types. • Log Collection Task (Task) : • Log types that LCU collects from a given host. • Task Definition File (.tdf) : • A file which contains the Log Collection Tasks.
Log Collector Utility Log Type Definition File
Log Collector Utility Overview Processing Flow – Discovering Installed Log Types ECC Infra Host Target Host Master Agent LCU Symm Agent SYMAPI 1. LCU creates script from lcu_logtypes.xml
Log Collector Utility Overview Processing Flow – Discovering Installed Log Types ECC Infra Host Target Host 2. LCU sends script to Master Agent Master Agent LCU Symm Agent SYMAPI
Log Collector Utility Overview Processing Flow – Discovering Installed Log Types ECC Infra Host Target Host Master Agent LCU Symm Agent SYMAPI 3. Master Agent runs script, finds installed logtypes
Log Collector Utility Overview Processing Flow – Discovering Installed Log Types ECC Infra Host Target Host 4. Master Agent sends discovered logtypes back to LCU Master Agent LCU Symm Agent SYMAPI
Log Collector Utility Overview Processing Flow – Discovering Installed Log Types ECC Infra Host Target Host Master Agent LCU Symm Agent SYMAPI 5. LCU creates Task file received result
Log Collector Utility Overview Task Definition File (example)
Log Collector Utility Overview Processing Flow – Collecting Installed Log Types ECC Infra Host Target Host Master Agent LCU Symm Agent SYMAPI 1. LCU creates script for logtypes in mytask.tdf
Log Collector Utility Overview Processing Flow – Collecting Installed Log Types ECC Infra Host Target Host 2. LCU sends script to Master Agent Master Agent LCU Symm Agent SYMAPI
Log Collector Utility Overview Processing Flow – Collecting Installed Log Types ECC Infra Host Target Host Master Agent LCU Symm Agent SYMAPI 3. Master Agent runs script, finds and prepares logs for transfer
Log Collector Utility Overview Processing Flow – Collecting Installed Log Types ECC Infra Host Target Host 4. Master Agent sends discovered logs back to LCU Master Agent LCU Symm Agent SYMAPI
Log Collector Utility Overview Processing Flow – Collecting Installed Log Types ECC Infra Host Target Host Master Agent LCU Symm Agent SYMAPI 5. LCU creates single ZIP for collected logs from all hosts in mytask.tdf
Log Collector Utility Overview Log Collection Result File (example)
Command Line Interface Command: -generate • Creates Task Definition File containing host and logtype information. • Format: >lcu.bat -generate -h [host1,..] -logtypes [ALL|INSTALLED] -taskfile [taskfile] -h : comma-separated list of hostnames or hostname patterns -logtypes [ALL | INSTALLED] : • For ALL LCU creates a task definition file with all possible log types • For INSTALLED LCU creates a task definition file with installed log types -taskfile : task definition file that is created at the end of –generate command
Command Line Interface Command: -generate (continued) • Examples of –generate command: >lcu -generate -h “losan092" -logtypes ALL -taskfile “c:\mytask.tdf” >lcu -generate -h “losan*" -logtypes INSTALLED -taskfile “c:\mytask.tdf” >lcu -generate -h "*" -logtypes INSTALLED -taskfile “c:\mytask.tdf”
Command Line Interface Command: -getlogs • Fetches and saves log files using the host and logtype information from the specified Task Definition File to the specified target directory. • Format: >lcu.bat -getlogs –target [targetdir] –taskfile [taskfile] -target : Directory where retrieved log files are saved -taskfile : File containing log collection tasks (i.e. host and log types that should be collected from that host
Command Line Interface Command: -getlogs (continued) • Output of –getlogs command • A zip containing all host logs • A result log file containing current status information • Examples of –getlogs command: >lcu.bat -getlogs -target “c:\logs” -taskfile “c:\tdf\mytask.tdf”
Command Line Interface Command Line: Help, Version • Help : Provides usage information for the LCU. >lcu.bat -help • Version : Displays version information about LCU. >lcu.bat -version Debug information for the LCU will be maintained in the lcu.trc files, saved in the <LCU root>\data directory