The script performs a system type and OS detection to ensure it is in a supported environment.

The BMCTool and SetupBIOS Tool are bundled in the script to expand on information gathered about the system.

It does a complete BIOS settings dump, including identifying settings that have changed from BIOS defaults

It also utilizes MegaCli and the LDSTate Tool to pull storage information.

A pre-check is included to look for MegaCli and advise if it is not present

MegaCli is optional. If storage logs are not necessary, it can be skipped

Additionally the script pulls dmidecode, and lspci

lspci, lspci –v and lspci –vvv are used individually to get everything we can from the OS regarding hardware

Pulls OS logs and configuration

Makes use of built in OS support tools if present

RHEL and like derivatives pulls sosreport

SLES pulls supportconfig

Debian and like derivatives outputs results from several individual commands to gather ‘sosreport’ like output

Errors encountered by script are captured and gathered along with other logs

All output is compressed into .tgz file

Output directory and filename are output to screen

The script leaves no footprint besides the compressed log collection. All script and temporary log files are cleaned up when the script exits.

**NOTE** None of the information pulled by pec-logs.sh is exclusive to the script. This script simply combines pulling all the information support generally looks for into a single seamless process

The PEC-Log script includes a menu allowing the user to select whether to generate a full report, pulling all system hardware, storage and operating system logs, or a custom option to individually select which sections to pull, or clear the system event log. There is also an option to clear the System Event Log.

Additional command line functions/arguments are included to adjust certain functionality