https://github.com/awslabs/mgn-drs-linux-system-details-tool

https://github.com/awslabs/mgn-drs-linux-system-details-tool

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.8%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: awslabs
  • License: apache-2.0
  • Language: Shell
  • Default Branch: main
  • Size: 174 KB
Statistics
  • Stars: 6
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Contributing License Code of conduct

README.md

MGN-DRS Gather Linux Source Server System Details

Description

This script gathers various Linux system details and logs them to an output file. It is intended to be used for troubleshooting issues related to agent installation, replication, or the launch of target instances for AWS MGN and AWS DRS.

It checks the following:

  1. General System Information:

    • OS release information
    • Kernel version
    • Hostname and system time
    • Network configuration and routing
    • Firewall rules
    • System services
    • System hardware details
    • Recent shutdown and reboot history
    • Proxy environment variables
  2. Disks / Devices / LVM / Multipath / Mount / Memory / Drivers/Modules:

    • Boot device
    • Block Devices and Filesystems
    • Partition Tables
    • Logical Volume Manager (LVM) details
    • Disks with size less than 1G
    • Multipath and Device Mapper Information
    • Mounted filesystems
    • Disk usage
    • Memory usage
    • Loaded kernel modules
  3. Directories:

    • Kernel source directories
    • Module directories
    • GRUB configuration directories
    • EFI system details
  4. SELinux:

    • SELinux status and configuration
  5. BIOS / UEFI / SecureBoot:

    • Boot mode (UEFI or Legacy BIOS)
    • EFI boot manager details
    • UEFI variables
    • Secure Boot status
  6. GRUB Configuration Files:

    • GRUB configuration files and environment
  7. Packages:

    • Required tools
    • Installed GRUB2 packages
    • Installed kernel packages
    • Installed mkinitrd and dracut packages
    • Installed and available Linux headers
  8. Initramfs/initrd/Drivers:

    • Initramfs/initrd contents
    • Kernel module information
  9. Replication Agent:

    • AWS replication agent details (if installed)
    • Running processes related to AWS replication Agent
    • Network connections related to AWS replication Agent
    • Replication server instances list
  10. Permissions:

    • File attributes and permissions for critical files
    • Sudoers configuration
    • User and group information for 'aws-replication'
    • The presence and permissions of 'su' and 'sudo'
  11. Endpoint Connectivity:

    • Checks connectivity to service-specific endpoints (MGN or DRS)
    • Tests all required S3 bucket endpoints
    • Tests connection using OpenSSL or curl

Usage

To gather system details, create and run a shell script on your source server by following these steps:

  1. Create a shell script using any text editor:

sudo vi system_details_parse.sh

  1. Copy the content of the script to the file system_details_parse.sh

Note: You can directly download the script by using the command below:

wget https://raw.githubusercontent.com/awslabs/mgn-drs-linux-system-details-tool/refs/heads/main/system_details_parse.sh

  1. Change the permission of the script:

sudo chmod +x system_details_parse.sh

  1. Execute the script:

```

For MGN service:

sudo ./systemdetailsparse.sh --region --service mgn

For DRS service:

sudo ./systemdetailsparse.sh --region --service drs ```

Replace <REGION> with your AWS region (example: us-east-1).

Sample Output

After running the script, you will receive the following output:

```

System Details Gathering Script

This script gathers various system details and logs them to /var/log/system_details.log. It checks the following:

  1. General System Information:

    • OS release information
    • Kernel version
    • Hostname and system time
    • Network configuration and routing
    • Firewall rules
    • System services
    • System hardware details
    • Recent shutdown and reboot history
    • Proxy environment variables
  2. Disks / Devices / LVM / Multipath / Mount / Memory / Drivers/Modules:

    • Boot device
    • Block Devices and Filesystems
    • Partition Tables
    • Logical Volume Manager (LVM) details
    • Disks with size less than 1G
    • Multipath and Device Mapper Information
    • Mounted filesystems
    • Disk usage
    • Memory usage
    • Loaded kernel modules
  3. Directories:

    • Kernel source directories
    • Module directories
    • GRUB configuration directories
    • EFI system details
  4. SELinux:

    • SELinux status and configuration
  5. BIOS / UEFI / SecureBoot:

    • Boot mode (UEFI or Legacy BIOS)
    • EFI boot manager details
    • UEFI variables
    • Secure Boot status
  6. GRUB Configuration Files:

    • GRUB configuration files and environment
  7. Packages:

    • Required tools
    • Installed GRUB2 packages
    • Installed kernel packages
    • Installed mkinitrd and dracut packages
    • Installed and available Linux headers
  8. Initramfs/initrd/Drivers:

    • Initramfs/initrd contents
    • Kernel module information
  9. Replication Agent:

    • AWS replication agent details (if installed)
    • Running processes related to AWS replication Agent
    • Network connections related to AWS replication Agent
    • Replication server instances list
  10. Permissions:

    • File attributes and permissions for critical files
    • Sudoers configuration
    • User and group information for 'aws-replication'
    • The presence and permissions of 'su' and 'sudo'
  11. Endpoint Connectivity:

    • Checks connectivity to service-specific endpoints (MGN or DRS)
    • Tests all required S3 bucket endpoints

    - Tests connection using OpenSSL or curl

Gathering info ...


Finished gathering info

Please attach '/var/log/system_details.log' to the Support ticket ```

Support

Attach the output log file /var/log/system_details.log to the support case.

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Authors

  • Ahmed Mansouri

Owner

  • Name: Amazon Web Services - Labs
  • Login: awslabs
  • Kind: organization
  • Location: Seattle, WA

AWS Labs

GitHub Events

Total
  • Watch event: 7
  • Push event: 20
  • Public event: 1
  • Pull request review event: 1
  • Pull request event: 2
  • Fork event: 1
Last Year
  • Watch event: 7
  • Push event: 20
  • Public event: 1
  • Pull request review event: 1
  • Pull request event: 2
  • Fork event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 27 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 27 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • ahmed-mansouri (1)
Top Labels
Issue Labels
Pull Request Labels